Diff for "Translations/Lao/ImportingTranslations"

Not logged in - Log In / Register

Differences between revisions 10 and 11
Revision 10 as of 2009-09-08 15:27:25
Size: 3579
Editor: 201
Comment: Portugese -> Portuguese
Revision 11 as of 2010-01-06 15:39:18
Size: 3589
Editor: cpc4-wolv12-0-0-cust233
Comment:
Deletions are marked like this. Additions are marked like this.
Line 50: Line 50:
Launchpad can help you safeguard the quality of the translations you use in your project. Choose a [[Translations/YourProject/Policies|review policy]] for your project's translations. Launchpad can help you safeguard the quality of the translations you use in your project. Choose a [[Translations/YourProject/PermissionPolicies|review policy]] for your project's translations.

Launchpad Help > Translations > Your Project > Importing translations

Importing your project's translations

Just as with translation templates, you can import translation files (.po) in two ways:

  • from your series' default Bazaar branch
  • or by uploading a tarball of templates and translation files through the web interface.

If you already have your translation files in a Bazaar branch (or git branch, or CVS or Subversion repository), you may find that to be the easiest source for importing your translation files.

Imports from a Bazaar branch

You can make either one-off or continuous imports of translation files in a Bazaar branch. Which you choose will most likely depend on whether you expect to make frequent translations outside of Launchpad.

  • Continuous: on your project's translations settings page choose Import template and translation files to automatically import any .po that are in the branch, whenever Launchpad imports .pot files from the branch.

  • One off: go to the Request Bazaar Import page to request a one-time import of all .pot and .po files in the branch.

One time upload of a tarball

Visit your project's translations overview page and click the link for the trunk series. Upload a tarball containing your translation files preserving directory structure.

Naming translation files

To ensure automatic approval and subsequent import of the translation files, you need to follow the translations import policy.

As a rough guide, you should observe these two rules:

  • Place each PO file in the same directory as the template it translates. Remember that each template should have its own directory.
  • Name the files according to the language code of the language they contain. So for Spanish translations use es.po.

Avoiding common problems

Your translations stand a better chance of an automatic, and therefore near instant, import if you follow these guidelines/

  • Ensure consistent formatting: for example, if "%d" appears in an original English string, make sure it's also in each language's equivalent.
  • Use consistent paths within your tarball: locate all your .po translation files under the same directory structure.
  • Name individual language .po files using the ISO language code, such fr.po for French. Only append the country code in the following circumstances:

    • variants of international English: for example, en_GB.po

    • Brazillian Portuguese: pt_BR.po (Brazillian Portuguese), as opposed to pt.po for European Portuguese

    • Chinese: traditional zh_TW.po and simplified zh_CN.po

Next steps

Launchpad can help you safeguard the quality of the translations you use in your project. Choose a review policy for your project's translations.

< Importing translation templates

Choosing a translation permissions policy >

Translations/Lao/ImportingTranslations (last edited 2010-02-02 03:23:48 by 114)