Add I18N related configurations

* Add Transifex config
* Add babel config to setup.cfg (extract_messages, compile_catalog)
* Add Babel to test-requirements.txt (It is only required
  when extracting and compiling catalogs
* Move English PO file to openstack_auth.pot
  (following other OpenStack projects)
* Remove English MO file

Change-Id: I7a908006c7a2c586d9d86cbfe3970b56f1461125
This commit is contained in:
Akihiro MOTOKI 2013-09-27 22:49:41 +09:00
parent 3225ad1261
commit c661a8ec25
6 changed files with 18 additions and 0 deletions

7
.tx/config Normal file
View File

@ -0,0 +1,7 @@
[main]
host = https://www.transifex.com
[horizon.djangopo]
file_filter = openstack_auth/locale/<lang>/LC_MESSAGES/django.po
source_file = openstack_auth/locale/openstack_auth.pot
source_lang = en

1
babel.cfg Normal file
View File

@ -0,0 +1 @@
[python: **.py]

View File

@ -34,3 +34,12 @@ source-dir = doc/source
[nosetests]
verbosity=2
detailed-errors=1
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = openstack_auth/locale/openstack_auth.pot
[compile_catalog]
directory = openstack_auth/locale
domain = django

View File

@ -1,4 +1,5 @@
hacking>=0.5.6,<0.8
Babel>=0.9.6
coverage>=3.6
mox>=0.5.3
sphinx>=1.1.2