Changes between Initial Version and Version 1 of TranslationSystem


Ignore:
Timestamp:
Sep 17, 2013, 12:46:35 PM (11 years ago)
Author:
romw
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TranslationSystem

    v1 v1  
     1= BOINC Translation System =
     2
     3The BOINC translation system is broken into three phases.
     4
     5== Template Construction ==
     6
     7This 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
     9To 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
     16To update the Android localization template execute:
     17{{{
     18cd boinc/android
     19a2po export -v
     20}}}
     21
     22After verifying that the updated templates have the correct string to translate and a PO header go ahead and commit the changes.
     23
     24All templates are stored in /boinc/locale/templates.
     25
     26== Translation ==
     27
     28Twice daily a cron job kicks off the process of committing all changes and updating existing languages using the new templates.
     29
     30Pootle 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
     40After 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
     42Converting the Android PO file back into the native Android localization system XML files involves executing:
     43{{{
     44a2po export -v
     45}}}