| 1 | = BOINC Translation System = |
| 2 | |
| 3 | The BOINC translation system is broken into three phases. |
| 4 | |
| 5 | == Template Construction == |
| 6 | |
| 7 | This phase is primarily a manual operation. If the automated framework consumes an invalid or empty template file all existing translations will be thrown away. |
| 8 | |
| 9 | To manually update a template run the 'build_po' scripts in the given area of interest: |
| 10 | * boinc/doc (BOINC-Web.pot) |
| 11 | * html/user (BOINC-Project-Generic.pot) |
| 12 | * boinc/client (BOINC-Client.pot) |
| 13 | * boinc/clientgui (BOINC-Manager.pot) |
| 14 | * boinc/mac_installer (BOINC-Setup.pot) |
| 15 | |
| 16 | To update the Android localization template execute: |
| 17 | {{{ |
| 18 | cd boinc/android |
| 19 | a2po export -v |
| 20 | }}} |
| 21 | |
| 22 | After verifying that the updated templates have the correct string to translate and a PO header go ahead and commit the changes. |
| 23 | |
| 24 | All templates are stored in /boinc/locale/templates. |
| 25 | |
| 26 | == Translation == |
| 27 | |
| 28 | Twice daily a cron job kicks off the process of committing all changes and updating existing languages using the new templates. |
| 29 | |
| 30 | Pootle takes care of the bulk of this with the following commands (pootle/update.sh): |
| 31 | {{{ |
| 32 | /usr/bin/pootle commit_to_vcs --project boinctrunk |
| 33 | /usr/bin/pootle update_from_vcs --project boinctrunk |
| 34 | /usr/bin/pootle update_against_templates --project boinctrunk |
| 35 | /usr/bin/pootle refresh_stats --project boinctrunk |
| 36 | }}} |
| 37 | |
| 38 | == Post Translation Updates == |
| 39 | |
| 40 | After all the latest updates have been committed the compiled PO files need to be updated. The end of the pootle/update.sh file executes boinc/locale/updatetrans.sh which handles compiling the PO files into MO files. |
| 41 | |
| 42 | Converting the Android PO file back into the native Android localization system XML files involves executing: |
| 43 | {{{ |
| 44 | a2po export -v |
| 45 | }}} |