mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Translations generated by Launchpad
How to sync translations from Launchpad?
- Make sure
GOPATHis set andGOINVOKEFLAGS="-mod=readonly". - Run
update-potto generate latest translation template (po/snappy.pot). - Import generated translation template to the snappy entry.
- Wait until import is approved. You can monitor status in the import queue.
- Export latest translations (download link will be sent to your email).
- Extract archive:
tar -xvf launchpad-export.tar.gz. - Create new directory to store processed translations
mkdir processed. - Run the following to remove the
snappy-prefix, remove obsolete#-messages (--no-obsolete) and exclude untranslated messages (--translated):for file in snappy-*; do msgattrib --no-obsolete --translated --output-file="processed/${file#snappy-}" "$file"; done;
- Replace old translations under
/powith new translations.