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//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 Binary files a/openstack_auth/locale/en/LC_MESSAGES/django.mo and /dev/null differ diff --git a/openstack_auth/locale/en/LC_MESSAGES/django.po b/openstack_auth/locale/openstack_auth.pot similarity index 100% rename from openstack_auth/locale/en/LC_MESSAGES/django.po rename to 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