diff options
author | Basil <basil@miranda-ng.org> | 2013-02-08 13:35:06 +0000 |
---|---|---|
committer | Basil <basil@miranda-ng.org> | 2013-02-08 13:35:06 +0000 |
commit | 8ba05a620bebb8f1400b20148be7012243e2ff9f (patch) | |
tree | 983d76399da3184147182df5fa27000abd5f54e0 | |
parent | 9301e809ed9714f7afcb9ea4375df17f31158707 (diff) |
source parsing engine updated, now TranslateW(%spaces%L%spaces%" supported
Example: TranslateW(L"MRIM_CS_GAME: unknown internal game message code: %lu")
git-svn-id: http://svn.miranda-ng.org/main/trunk@3478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | tools/lpgen/lpgen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 19a4f9daea..ca22ec6266 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -463,7 +463,7 @@ function ParseSourceFile (SourceFile,array) { //not store ?: functions LPGEN or LPGENT? or Translate(T or W) or _T, than any unnecessary space \s, than not stored ?: "(" followed by ' or " (stored and used as \1) than \S\s - magic with multiline capture, ending with not stored ?= \1 (we get " or ' after "("), than none or few spaces \x20 followed by )/m=multiline g=global
//var find= /(?:LPGENT?|Translate[TW]?|_T)(?:\s*?\()(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
//comment previous line and uncomment following line to output templates without _T() function in source files. Too many garbage from _T()..
- var find= /(?:LPGENT?|Translate[TW]?)(?:\s*?\(\s*?)(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
+ var find= /(?:LPGENT?|Translate[TW]?)(?:\s*?\(\s*?L?\s*)(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
//read file fully into var
allstrings=sourcefile_stream.ReadAll();
|