From 00ba1ec9b4286669f9abad436b4b8bb9ee8bb120 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 28 Jan 2016 19:13:49 +0100 Subject: [PATCH] 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 --- python-heatclient/locale/python-heatclient.pot | 0 setup.cfg | 12 ++++++------ tox.ini | 3 --- 3 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 python-heatclient/locale/python-heatclient.pot diff --git a/python-heatclient/locale/python-heatclient.pot b/python-heatclient/locale/python-heatclient.pot deleted file mode 100644 index e69de29b..00000000 diff --git a/setup.cfg b/setup.cfg index d11fa7ae..9ca65449 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/tox.ini b/tox.ini index 18fb577a..47371be0 100644 --- a/tox.ini +++ b/tox.ini @@ -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}