From b97a12c059aa2406fe62ecf7f94f1a4a12814176 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 29 Jan 2016 11:47:44 +0100 Subject: 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.policy/locale/oslo.policy.pot to oslo_policy/locale/oslo_policy.pot. For this we need to update setup.cfg. Update also domain name 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. Change-Id: I9ca723834b1634a9ed965a92724d72fefc15e0d2 --- setup.cfg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 40037f1..6ce85ce 100644 --- a/setup.cfg +++ b/setup.cfg @@ -44,18 +44,18 @@ all_files = 1 upload-dir = doc/build/html [compile_catalog] -directory = oslo.policy/locale -domain = oslo.policy +directory = oslo_policy/locale +domain = oslo_policy [update_catalog] -domain = oslo.policy -output_dir = oslo.policy/locale -input_file = oslo.policy/locale/oslo.policy.pot +domain = oslo_policy +output_dir = oslo_policy/locale +input_file = oslo_policy/locale/oslo_policy.pot [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg -output_file = oslo.policy/locale/oslo.policy.pot +output_file = oslo_policy/locale/oslo_policy.pot [wheel] universal = true -- cgit v1.2.1