From a6cd2dc13680c818c7053ef51526962639441b31 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Thu, 28 Jan 2016 23:46:21 +0900 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-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 --- openstackclient/i18n.py | 2 +- .../locale/de/LC_MESSAGES/openstackclient.po | 0 .../locale/openstackclient.pot | 0 .../locale/zh_TW/LC_MESSAGES/openstackclient.po | 0 setup.cfg | 12 ++++++------ 5 files changed, 7 insertions(+), 7 deletions(-) rename python-openstackclient/locale/de/LC_MESSAGES/python-openstackclient.po => openstackclient/locale/de/LC_MESSAGES/openstackclient.po (100%) rename python-openstackclient/locale/python-openstackclient.pot => openstackclient/locale/openstackclient.pot (100%) rename python-openstackclient/locale/zh_TW/LC_MESSAGES/python-openstackclient.po => openstackclient/locale/zh_TW/LC_MESSAGES/openstackclient.po (100%) diff --git a/openstackclient/i18n.py b/openstackclient/i18n.py index 3a11c1d0dc..1d09772cab 100644 --- a/openstackclient/i18n.py +++ b/openstackclient/i18n.py @@ -15,7 +15,7 @@ import oslo_i18n -_translators = oslo_i18n.TranslatorFactory(domain='python-openstackclient') +_translators = oslo_i18n.TranslatorFactory(domain='openstackclient') # The primary translation function using the well-known name "_" _ = _translators.primary diff --git a/python-openstackclient/locale/de/LC_MESSAGES/python-openstackclient.po b/openstackclient/locale/de/LC_MESSAGES/openstackclient.po similarity index 100% rename from python-openstackclient/locale/de/LC_MESSAGES/python-openstackclient.po rename to openstackclient/locale/de/LC_MESSAGES/openstackclient.po diff --git a/python-openstackclient/locale/python-openstackclient.pot b/openstackclient/locale/openstackclient.pot similarity index 100% rename from python-openstackclient/locale/python-openstackclient.pot rename to openstackclient/locale/openstackclient.pot diff --git a/python-openstackclient/locale/zh_TW/LC_MESSAGES/python-openstackclient.po b/openstackclient/locale/zh_TW/LC_MESSAGES/openstackclient.po similarity index 100% rename from python-openstackclient/locale/zh_TW/LC_MESSAGES/python-openstackclient.po rename to openstackclient/locale/zh_TW/LC_MESSAGES/openstackclient.po diff --git a/setup.cfg b/setup.cfg index 8a09735c30..2751eb3178 100644 --- a/setup.cfg +++ b/setup.cfg @@ -447,13 +447,13 @@ universal = 1 [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg -output_file = python-openstackclient/locale/python-openstackclient.pot +output_file = openstackclient/locale/openstackclient.pot [update_catalog] -domain = python-openstackclient -output_dir = python-openstackclient/locale -input_file = python-openstackclient/locale/python-openstackclient.pot +domain = openstackclient +output_dir = openstackclient/locale +input_file = openstackclient/locale/openstackclient.pot [compile_catalog] -directory = python-openstackclient/locale -domain = python-openstackclient +directory = openstackclient/locale +domain = openstackclient