From e8d532665969ad226318c03465ccee63f6cae403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 8 Jul 2013 08:19:09 +0000 Subject: 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 --- tools/lpgen/translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/lpgen') 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 -- cgit v1.2.3