Changes between Version 4 and Version 5 of TranslationSystem
- Timestamp:
- Oct 16, 2013, 9:55:54 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TranslationSystem
v4 v5 48 48 == Translation == 49 49 50 Twice daily a cron job pulls modified templates from the BOINC repo and adds them to the Pootle database.51 DETAILS? 50 Twice daily a cron job (~boincam/pootle/update.sh) pulls modified templates from 51 the BOINC repo and adds them to the Pootle database. 52 52 53 [http://docs.translatehouse.org/projects/pootle/en/stable-2.5.0/server/commands.html Pootle Commands] 53 Various [http://docs.translatehouse.org/projects/pootle/en/stable-2.5.0/server/commands.html Pootle Commands]. 54 54 55 Pootle takes care of the bulk of this with the following commands (pootle/update.sh): 56 {{{ 57 /usr/bin/pootle commit_to_vcs --project boinctrunk 58 /usr/bin/pootle update_from_vcs --project boinctrunk 59 /usr/bin/pootle update_against_templates --project boinctrunk 60 /usr/bin/pootle refresh_stats --project boinctrunk 61 }}} 55 update.sh should perform the following functions for each supported pootle project (boinctrunk, setiweb): 56 1. Commit to VCS all existing changes to PO files. (pootle command: commit_to_vcs) 57 2. Update from VCS all templates for each project. (pootle command: update_from_vcs) 58 3. Apply template changes to all projects/languages. (pootle command: update_against_templates) 59 4. Compile all catalogs used by the client software into MO files. (Execute: boinc/locale/updatetrans.sh) 60 5. Commit to VCS all existing changes to MO files. (git command: commit) 61 62 All pootle operations are limited to just the boinc/locale directory structure. Projects are expected to 63 have a similar structure. 62 64 63 65 == Post Translation Updates == 64 65 After all the latest updates have been committed the compiled PO files need to be updated.66 The end of the pootle/update.sh file it executes boinc/locale/updatetrans.sh which handles compiling the PO files into MO files.67 IS THIS AUTOMATED?68 66 69 67 Converting the Android PO file back into the native Android localization system XML files involves executing: