Update clean target to regenerate .pot

This commit is contained in:
Dimitri John Ledkov 2020-03-10 12:00:13 +00:00
parent a90be83685
commit 88dd0e021f
3 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,7 @@ install_deps:
python3-bson
i18n:
$(PYTHON) setup.py build
$(PYTHON) setup.py build_i18n
dryrun: probert i18n
$(MAKE) ui-view DRYRUN="--dry-run --bootloader uefi"

View File

@ -13,15 +13,16 @@ Our localization platform is Launchpad, translations are managed at
https://translations.launchpad.net/ubuntu/+source/subiquity/
To update translation template in launchpad:
* execute $ make i18n
* make an upload of subiquity into Ubuntu
* wait for it to migrate
* update po/POTFILES.in with any new files that contain translations
* execute clean target, i.e. $ debuild -S
* dput subiquity into Ubuntu
To export and update translations in subiquity:
* Wait for new subiquity to publish
* Request fresh translation export from Launchpad at
https://translations.launchpad.net/ubuntu/focal/+source/subiquity/+export
* wait for export to generate
* download, unpack, rename files into po directory, and commit changes
* download, unpack, rename .po files into po directory, and commit changes
# Acquire subiquity from source

1
debian/rules vendored
View File

@ -14,6 +14,7 @@ export PYBUILD_OPTION="-v"
override_dh_auto_clean:
rm -f .subiquity/subiquity-debug.log installer/geninstaller.log
rm -rf probert/
python3 setup.py build_i18n
dh_auto_clean
override_dh_install: