aboutsummaryrefslogtreecommitdiffstats
path: root/doc/TRANSLATE.md
diff options
context:
space:
mode:
authorseb <seb@seb-U36JC>2011-11-24 09:21:36 +0000
committerseb <seb@seb-U36JC>2011-11-24 09:21:36 +0000
commita4e533f1588a5d34dca4ab462b58ddd83eed37c5 (patch)
tree58bb3b57ec5664e094ae151c18b6c1915256e364 /doc/TRANSLATE.md
parentd473fce1d0451c913d3ef697d3b45bd58c6fff54 (diff)
parente649c2a7f19d0a75206149d886ff47b3ccda4e91 (diff)
Merge branch 'develop' into xapian-dcabo
Conflicts: spec/models/xapian_spec.rb
Diffstat (limited to 'doc/TRANSLATE.md')
-rw-r--r--doc/TRANSLATE.md24
1 files changed, 21 insertions, 3 deletions
diff --git a/doc/TRANSLATE.md b/doc/TRANSLATE.md
index 37ed4701b..be88dafa0 100644
--- a/doc/TRANSLATE.md
+++ b/doc/TRANSLATE.md
@@ -5,7 +5,19 @@ The Transifex project is at
https://www.transifex.net/projects/p/alaveteli/; you'll probably want
an account there (ask on the mailing list).
-# Finding new translatable strings
+# Summary
+
+1. Make some changes to the software with `_('translatable strings')`
+2. Run `./script/generate_pot.sh`
+3. This should just cause the file at `locale/app.pot` to change. Commit and push
+4. Send a message to the alaveteli-dev mailing list warning them that you're going to upload this file to transifex
+5. Wait a day or so
+6. Update the `app.pot` resource in Transifex
+7. When new translations are available, run `tx pull -a` and commit the results to the repository
+
+# Detail
+
+## Finding new translatable strings
To update the POT file with strings from the software source, run
`rake gettext:find` from the Alaveteli software. This will also
@@ -13,7 +25,14 @@ update all the PO files for all the languages, which you don't
actually want, because these are all handled in Transifex; so you'll
want to revert these files again using git.
-# Pulling translations from Transifex
+The script at `./script/generate_pot.sh` does these steps for you.
+
+When you've changed the POT file, and committed it, you should warn
+people on the mailing list before logging into Transifex and pressing
+the button to import it into that system. Otherwise, translators
+might lose some of their old but useful translations.
+
+## Pulling translations from Transifex
To update the local translation files using the Transifex command-line client, first install it:
@@ -24,4 +43,3 @@ Then you can run the following from the root of your Alaveteli install:
tx pull -a
Finally, commit these translations to github as usual.
-