diff options
author | Andreas Jaeger <aj@suse.com> | 2016-01-28 19:13:49 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@suse.com> | 2016-01-28 21:49:27 +0100 |
commit | 00ba1ec9b4286669f9abad436b4b8bb9ee8bb120 (patch) | |
tree | cee987242c012c4f83ff4a69f4578d042406848e | |
parent | 5af3d2a1f04907c5d4f1cec4f5008a7d521b72a5 (diff) | |
download | python-heatclient-00ba1ec9b4286669f9abad436b4b8bb9ee8bb120.tar.gz |
Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.
This basically renames
python-heatclient/locale/python-heatclient.pot to
heatclient/locale/heatclient.pot. For this we need to update
setup.cfg.
The domain name is already correct in i18n.py.
The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.
Remove test for valid translation files in tox.ini since there are now
no more pot files - and the test fails if there are no files at all.
Change-Id: I6f5e77b9cd633f6edb503ff225ca0b507153946c
-rw-r--r-- | python-heatclient/locale/python-heatclient.pot | 0 | ||||
-rw-r--r-- | setup.cfg | 12 | ||||
-rw-r--r-- | tox.ini | 3 |
3 files changed, 6 insertions, 9 deletions
diff --git a/python-heatclient/locale/python-heatclient.pot b/python-heatclient/locale/python-heatclient.pot deleted file mode 100644 index e69de29..0000000 --- a/python-heatclient/locale/python-heatclient.pot +++ /dev/null @@ -54,13 +54,13 @@ universal = 1 [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg -output_file = python-heatclient/locale/python-heatclient.pot +output_file = heatclient/locale/heatclient.pot [compile_catalog] -directory = python-heatclient/locale -domain = python-heatclient +directory = heatclient/locale +domain = heatclient [update_catalog] -domain = python-heatclient -output_dir = python-heatclient/locale -input_file = python-heatclient/locale/python-heatclient.pot +domain = heatclient +output_dir = heatclient/locale +input_file = heatclient/locale/heatclient.pot @@ -32,9 +32,6 @@ commands = oslo_debug_helper -t heatclient/tests {posargs} [testenv:pep8] commands = flake8 - # Check that .po and .pot files are valid: - bash -c "find python-heatclient -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null" -whitelist_externals = bash [testenv:venv] commands = {posargs} |