Update po README with correct directories and pygettext3 binary

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
Ryan Lee 2024-09-03 09:35:05 -07:00
parent 0f42187672
commit c6181c2dbe

View file

@ -1,10 +1,8 @@
GENERATING TRANSLATION MESSAGES
To generate the messages.pot file:
To generate the .pot file, run the following command in the po directory:
Run the following command in Translate.
python pygettext.py ../apparmor/*.py ../Tools/aa*
pygettext3 -o apparmor-utils.pot ../apparmor/*.py $(find .. -executable -name 'aa-*')
It will generate the messages.pot file in the Translate directory.
It will generate the apparmor-utils.pot file in the po directory.
You might need to provide the full path to pygettext.py from your python installation. It will typically be in the /path/to/python/libs/Tools/i18n/pygettext.py