summaryrefslogtreecommitdiff
path: root/tools/lpgen
AgeCommit message (Collapse)Author
2013-07-08lpgen: garbage filter update.Robert Pösel
Popup and Tlen: translation fix. English langpack update. git-svn-id: http://svn.miranda-ng.org/main/trunk@5280 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-08translate.js: Fixed processing files with unix line-endings (like Russian ↵Robert Pösel
langpack) git-svn-id: http://svn.miranda-ng.org/main/trunk@5270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-08Fix for doubled ";Version" string for some plugins.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@5265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-08translate.js: fix for translations beginning with [ (thanks BasiL)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5264 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-07lpgen: Improved popup filter.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5252 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-27lpgen: for input files use ansi locale instead of OS defaultRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5144 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-25one more lpgen fixRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-25fix for previous commitRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5132 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-25Lpgen: Added few more crap filtering for rc files.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5131 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-19Langpack refresher fix.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5040 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-19More advanced version of Langpack Refresher. For your langpack usage look at ↵Robert Pösel
langpacks/czech/Refresh.bat script. git-svn-id: http://svn.miranda-ng.org/main/trunk@5038 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-19Langpack refresher: Few more comments.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-19For *.rc files we have a "garbage filter" in another function.Basil
"filter" variables are for filtering garbage in source files only. git-svn-id: http://svn.miranda-ng.org/main/trunk@5034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-18Added universal version of Langpack Refresher script.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5027 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-18lpgen: Added few more crap words. But this test2 doesn't seem to work at ↵Robert Pösel
all... Basil? git-svn-id: http://svn.miranda-ng.org/main/trunk@5019 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-22- lpgen.js.bat updatedVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@4796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-22lpgen.js: Commented putting "Language pack version" line into =CORE=.txtRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@4794 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-19translate.js: Fixed rewriting ==CORE== file with untranslated ==CORE== file ↵Robert Pösel
when set /untranslated parameter. git-svn-id: http://svn.miranda-ng.org/main/trunk@4737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-23because translate.js have so many switches, I'm too lazy specify em every ↵Basil
time, I have add a new switch /sourcelang:"language". This switch can replace four long switches: /core, /dupes, /path, /langpack. In other words, /sourcelang:"Russian" are equal to: /path:"..\..\langpacks\Russian\Plugins" /core:"..\..\langpacks\Russian\=CORE=.txt" /dupes:"..\..\langpacks\Russian\=DUPES=.txt" /langpack:"..\..\langpacks\russian\Langpack_Russian.txt" git-svn-id: http://svn.miranda-ng.org/main/trunk@4166 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-21path to sln file moved to vars.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@4141 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-13more precise RegExp for dictionary building.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3990 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-11remove trailing slashes from end of string. Useful for tree itemsBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3974 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-26libcurl added into unneeded modulesBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3781 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-26more precise building a translation dictionary. Now source translated files ↵Basil
ignores a string, which have a newline after [somestring], thus somestring are untranslated (removes CR unix-style newline symbol in translated file and add a [somestring] to untranslated file) git-svn-id: http://svn.miranda-ng.org/main/trunk@3777 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-26more correct log output in case of ↵Basil
/plugin:"/path/to/english/templateplugin.txt" command line parameter specified. git-svn-id: http://svn.miranda-ng.org/main/trunk@3776 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-22By Wishmaster request, translate.js now output =CORE=.txt not to ↵Basil
/out:"/path/to/folder", but one level upper. Thus, now you need specify /out:"/path/plugins" and /untranslated:"/path/plugins" to get same folder structure, as /langpacks/german have now: \langpacks\german\=CORE=.txt \langpacks\german\Plugins\*.txt \langpacks\german\Untranslated\=CORE=.txt \langpacks\german\Untranslated\Plugins\*.txt git-svn-id: http://svn.miranda-ng.org/main/trunk@3688 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-22LPGENW() function added to source-code parserBasil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-22do not expect a translated string ends not with "]"Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3685 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-21translate.js with option /noref:"yes" will remove a line "Miranda Language ↵Basil
Pack Version 1" from =CORE=.txt for correct processing of translated files with LangpackSuite git-svn-id: http://svn.miranda-ng.org/main/trunk@3661 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-21code refactoring, replace file reading routines with function ReadFile(file)Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3659 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-21code refactoring, move reading file and removing comments from code into ↵Basil
function ReadFile(file) git-svn-id: http://svn.miranda-ng.org/main/trunk@3658 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-21new *.rc parsing engine, now multi-line.Basil
More correct results, multi-line comments are skipped. git-svn-id: http://svn.miranda-ng.org/main/trunk@3657 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-20- additional removal of comments from source code. Many useless lines now ↵Basil
not included into templates. new RC engine with same behavior will be ready soon. git-svn-id: http://svn.miranda-ng.org/main/trunk@3648 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-20- now ignores commented lines (start with //) in *.rcBasil
Unfortunately, rc parsing engine reads *.rc files line-by-line, thus currently ignoring multi-line comments (start with /* and ends with */) not supported. - typo git-svn-id: http://svn.miranda-ng.org/main/trunk@3647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-19translate.js now more flexible with output files. You can specify ↵Basil
/untranslated:"/path/to/folder/" to output untranslated strings of core\plugin. Specifying /untranslated:"yes" will work as before - output untranslated_*.txt to /out:"/path/to/folder" or /english/plugins/ if /out omitted. Moreover, if /out and /outfile specified in same time, both templates and final langpack file will output. Thus, now you can output translated templates into one /out:"/path", /untranslated:"/into/another/path" and full langpack into /outfile:"/path/to/Langpack_file.txt" in the same time. Running without /out /outfile and /untranslated will generate translated_* in /english/plugins/ git-svn-id: http://svn.miranda-ng.org/main/trunk@3643 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-19additional filter for resource (*.rc) files.Basil
If result does not have any letter, it's a crap. Dozen crap removed from many plugins. git-svn-id: http://svn.miranda-ng.org/main/trunk@3638 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-18do not include results with one-symbol length, both RC ans Source files ↵Basil
parsing engines. git-svn-id: http://svn.miranda-ng.org/main/trunk@3630 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-18reverted version. Thanks Person, all defines are replaced with define+function.Basil
git-svn-id: http://svn.miranda-ng.org/main/trunk@3623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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