summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasil <basil@miranda-ng.org>2013-02-26 09:49:12 +0000
committerBasil <basil@miranda-ng.org>2013-02-26 09:49:12 +0000
commitdcc2128cde9c02c4397e3906d7814e8a32c85f0d (patch)
tree3de35a641129bfa45d7094550b205045d0dbd45e
parentfa455bcef176b1c777669a7c600ee9ccb3660273 (diff)
more precise building a translation dictionary. Now source translated files ignores a string, which have a newline after [somestring], thus somestring are untranslated (removes CR unix-style newline symbol in translated file and add a [somestring] to untranslated file)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3777 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--tools/lpgen/translate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lpgen/translate.js b/tools/lpgen/translate.js
index bdaa17fa7a..ba4034cea0 100644
--- a/tools/lpgen/translate.js
+++ b/tools/lpgen/translate.js
@@ -272,7 +272,7 @@ stream.LoadFromFile(file);
//read file into var
var translatefiletext=stream.ReadText();
//"find" - RegularExpression, first string have to start with [ and end with]. Next string - translation
-var find=/(^\[.+?\](?=$))\r\n(^(?!\[|;file).+?(?=$))/mg;
+var find=/(^\[.+?\](?=$))\r\n(^(?!\[|;file)[^\r\n]+?(?=$))/mg;
//While our "find" RegExp return a results, add strings into dictionary.
while ((string = find.exec(translatefiletext)) != null) {
//first, init empty var