Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (19 sloc) 1.204 kb
ea9ae10 @liftoff Adding some files I apparently missed in the last two (or three) commits...
authored
1 # Meant to be used with pybabel like so (this file is babel_gateone.cfg):
2 # Create a gateone.pot file by extracting _() strings from all the source files (*.py and templates)"
3 # $ pybabel extract -o gateone/i18n/gateone.pot -F ./babel_gateone.cfg gateone
4
5 # Then you can create a translation for, say, Portuguese (creates a fresh/empty .po file):
6 # $ pybabel init -D gateone -i gateone/i18n/gateone.pot -d gateone/i18n/ -l pt_PT
7 # Edit the resulting .po file (adding your translations) and lastly, compile it to .mo:
8 # $ pybabel compile -D gateone -d gateone/i18n/ -f --statistics
9 # Now Gate One will automatically use your translation, awesome!
10
11 # If gateone.pot changed, you'll need to update your translation with the new changes:
12 # $ pybabel update -d gateone/i18n -l pt_PT -i gateone/i18n/gateone.pot -D gateone
13 # That will update the line numbers, comment out any obsolete translations, and add any new untranslated text.
14
15 # Extraction from Python source files
16 [python: *.py]
17
18 # Extraction from Tornado templates
19 [tornado: gateone/templates/**.html]
20 input_encoding = utf-8
21
22 # Extraction from JavaScript files
23 [javascript: gateone/static/**.js]
24 input_encoding = utf-8
25
Something went wrong with that request. Please try again.