From e9d00d16ae0f89da42831b65595a0a0af056ea52 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 28 Jan 2016 20:40:43 +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 oslo.concurrency/locale/oslo.concurrency.pot to oslo_concurrency/locale/oslo_concurrency.pot. For this we need to update setup.cfg. Update also domain name in i18n.py. Change-Id: Ie774c4252f8481f2541ed0a2cad565d149dfcc72 --- oslo_concurrency/_i18n.py | 2 +- .../en_GB/LC_MESSAGES/oslo_concurrency-log-info.po | 0 .../locale/en_GB/LC_MESSAGES/oslo_concurrency.po | 0 .../es/LC_MESSAGES/oslo_concurrency-log-info.po | 0 .../locale/es/LC_MESSAGES/oslo_concurrency.po | 0 .../fr/LC_MESSAGES/oslo_concurrency-log-info.po | 0 .../locale/fr/LC_MESSAGES/oslo_concurrency.po | 0 .../locale/oslo_concurrency-log-info.pot | 0 .../locale/oslo_concurrency.pot | 0 setup.cfg | 12 ++++++------ 10 files changed, 7 insertions(+), 7 deletions(-) rename oslo.concurrency/locale/en_GB/LC_MESSAGES/oslo.concurrency-log-info.po => oslo_concurrency/locale/en_GB/LC_MESSAGES/oslo_concurrency-log-info.po (100%) rename oslo.concurrency/locale/en_GB/LC_MESSAGES/oslo.concurrency.po => oslo_concurrency/locale/en_GB/LC_MESSAGES/oslo_concurrency.po (100%) rename oslo.concurrency/locale/es/LC_MESSAGES/oslo.concurrency-log-info.po => oslo_concurrency/locale/es/LC_MESSAGES/oslo_concurrency-log-info.po (100%) rename oslo.concurrency/locale/es/LC_MESSAGES/oslo.concurrency.po => oslo_concurrency/locale/es/LC_MESSAGES/oslo_concurrency.po (100%) rename oslo.concurrency/locale/fr/LC_MESSAGES/oslo.concurrency-log-info.po => oslo_concurrency/locale/fr/LC_MESSAGES/oslo_concurrency-log-info.po (100%) rename oslo.concurrency/locale/fr/LC_MESSAGES/oslo.concurrency.po => oslo_concurrency/locale/fr/LC_MESSAGES/oslo_concurrency.po (100%) rename oslo.concurrency/locale/oslo.concurrency-log-info.pot => oslo_concurrency/locale/oslo_concurrency-log-info.pot (100%) rename oslo.concurrency/locale/oslo.concurrency.pot => oslo_concurrency/locale/oslo_concurrency.pot (100%) diff --git a/oslo_concurrency/_i18n.py b/oslo_concurrency/_i18n.py index 0141a5e..7524106 100644 --- a/oslo_concurrency/_i18n.py +++ b/oslo_concurrency/_i18n.py @@ -16,7 +16,7 @@ import oslo_i18n -_translators = oslo_i18n.TranslatorFactory(domain='oslo.concurrency') +_translators = oslo_i18n.TranslatorFactory(domain='oslo_concurrency') # The primary translation function using the well-known name "_" _ = _translators.primary diff --git a/oslo.concurrency/locale/en_GB/LC_MESSAGES/oslo.concurrency-log-info.po b/oslo_concurrency/locale/en_GB/LC_MESSAGES/oslo_concurrency-log-info.po similarity index 100% rename from oslo.concurrency/locale/en_GB/LC_MESSAGES/oslo.concurrency-log-info.po rename to oslo_concurrency/locale/en_GB/LC_MESSAGES/oslo_concurrency-log-info.po diff --git a/oslo.concurrency/locale/en_GB/LC_MESSAGES/oslo.concurrency.po b/oslo_concurrency/locale/en_GB/LC_MESSAGES/oslo_concurrency.po similarity index 100% rename from oslo.concurrency/locale/en_GB/LC_MESSAGES/oslo.concurrency.po rename to oslo_concurrency/locale/en_GB/LC_MESSAGES/oslo_concurrency.po diff --git a/oslo.concurrency/locale/es/LC_MESSAGES/oslo.concurrency-log-info.po b/oslo_concurrency/locale/es/LC_MESSAGES/oslo_concurrency-log-info.po similarity index 100% rename from oslo.concurrency/locale/es/LC_MESSAGES/oslo.concurrency-log-info.po rename to oslo_concurrency/locale/es/LC_MESSAGES/oslo_concurrency-log-info.po diff --git a/oslo.concurrency/locale/es/LC_MESSAGES/oslo.concurrency.po b/oslo_concurrency/locale/es/LC_MESSAGES/oslo_concurrency.po similarity index 100% rename from oslo.concurrency/locale/es/LC_MESSAGES/oslo.concurrency.po rename to oslo_concurrency/locale/es/LC_MESSAGES/oslo_concurrency.po diff --git a/oslo.concurrency/locale/fr/LC_MESSAGES/oslo.concurrency-log-info.po b/oslo_concurrency/locale/fr/LC_MESSAGES/oslo_concurrency-log-info.po similarity index 100% rename from oslo.concurrency/locale/fr/LC_MESSAGES/oslo.concurrency-log-info.po rename to oslo_concurrency/locale/fr/LC_MESSAGES/oslo_concurrency-log-info.po diff --git a/oslo.concurrency/locale/fr/LC_MESSAGES/oslo.concurrency.po b/oslo_concurrency/locale/fr/LC_MESSAGES/oslo_concurrency.po similarity index 100% rename from oslo.concurrency/locale/fr/LC_MESSAGES/oslo.concurrency.po rename to oslo_concurrency/locale/fr/LC_MESSAGES/oslo_concurrency.po diff --git a/oslo.concurrency/locale/oslo.concurrency-log-info.pot b/oslo_concurrency/locale/oslo_concurrency-log-info.pot similarity index 100% rename from oslo.concurrency/locale/oslo.concurrency-log-info.pot rename to oslo_concurrency/locale/oslo_concurrency-log-info.pot diff --git a/oslo.concurrency/locale/oslo.concurrency.pot b/oslo_concurrency/locale/oslo_concurrency.pot similarity index 100% rename from oslo.concurrency/locale/oslo.concurrency.pot rename to oslo_concurrency/locale/oslo_concurrency.pot diff --git a/setup.cfg b/setup.cfg index 124ffff..00f5461 100644 --- a/setup.cfg +++ b/setup.cfg @@ -37,18 +37,18 @@ all_files = 1 upload-dir = doc/build/html [compile_catalog] -directory = oslo.concurrency/locale -domain = oslo.concurrency +directory = oslo_concurrency/locale +domain = oslo_concurrency [update_catalog] -domain = oslo.concurrency -output_dir = oslo.concurrency/locale -input_file = oslo.concurrency/locale/oslo.concurrency.pot +domain = oslo_concurrency +output_dir = oslo_concurrency/locale +input_file = oslo_concurrency/locale/oslo_concurrency.pot [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg -output_file = oslo.concurrency/locale/oslo.concurrency.pot +output_file = oslo_concurrency/locale/oslo_concurrency.pot [pbr] warnerrors = True