webmcp

diff framework/bin/langtool.lua @ 118:92d9218140f7

Cleanup of Makefile.options; Removed wrong escape character in framework/bin/langtool.lua
author jbe
date Thu Jul 10 00:32:08 2014 +0200 (2014-07-10)
parents a54cc7dcabf1
children 2c31275322db
line diff
     1.1 --- a/framework/bin/langtool.lua	Thu Jul 10 00:27:22 2014 +0200
     1.2 +++ b/framework/bin/langtool.lua	Thu Jul 10 00:32:08 2014 +0200
     1.3 @@ -88,7 +88,7 @@
     1.4        if string.find(filename, "%.lua$") then
     1.5          for line in io.lines(path .. "/" .. filename) do
     1.6            -- TODO: exact parsing of comments and escape characters
     1.7 -          for key in string.gmatch(line, "_%(?'([^'\]+)'") do
     1.8 +          for key in string.gmatch(line, "_%(?'([^']+)'") do
     1.9              if
    1.10                key ~= "([^" and
    1.11                (not string.find(key, "^%s*%.%.[^%.]")) and
    1.12 @@ -98,7 +98,7 @@
    1.13                translations[key] = false
    1.14              end
    1.15            end
    1.16 -          for key in string.gmatch(line, '_%(?"([^"\]+)"') do
    1.17 +          for key in string.gmatch(line, '_%(?"([^"]+)"') do
    1.18              if
    1.19                key ~= "([^" and
    1.20                (not string.find(key, "^%s*%.%.[^%.]")) and

Impressum / About Us