Skip to content

Commit a6cd2dc

Browse files
author
Akihiro Motoki
committed
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-openstackclient/locale/python-openstackclient.pot to openstackclient/locale/openstackclient.pot. For this we need to update setup.cfg. Update also domain name in i18n.py. Change-Id: I89fad12f20775c8b7cd228348ff82a77488e6ab2
1 parent 636b4de commit a6cd2dc

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

openstackclient/i18n.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import oslo_i18n
1717

18-
_translators = oslo_i18n.TranslatorFactory(domain='python-openstackclient')
18+
_translators = oslo_i18n.TranslatorFactory(domain='openstackclient')
1919

2020
# The primary translation function using the well-known name "_"
2121
_ = _translators.primary

python-openstackclient/locale/de/LC_MESSAGES/python-openstackclient.po renamed to openstackclient/locale/de/LC_MESSAGES/openstackclient.po

File renamed without changes.
File renamed without changes.

python-openstackclient/locale/zh_TW/LC_MESSAGES/python-openstackclient.po renamed to openstackclient/locale/zh_TW/LC_MESSAGES/openstackclient.po

File renamed without changes.

setup.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,13 @@ universal = 1
447447
[extract_messages]
448448
keywords = _ gettext ngettext l_ lazy_gettext
449449
mapping_file = babel.cfg
450-
output_file = python-openstackclient/locale/python-openstackclient.pot
450+
output_file = openstackclient/locale/openstackclient.pot
451451

452452
[update_catalog]
453-
domain = python-openstackclient
454-
output_dir = python-openstackclient/locale
455-
input_file = python-openstackclient/locale/python-openstackclient.pot
453+
domain = openstackclient
454+
output_dir = openstackclient/locale
455+
input_file = openstackclient/locale/openstackclient.pot
456456

457457
[compile_catalog]
458-
directory = python-openstackclient/locale
459-
domain = python-openstackclient
458+
directory = openstackclient/locale
459+
domain = openstackclient

0 commit comments

Comments
 (0)