summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-09-28 13:09:38 +0000
committerGerrit Code Review <review@openstack.org>2013-09-28 13:09:38 +0000
commit7431b5b334f1bfb944bf7f8ac86c8ff185b6def4 (patch)
tree582a609ec5d46d3b8ab77f5b4cf13bc8cb6127b0
parente6d9060611e48b7e952f2881a7687ee64af0f8c5 (diff)
parentc661a8ec251dfed55156f152c3c452fda5eea0dc (diff)
downloaddjango_openstack_auth-7431b5b334f1bfb944bf7f8ac86c8ff185b6def4.tar.gz
Merge "Add I18N related configurations"
-rw-r--r--.tx/config7
-rw-r--r--babel.cfg1
-rw-r--r--openstack_auth/locale/en/LC_MESSAGES/django.mobin378 -> 0 bytes
-rw-r--r--openstack_auth/locale/openstack_auth.pot (renamed from openstack_auth/locale/en/LC_MESSAGES/django.po)0
-rw-r--r--setup.cfg9
-rw-r--r--test-requirements.txt1
6 files changed, 18 insertions, 0 deletions
diff --git a/.tx/config b/.tx/config
new file mode 100644
index 0000000..e238705
--- /dev/null
+++ b/.tx/config
@@ -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
diff --git a/babel.cfg b/babel.cfg
new file mode 100644
index 0000000..efceab8
--- /dev/null
+++ b/babel.cfg
@@ -0,0 +1 @@
+[python: **.py]
diff --git a/openstack_auth/locale/en/LC_MESSAGES/django.mo b/openstack_auth/locale/en/LC_MESSAGES/django.mo
deleted file mode 100644
index 4b16efe..0000000
--- a/openstack_auth/locale/en/LC_MESSAGES/django.mo
+++ /dev/null
Binary files differ
diff --git a/openstack_auth/locale/en/LC_MESSAGES/django.po b/openstack_auth/locale/openstack_auth.pot
index 5688058..5688058 100644
--- a/openstack_auth/locale/en/LC_MESSAGES/django.po
+++ b/openstack_auth/locale/openstack_auth.pot
diff --git a/setup.cfg b/setup.cfg
index fb0d174..b9a550c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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
diff --git a/test-requirements.txt b/test-requirements.txt
index 089d499..499a013 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -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