~verzegnassi-stefano/+junk/ubuntu-terminal-app-uitk13

« back to all changes in this revision

Viewing changes to README.translations

  • Committer: Filippo Scognamiglio
  • Date: 2014-10-25 04:42:31 UTC
  • Revision ID: flscogna@gmail.com-20141025044231-javjhusbqa171127
Initial reboot commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Updating translations
 
2
 
 
3
Translations for the Terminal app happen in [Launchpad Translations][] and
 
4
are automatically committed daily on the trunk branch in the po/ folder.
 
5
 
 
6
They are then built and installed as part of the package build, so that
 
7
developers don't really need to worry about them.
 
8
 
 
9
However, there is one task that needs to be taken care of: exposing new
 
10
translatable messages to translators. So whenever you add new translatable
 
11
messages in the code, make sure to follow these steps:
 
12
 
 
13
 1. Run click-buddy retaining the build directory:
 
14
    `click-buddy --dir . --no-clean`
 
15
 2. Commit and push the branch and send a merge proposal as usual
 
16
 
 
17
And that's it, once the branch lands Launchpad should take care of all the rest!
 
18
 
 
19
# Behind the scenes
 
20
 
 
21
Behind the scenes, whenever the po/*.pot file (also known as translations template)
 
22
is committed to trunk Launchpad reads it and updates the translatable strings
 
23
exposed in the web UI. This will enable translators to work on the new strings.
 
24
The translations template contains all translatable strings that have been
 
25
extracted from the source code files.
 
26
 
 
27
Launchpad will then store translations in its database and will commit them daily
 
28
in the form of textual po/*.po files to trunk. The PO files are also usually
 
29
referred to as the translations files. You'll find a translation file for each
 
30
language the app has got at least a translated message available for.
 
31
 
 
32
Translations for core apps follow the standard [gettext format][].
 
33
 
 
34
 [Launchpad Translations]: https://translations.launchpad.net/ubuntu-terminal-app
 
35
 [gettext format]: https://www.gnu.org/software/gettext/