4 This document describes how to create and maintain aurweb translations.
6 Creating an aurweb translation requires a Transifex (http://www.transifex.com/)
7 account. You will need to register with a translation team on the aurweb
8 project page (http://www.transifex.com/projects/p/aur/).
11 Creating a New Translation
12 --------------------------
14 Before beginning, please sign up for an Transifex account and request the
15 addition of a new translation team for the aurweb project. Also, please do not
16 translate if you are unwilling to maintain or find someone to maintain the
17 translation. This is due to the fact that aurweb is a rapidly evolving project
18 and there are constantly new strings to be translated. If the translations get
19 too out of sync with the released versions, there will be too many untranslated
20 strings for the translation to be usable, and it may have to be disabled.
22 1. Check out the aurweb source using git:
24 $ git clone git://projects.archlinux.org/aurweb.git aurweb-git
26 2. Go into the "po/" directory in the aurweb source and run msginit(1) to
27 create a initial translation file from our translation catalog:
33 $ msginit -l <locale> -o <locale>.po -i aur.pot
35 3. Use some editor or a translation helper like poedit to add translations:
39 5. If you have a working aurweb setup, add a line for the new translation in
40 "web/lib/config.inc.php.proto" and test if everything looks right.
42 6. Upload the newly created ".po" file to Transifex. If you don't like the web
43 interface, you can also use transifex-client to do that (see below).
46 Updating an Existing Translation
47 --------------------------------
49 1. Download current translation files from Transifex. You can also do this
50 using transifex-client which is available through the AUR:
54 2. Update the existing translation file using an editor or a tool like poedit:
56 $ poedit po/<locale>.po
58 3. Push the updated translation file back to Transifex. Using transifex-client,
59 this works as follows:
61 $ tx push -r aur.aurpot -t -l <locale>