-
Notifications
You must be signed in to change notification settings - Fork 285
l10n: Pull, update and push
Dwayne Bailey edited this page Mar 25, 2017
·
2 revisions
- We're using Gettext v0.19.7 or greater, this fixes some reflow issues and is needed for some extraction types. Anything older and we get massive noise from reflow.
make get-translationsgit add pootle/locale/*/*.pogit commitgit push
make potgit add pootle/locale/templates/*.potgit commitgit push
We commit these to VCS because we want template updates in one batch and want to be able to see user translations clearly from template updates.
- Get into dev virtualenv
make pot./pootle/tools/updatepootlepogit add pootle/locale/*/*.pogit commitgit pushmake put-translationsgit reset --hard HEAD
If you want to see that your localisations are actually working then you want to hack a locale with an xxx build. This will place x's around localisable strings. Thus Open becomes xxxOpenxxx and thus you can easily see if a string is translatable. Anything without xxx around it cannot be localised.
./pootle/tools/test_localisation.sh --pot afmake assets- Restart server
- Check localisations
This will use the af locale as your test locale (use whichever language you find easiest to set on your browser. You need to rerun make assets to ensure that assets are compiled.