Firefox Rocket for Android is getting localized on Pontoon.
For converting between Android XML files and Gettext PO files (to be consumed by Pontoon) we use a local, slightly modified version of android2po (See tools/l10n/android2po
).
-
Python, Pip and Git need to be installed.
-
Run the
stringsSetup
gradle tasks to create a local checkout of the L10N repository (in folderl10n-repo
) and to install the python dependencies to run the l10n scripts:
./gradlew stringsSetup
- Fetch the latest changes from the L10N repository and remove all local modifications with the
stringsCleanUpdate
gradle task:
./gradlew stringsCleanUpdate
- Run the
stringsExport
gradle task to update the template and existing translations:
./gradlew stringsExport
- Create separate commits for every locale using the
stringsCommit
gradle task:
./gradlew stringsCommit
- Go to the l10n-repo folder, verify the changes and push them to the L10N repository.
- Fetch the latest changes from the L10N repository and remove all local modifications with the
stringsCleanUpdate
gradle task:
./gradlew stringsCleanUpdate
- Run the
stringsImport
gradle task to generate the Android XML files.
./gradlew stringsImport
- Verify the changes and then commit and push the updated XML files to the app repository.