summaryrefslogtreecommitdiff
path: root/tools/lpgen/translate.js
diff options
context:
space:
mode:
authorBasil <basil@miranda-ng.org>2013-02-22 10:11:20 +0000
committerBasil <basil@miranda-ng.org>2013-02-22 10:11:20 +0000
commitdcd91aebe91c75b669b58915d16af72bba70b0bf (patch)
tree4c033993d892e179c0d6199ea1785025d3e6bd29 /tools/lpgen/translate.js
parent7f39e69fae3d9590d504a55b220dc9a3259bafaf (diff)
do not expect a translated string ends not with "]"
git-svn-id: http://svn.miranda-ng.org/main/trunk@3685 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/lpgen/translate.js')
-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 5631e84a29..15f66736fe 100644
--- a/tools/lpgen/translate.js
+++ b/tools/lpgen/translate.js
@@ -260,7 +260,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).+?(?=$))/mg;
//While our "find" RegExp return a results, add strings into dictionary.
while ((string = find.exec(translatefiletext)) != null) {
//first, init empty var