From a0b7dfa962846f9bdfb2154999f6714afbf7b6fa Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 28 Jan 2016 19:07:17 +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 python-magnumclient/locale/python-magnumclient.pot to magnumclient/locale/magnumclient.pot. For this we need to update setup.cfg. The domain name is already correct in magnumclient/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: Ie2b32aec76a35fc5a1b9ee26bf0265cef393415a --- .../locale/python-magnumclient.pot | 206 ------------------ setup.cfg | 12 +- 2 files changed, 6 insertions(+), 212 deletions(-) delete mode 100644 python-magnumclient/locale/python-magnumclient.pot diff --git a/python-magnumclient/locale/python-magnumclient.pot b/python-magnumclient/locale/python-magnumclient.pot deleted file mode 100644 index 790bec21..00000000 --- a/python-magnumclient/locale/python-magnumclient.pot +++ /dev/null @@ -1,206 +0,0 @@ -# Translations template for python-magnumclient. -# Copyright (C) 2015 ORGANIZATION -# This file is distributed under the same license as the python-magnumclient -# project. -# FIRST AUTHOR , 2015. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: python-magnumclient 0.2.1.dev1\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2015-05-13 17:11-0400\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 1.3\n" - -#: magnumclient/common/utils.py:55 -#, python-format -msgid "Attributes must be a list of PATH=VALUE not \"%s\"" -msgstr "" - -#: magnumclient/common/utils.py:79 -#, python-format -msgid "Unknown PATCH operation: %s" -msgstr "" - -#: magnumclient/openstack/common/cliutils.py:40 -#, python-format -msgid "Missing arguments: %s" -msgstr "" - -#: magnumclient/openstack/common/cliutils.py:158 -#, python-format -msgid "" -"Field labels list %(labels)s has different number of elements than fields" -" list %(fields)s" -msgstr "" - -#: magnumclient/openstack/common/apiclient/base.py:244 -#: magnumclient/openstack/common/apiclient/base.py:401 -#, python-format -msgid "No %(name)s matching %(args)s." -msgstr "" - -#: magnumclient/openstack/common/apiclient/client.py:250 -msgid "Cannot find endpoint or token for request" -msgstr "" - -#: magnumclient/openstack/common/apiclient/client.py:381 -#, python-format -msgid "" -"Invalid %(api_name)s client version '%(version)s'. Must be one of: " -"%(version_map)s" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:79 -#, python-format -msgid "Authentication failed. Missing options: %s" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:88 -#, python-format -msgid "AuthSystemNotFound: %s" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:111 -#, python-format -msgid "AmbiguousEndpoints: %s" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:119 -msgid "HTTP Error" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:139 -msgid "HTTP Redirection" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:147 -msgid "HTTP Client Error" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:156 -msgid "HTTP Server Error" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:166 -msgid "Multiple Choices" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:175 -msgid "Bad Request" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:185 -msgid "Unauthorized" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:194 -msgid "Payment Required" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:204 -msgid "Forbidden" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:214 -msgid "Not Found" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:224 -msgid "Method Not Allowed" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:234 -msgid "Not Acceptable" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:243 -msgid "Proxy Authentication Required" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:252 -msgid "Request Timeout" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:262 -msgid "Conflict" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:272 -msgid "Gone" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:282 -msgid "Length Required" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:292 -msgid "Precondition Failed" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:301 -msgid "Request Entity Too Large" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:318 -msgid "Request-URI Too Long" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:328 -msgid "Unsupported Media Type" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:338 -msgid "Requested Range Not Satisfiable" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:347 -msgid "Expectation Failed" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:357 -msgid "Unprocessable Entity" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:366 -msgid "Internal Server Error" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:377 -msgid "Not Implemented" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:387 -msgid "Bad Gateway" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:396 -msgid "Service Unavailable" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:406 -msgid "Gateway Timeout" -msgstr "" - -#: magnumclient/openstack/common/apiclient/exceptions.py:415 -msgid "HTTP Version Not Supported" -msgstr "" - -#: magnumclient/openstack/common/apiclient/utils.py:86 -#, python-format -msgid "No %(name)s with a name or ID of '%(name_or_id)s' exists." -msgstr "" - -#: magnumclient/openstack/common/apiclient/utils.py:94 -#, python-format -msgid "" -"Multiple %(name)s matches found for '%(name_or_id)s', use an ID to be " -"more specific." -msgstr "" - diff --git a/setup.cfg b/setup.cfg index 96f6cba6..c2bb1913 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,18 +33,18 @@ all_files = 1 upload-dir = doc/build/html [compile_catalog] -directory = python-magnumclient/locale -domain = python-magnumclient +directory = magnumclient/locale +domain = magnumclient [update_catalog] -domain = python-magnumclient -output_dir = python-magnumclient/locale -input_file = python-magnumclient/locale/python-magnumclient.pot +domain = magnumclient +output_dir = magnumclient/locale +input_file = magnumclient/locale/magnumclient.pot [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg -output_file = python-magnumclient/locale/python-magnumclient.pot +output_file = magnumclient/locale/magnumclient.pot [wheel] universal = 1