summaryrefslogtreecommitdiff
path: root/tools/lpgen
AgeCommit message (Collapse)Author
2013-02-15temporary version of lpgen, which support find a define inside of ↵Basil
translation function. For example, there is a TranslateT(someMSG), first, try to find #define someMSG "sometext", than, if not found define in same file, search ALL SOURCE FILES of current plugin (or CORE) for this #define. Currently, seldom additional strings founded, but processing speed few times slower, than before. Sorce code refactoring needed... git-svn-id: http://svn.miranda-ng.org/main/trunk@3611 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-15translate.js - more correct RegExp for build a translation dictionary. ↵Basil
Solves the issue with duplicated english strings when no translation in source file and duplicated ;file link. In other words, string after [somestring] have to start not from "[" and not from ";file" and must ends without "]" git-svn-id: http://svn.miranda-ng.org/main/trunk@3608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-14multi-line stings parsing update, now trailing slash before end of line removed Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-14translate.js now output all files in UTF-8 with BOM. Thanks wishmaster for hintBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-11- pu_stub added to exceptionsBasil
- MUUID RegExp altered to new variant of MUUID definition in sources. - version.h file now aren't searched recursively in plugin folder, but statically tried in root folder, than src\include and in src subfolders. Last match win. This is done because of clist_nicer have a subfodler with skinedit, and two version.h returned by FindFiles() function for clist_nicer. - description RegExp in version.h updated, now more variants of plugin description returned into english translation template. git-svn-id: http://svn.miranda-ng.org/main/trunk@3552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-08source parsing engine updated, now TranslateW(%spaces%L%spaces%" supported Basil
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
2013-02-08New parameter /untranslated:"yes"Basil
Now you can output to untranslated_%filename%.txt all stings, translation for which wasn't found in any place. git-svn-id: http://svn.miranda-ng.org/main/trunk@3470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-08more correct *.rc parserBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3468 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-08AUTOCHECKBOX and CHECKBOX translation lines now parsed in *.rc files.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3464 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-08cosmeticsBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3463 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-07- Added check for Status Plugins. This tree brothers have three common ↵Basil
resource files, same for all of them. Because they are stored in trunk one folder level upper, than plugin folder itself, those three files never processed, thus all strings of this modules are lost. Now this three file's strings added to each of AdvancedAutoAway, StartupStatus and KeepStatus. - Removed replacing multiline strings with \r\n, we do not need it. Pascal plugs still need, but I'll deal with it later. git-svn-id: http://svn.miranda-ng.org/main/trunk@3459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-06translate.js new functions:Basil
1) /outfile:"/path/to/full/langpack_language.txt" will output one full langpack file, instead of translated templates from /english/* 2) /noref:"yes" will remove references to source code files (;file /some/path/filename.ext) Thus, combining this two options, you can generate a fresh langpack file, without references, and using current up-to-date templates from /english/ 3) now use Unicode with BOM code for output files, and UTF-8 are expected from translation templates. Moreover, newline symbols in /english/ templates have to be in windows-style (CRLF, \r\n), not any other types :) git-svn-id: http://svn.miranda-ng.org/main/trunk@3449 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-05Op, op!!! UNIX newlines!Basil
Replace with \r\n, win-windows-style! git-svn-id: http://svn.miranda-ng.org/main/trunk@3437 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-05filter engine update, filter1 removed completely (I've found in Crap.txt ↵Basil
useful strings), filter2 removed \d (string start from a digit). git-svn-id: http://svn.miranda-ng.org/main/trunk@3436 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-05- "Spin" crap from *.RC files removed.Basil
- updated RegExp for parse source files, now strings with spaces between open bracket and quotation mark parsed. Example string mi.ptszName = LPGENT( "Show/Hide &Ping Window" ) git-svn-id: http://svn.miranda-ng.org/main/trunk@3433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-04Output templates for translations in UTF-8 with BOM.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3415 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-01Enhanced RC files parsing. Now strings with double quotes parsed correctly.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3391 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-01same trick to parse authors in same MirOTR and ZeroNotify pluginsBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3386 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-01Again version.h parsing boosted, now ZeroNotify version and description ↵Basil
parsed, as well ass MirOTR version. git-svn-id: http://svn.miranda-ng.org/main/trunk@3385 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-01- When /path:"to/plugin/sources/" specified, output crap file only if carp ↵Basil
exist. In other words, do not output zero-size crap file. - Parse _T() function disabled by default. You can enable it by uncomment var "find" - More correct version.h parsing, authors and versions now more accurate. git-svn-id: http://svn.miranda-ng.org/main/trunk@3384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-31- lpgen.js fixed bug with cutting strings, which are ended with '). Now more ↵Basil
correct RegExp with \1 using. When string starts with (" than match end as "), not '). - english templates updated with new lpgen.js git-svn-id: http://svn.miranda-ng.org/main/trunk@3377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-30even more precise version.h parsing.Basil
Two plugins uses __PLUGIN_DESC define :-) git-svn-id: http://svn.miranda-ng.org/main/trunk@3364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-30more precise version.h parsing, description on plugins option page defined ↵Basil
not only as __DESCRIPTION, but also simply __DESC git-svn-id: http://svn.miranda-ng.org/main/trunk@3361 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-30CosmeticsBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3359 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-30- removed libraries from processingBasil
- comments cleaning - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@3358 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-28- New /langpack:"/path/file.txt" switch - the 4th place to search for ↵Basil
translation. Now the sequence is: plugins/plugintranslation.txt->DUPES->CORE->FullLangpack - More information in header - Fixed loosing of last translated string in file with translations, new RegExp (\r replaced with $) - New function for output UTF-8 files with BOM (currently disabled, output as is, so if source files are in UTF-8, result files are in UTF-8, but without BOM 3-byte header) git-svn-id: http://svn.miranda-ng.org/main/trunk@3320 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-28CAPTION in *.rc files wasn't parsed, because of wrong RexExp.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3319 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-28- some more information added to headBasil
- new /dupes:"yes" parameter - if you need to see a file with duplicated strings, for some reason :) - now for single-plug processing (/path:"/path/to/plug/src/folder), output a crap file with %plugin_name%_crap.txt near to lpgen.js git-svn-id: http://svn.miranda-ng.org/main/trunk@3313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-25translate.js - use also different variants of Miranda name for translations ↵Robert Pösel
from old langpacks git-svn-id: http://svn.miranda-ng.org/main/trunk@3288 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-25output /langpacks/english/=core=.txt as utf-8 with BOM, so after ↵Basil
translate.js all files can be easily combined into langpack file by simple command "copy =core=txt +.\plugins\*.txt langapack_file.txt" git-svn-id: http://svn.miranda-ng.org/main/trunk@3282 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-25translate.js: fixed working with duplicated translations in core fileRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@3280 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-25- log function redesigned as lpgen.jsBasil
- new /out:"/path/to/folder" option. Create a folder and specify to /out:"" key, so you translated files will be stored there, without translated_* prefix and without plugins folder. git-svn-id: http://svn.miranda-ng.org/main/trunk@3279 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-23lpgen.js - fixed parsing umlauts in author fieldRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@3246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-23Slightly updated logging logicBasil
Change Kildor nick in comments of filtering engine ;) git-svn-id: http://svn.miranda-ng.org/main/trunk@3244 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-18Big filtering enging update, now even less garbage in /langpaks/engilish/Basil
new /crap:"yes" key to lpgen.js for output Crap.txt with filtered strings. Saved near lpgen git-svn-id: http://svn.miranda-ng.org/main/trunk@3154 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-17- lpgen.js: updatedVadim Dashevskiy
- langpacks/english: updated git-svn-id: http://svn.miranda-ng.org/main/trunk@3134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-14- translate.js updatedVadim Dashevskiy
- LangpackSuite.exe updated git-svn-id: http://svn.miranda-ng.org/main/trunk@3103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-01-04- lpgen.js updated to work with 'english' folderVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-12-26- translate.js updatedVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2850 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-12-14- lpgen.js updateVadim Dashevskiy
- langpacks/en templates update git-svn-id: http://svn.miranda-ng.org/main/trunk@2742 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-12-12- lpgen.js updatedVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2732 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-11-30- translate.js and translate.js.bat addedVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-11-28- lpgen.js updated to relative pathes, langpacks/en: re-generatedVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-11-28- lpgen.js - fixVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-11-28- lphen.js update and langpacks/en refreshVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2532 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-11-15simple way of generating "Langpack_english.txt"Vadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2314 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-11-15lpgen.js generator and langpacks/en uploadedVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@2311 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-06-25NewEventNotify moved to Unicode(patch from person), langpack_english files ↵Vadim Dashevskiy
updated. git-svn-id: http://svn.miranda-ng.org/main/trunk@635 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-06-22lpgen script updated ,translation files updatedVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@524 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-05-17'tools' folder renamedGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@12 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c