summaryrefslogtreecommitdiff
path: root/tools/lpgen
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-08 08:19:09 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-08 08:19:09 +0000
commite8d532665969ad226318c03465ccee63f6cae403 (patch)
tree9240f4ad13d276f7867435e52bb1f69e8e296ee0 /tools/lpgen
parent3765f0917d540e3fa6b5a7a5e67ea373606d98ae (diff)
translate.js: Fixed processing files with unix line-endings (like Russian langpack)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/lpgen')
-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 1df329398e..2531b342f9 100644
--- a/tools/lpgen/translate.js
+++ b/tools/lpgen/translate.js
@@ -296,7 +296,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|\r|\n).+?(?=$))/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