A gettext profiler / dynamic POT file generation
Generates POT files based on messages that were actually requested during a program's execution.
This tool is meant for situations where translating all messages of a multi-thousand-message translation catalog is unrealistic, and the important messages that are actually used during regular execution should somehow be cherry-picked.
Quick Start Guide
- Compile it:
- Use it to execute an application, in this case 'gcc':
In the end, a
*_dynamic.potfile(s) is/are created in CWD. This
.potwill contain exactly the messages that were really requested from gettext at runtime.
Merge your translation with the
msgmerge -U gcc-9.1.xx.po gcc*_dynamic.pot
Complete the translation of your
Merge your .po again, now against the upstream
msgmerge -U gcc-9.1.xx.po gcc-9.1.pot
.po contains translations for the messages found through profiling, as well as
translations that possibly were in the