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:
parent
3225ad1261
commit
c661a8ec25
|
@ -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
|
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue