Management RC/PO/POT/XLIFF languages files - Translate Toolkit
- rc2pot Conversion RC to PO/POT files
- po2rc Conversion PO/POT to RC files
- xlf2rc Conversion XLIFF to RC files
- xlf2po Conversion XLIFF to PO/POT files
- lang2id Conversion NLS string to Microsoft constant Languages ID
- id2lang Conversion NLS string to Microsoft Language and Sub Language ID
- po2diff Different PO/POT files
- diff2xlf Different XLIFF source file to append XLIFF destination file
- po2spell Spelling Checker PO/POT files
Project philosophy
The reason why these utilities were written is simple; I could not find working analogues.
Of course, there is the Translate Toolkit
from © Translate House
, but from version to version its performance is steadily decreasing…
The main disadvantages that prevent you from using the original Translate Toolkit:
Perfomance
Also, we must take into account that these utilities in the original Translate Toolkit
package are written in python
. This affects processing speed. With a large volume of files, more than 100, the conversion time becomes noticeable.
All utilities included in the Another Translate Toolkit
package are written in C++, so the processing speed of language files is close to maximum. Compiled packages are available for Windows x64 and x86 platforms.
Usage/Command line
rc2pot.exe:
Conversion RC to PO/POT files
Usage: rc2pot.exe [options...]
Options:
-r, --rcinput RC input file, full path (Required)
-o, --output PO/POT output file, full path, or use -d option
-d, --directory PO/POT output directory, full path, or use -o option
-e, --exclude By default, exclude file it is in the directory of the executable, and name 'rc2pot.exclude'
-h, --help this help page..
rc2pot.exe -r x:\path\to\file\resource.rc -o x:\path\to\file\resource.pot
rc2pot.exe -r x:\path\to\file\resource.rc -d x:\path\output\directory
po2rc.exe:
Conversion PO/POT to RC files
Usage: po2rc.exe [options...]
Options:
-s, --langtemplate RC template language, two chars: EN,RU..
-l, --langoutput Output language, two chars: EN,DE,de-DE.. (Required)
-i, --langid Output language Microsoft ID: LANG_*, optional, absolute
-n, --normalize normalize translated text
-p, --poinput PO input file, full path (Required)
-t, --template RC input template file, full path (Required)
-o, --rcoutput RC output file, full path, or use -d option
-d, --directory RC output directory, required -s and -l options, full path, or use -o option
-e, --exclude By default, exclude file it is in the directory of the executable, and name 'po2rc.exclude'
-h, --help this help page..
po2rc.exe -s RU -l ZU -i LANG_ZULU
-p x:\path\to\file\resource.po -t x:\path\to\file\template.rc -d x:\path\output\directory
po2rc.exe -s RU -l ZU
-p x:\path\to\file\resource.po -t x:\path\to\file\template.rc -d x:\path\output\directory
po2rc.exe -l ZU
-p x:\path\to\file\resource.po -t x:\path\to\file\template.rc -o x:\path\output\resource.rc
xlf2rc.exe:
Conversion XLIFF to RC files
Usage: xlf2rc.exe [options...]
Options:
-s, --langtemplate RC template language, two chars: EN,RU..
-l, --langoutput Output language, two chars: EN,DE,de-DE.. (Required)
-i, --langid Output language Microsoft ID: LANG_*, optional, absolute
-n, --normalize normalize translated text
-x, --xliffinput XLIFF input file, full path (Required)
-t, --template RC input template file, full path (Required)
-o, --rcoutput RC output file, full path, or use -d option
-d, --directory RC output directory, required -s and -l options, full path, or use -o option
-e, --exclude By default, exclude file it is in the directory of the executable, and name 'xlf2rc.exclude'
-h, --help this help page..
xlf2rc.exe -s RU -l ZU -i LANG_ZULU
-x y:\path\to\file\resource.po -t x:\path\to\file\template.rc -d x:\path\output\directory
xlf2rc.exe -s RU -l ZU
-x y:\path\to\file\resource.po -t x:\path\to\file\template.rc -d x:\path\output\directory
xlf2rc.exe -l ZU
-x y:\path\to\file\resource.xlf -t x:\path\to\file\template.rc -o x:\path\output\resource.rc
xlf2po.exe:
Conversion XLIFF to PO/POT files
Usage: xlf2po.exe [options...]
Options:
-x, --xliffinput XLIFF input file, full path (Required)
-p, --pot output POT file, 'msgstr' empty
-r, --reverse Change primary language to output POT file, required -p option
-n, --normalize normalize translated text
-o, --output PO/POT output file, full path, or use -d option
-d, --directory PO/POT output directory, full path, or use -o option
-h, --help this help page..
xlf2po.exe -x y:\path\to\file\resource.xlf -o x:\path\to\file\resource.po
xlf2po.exe -x y:\path\to\file\resource.xlf -d x:\path\output\directory
lang2id.exe:
Conversion NLS string to Microsoft constant Languages ID
Usage: lang2id.exe [options...]
Options:
-h, --help this help page..
lang2id.exe LANG_GERMAN
lang2id.exe German
lang2id.exe DE
lang2id.exe de-DE
id2lang.exe:
Conversion NLS string to Microsoft Language and Sub Language ID
Usage: id2lang.exe [options...]
Options:
-h, --help this help page..
lang2id.exe DE
lang2id.exe de-DE
lang2id.exe de_DE
po2diff.exe:
Different PO/POT files
Usage: po2diff.exe [options...]
Options:
-o, --oldpo Old PO input file, full path (Required)
-n, --newpo New PO input file, full path (Required)
-p, --outpo Different PO output file, full path (Required)
-h, --help this help page..
po2diff.exe -o x:\path\to\file\old.po -n x:\path\to\file\new.po -p x:\path\output\directory\out.po
diff2xlf.exe:
Different XLIFF source file to append XLIFF destination file
Usage: diff2xlf.exe [options...]
Options:
-s, --src XLIFF source input file, full path (Required)
-d, --dst XLIFF destination input file, full path (Required)
-o, --output XLIFF output file, full path (Required)
-h, --help this help page..
diff2xlf.exe -s x:\path\to\file\src.xlf -d x:\path\to\file\dst.xlf -o x:\path\to\file\output.xlf
po2spell.exe:
Spelling Checker PO/POT files
Usage: po2spell.exe [options...]
Options:
-s, --list Print list of supported languages
-l, --lang Select a test language from the supported languages, Microsoft ID: en-US, de-DE..
-c, --count Suggestions output count: 0-1000
-a, --auto Spell check, automatic text update, default option: disabled.
-p, --poinput PO/POT input file, full path (Required)
-o, --pooutput PO/POT output file, full path, optionals
-r, --reverse Change the primary language for the POT input file
-e, --exclude By default, exclude file it is in the directory of the executable, and name 'po2spell.<Microsoft language ID>.exclude'
-h, --help this help page..
po2spell.exe -s
po2spell.exe -l en-US -c 10 -p x:\path\to\file\resource.po
po2spell.exe -l en-US -a -p x:\path\to\file\resource.po