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
This commit is contained in:
Andreas Jaeger 2016-01-28 19:13:49 +01:00
parent 5af3d2a1f0
commit 00ba1ec9b4
3 changed files with 6 additions and 9 deletions

View File

@ -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

View File

@ -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}