diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-08 08:19:09 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-08 08:19:09 +0000 |
commit | e8d532665969ad226318c03465ccee63f6cae403 (patch) | |
tree | 9240f4ad13d276f7867435e52bb1f69e8e296ee0 /tools/lpgen | |
parent | 3765f0917d540e3fa6b5a7a5e67ea373606d98ae (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.js | 2 |
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
|