Stepan Salenikovich | e88f669 | 2015-09-10 18:09:38 -0400 | [diff] [blame] | 1 | Translation guide: |
| 2 | |
| 3 | The client uses gettext for translations, for a comprehensive guide see: |
| 4 | http://www.gnu.org/software/gettext/manual/gettext.htm |
| 5 | |
| 6 | In order to generate the .pot (template) file with all the translation strings, |
| 7 | append all the filenames that require translation to POTFILES.in, then run the |
| 8 | following command: |
Stepan Salenikovich | a1b8cb3 | 2015-09-11 14:58:35 -0400 | [diff] [blame] | 9 | xgettext -o ring-client-gnome.pot --keyword=_ --keyword=C_:1c,2 --keyword=N_ -D .. -f POTFILES.in |
| 10 | |
| 11 | Replace the first 3 lines of the generated header with: |
| 12 | # Gettext PO translation template file for the GNOME client of the Ring project. |
| 13 | # Copyright (C) 2015 Savoir-faire Linux Inc. |
| 14 | # This file is distributed under the same license as the Ring package. |
Stepan Salenikovich | e88f669 | 2015-09-10 18:09:38 -0400 | [diff] [blame] | 15 | |
| 16 | The translation files are expected to be located in the /po dir using the |
| 17 | following naming convention: |
| 18 | <language code>[_<country code>].po |
| 19 | for example: fr_CA.po, lt.po |
| 20 | |
| 21 | The Ring project uses Transifex.com to facilitate the translation process. The |
| 22 | project page can be found here: |
| 23 | https://www.transifex.com/savoirfairelinux/ring |