From e0242b49f1aee6a2825e5c7f2e2c5b3e8a78f2bf Mon Sep 17 00:00:00 2001 From: Jean-Emile DARTOIS Date: Thu, 14 Jan 2016 14:53:52 +0100 Subject: [PATCH] Fix extraction of _LI _LW _LE _LC for translation In order to start translating we should gradually update the messages. To fix this issue, we need to add _LI _LW _LE _LC in setup.cfg Change-Id: Ia0bdea4dd3ecc12a6b804add9163926dc34bb581 Related-Bug: #1534164 --- setup.cfg | 2 +- watcher/locale/fr/LC_MESSAGES/watcher.po | 102 +++++++++++++++++++++- watcher/locale/watcher.pot | 104 ++++++++++++++++++++++- 3 files changed, 202 insertions(+), 6 deletions(-) diff --git a/setup.cfg b/setup.cfg index f6a194fc4..5c05951ad 100644 --- a/setup.cfg +++ b/setup.cfg @@ -69,6 +69,6 @@ output_dir = watcher/locale input_file = watcher/locale/watcher.pot [extract_messages] -keywords = _ gettext ngettext l_ lazy_gettext +keywords = _ gettext ngettext l_ lazy_gettext _LI _LW _LE _LC mapping_file = babel.cfg output_file = watcher/locale/watcher.pot diff --git a/watcher/locale/fr/LC_MESSAGES/watcher.po b/watcher/locale/fr/LC_MESSAGES/watcher.po index 75a7cda29..0fd8df22c 100644 --- a/watcher/locale/fr/LC_MESSAGES/watcher.po +++ b/watcher/locale/fr/LC_MESSAGES/watcher.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: python-watcher 0.21.1.dev32\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2016-01-12 18:12+0100\n" +"POT-Creation-Date: 2016-01-14 14:51+0100\n" "PO-Revision-Date: 2015-12-11 15:42+0100\n" "Last-Translator: FULL NAME \n" "Language: fr\n" @@ -66,11 +66,17 @@ msgstr "" msgid "ErrorDocumentMiddleware received an invalid status %s" msgstr "" +#: watcher/api/middleware/parsable_error.py:80 +#, python-format +msgid "Error parsing HTTP response: %s" +msgstr "" + #: watcher/applier/primitives/change_nova_service_state.py:75 msgid "The target state is not defined" msgstr "" -#: watcher/cmd/api.py:46 +#: watcher/cmd/api.py:46 watcher/cmd/applier.py:39 +#: watcher/cmd/decisionengine.py:40 #, python-format msgid "Starting server in PID %s" msgstr "Démarre le serveur avec pour PID %s" @@ -89,6 +95,10 @@ msgstr "Sert sur http://%(host)s:%(port)s" msgid "An unknown exception occurred" msgstr "" +#: watcher/common/exception.py:77 +msgid "Exception in string format operation" +msgstr "" + #: watcher/common/exception.py:107 msgid "Not authorized" msgstr "" @@ -267,6 +277,48 @@ msgstr "Erreur lors du chargement du module '%(name)s'" msgid "No Keystone service catalog loaded" msgstr "" +#: watcher/common/service.py:83 +#, python-format +msgid "Created RPC server for service %(service)s on host %(host)s." +msgstr "" + +#: watcher/common/service.py:92 +#, python-format +msgid "Service error occurred when stopping the RPC server. Error: %s" +msgstr "" + +#: watcher/common/service.py:97 +#, python-format +msgid "Service error occurred when cleaning up the RPC manager. Error: %s" +msgstr "" + +#: watcher/common/service.py:101 +#, python-format +msgid "Stopped RPC server for service %(service)s on host %(host)s." +msgstr "" + +#: watcher/common/service.py:106 +#, python-format +msgid "" +"Got signal SIGUSR1. Not deregistering on next shutdown of service " +"%(service)s on host %(host)s." +msgstr "" + +#: watcher/common/utils.py:53 +#, python-format +msgid "" +"Failed to remove trailing character. Returning original object. Supplied " +"object is not a string: %s," +msgstr "" + +#: watcher/common/messaging/messaging_handler.py:98 +msgid "No endpoint defined; can only publish events" +msgstr "" + +#: watcher/common/messaging/messaging_handler.py:101 +msgid "Messaging configuration error" +msgstr "" + #: watcher/db/sqlalchemy/api.py:256 msgid "" "Multiple audit templates exist with the same name. Please use the audit " @@ -296,15 +348,61 @@ msgstr "" msgid "'obj' argument type is not valid" msgstr "" +#: watcher/decision_engine/planner/default.py:86 +msgid "The action plan is empty" +msgstr "" + #: watcher/decision_engine/strategy/selection/default.py:59 #, python-format msgid "Incorrect mapping: could not find associated strategy for '%s'" msgstr "" +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:267 +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:314 +#, python-format +msgid "No values returned by %(resource_id)s for %(metric_name)s" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:349 +msgid "Initializing Sercon Consolidation" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:406 +msgid "The workloads of the compute nodes of the cluster is zero" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:125 +#, python-format +msgid "%s: no outlet temp data" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:149 +#, python-format +msgid "VM not active, skipped: %s" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:206 +msgid "No hosts under outlet temp threshold found" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:229 +msgid "No proper target host could be found" +msgstr "" + +#: watcher/objects/base.py:70 +#, python-format +msgid "Error setting %(attr)s" +msgstr "" + #: watcher/objects/base.py:108 msgid "Invalid version string" msgstr "" +#: watcher/objects/base.py:172 +#, python-format +msgid "Unable to instantiate unregistered object type %(objtype)s" +msgstr "" + #: watcher/objects/base.py:299 #, python-format msgid "Cannot load '%(attrname)s' in the base class" diff --git a/watcher/locale/watcher.pot b/watcher/locale/watcher.pot index 52cd84280..719dbacf0 100644 --- a/watcher/locale/watcher.pot +++ b/watcher/locale/watcher.pot @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: python-watcher 0.22.1.dev9\n" +"Project-Id-Version: python-watcher 0.22.1.dev16\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2016-01-12 18:12+0100\n" +"POT-Creation-Date: 2016-01-14 14:51+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -65,11 +65,17 @@ msgstr "" msgid "ErrorDocumentMiddleware received an invalid status %s" msgstr "" +#: watcher/api/middleware/parsable_error.py:80 +#, python-format +msgid "Error parsing HTTP response: %s" +msgstr "" + #: watcher/applier/primitives/change_nova_service_state.py:75 msgid "The target state is not defined" msgstr "" -#: watcher/cmd/api.py:46 +#: watcher/cmd/api.py:46 watcher/cmd/applier.py:39 +#: watcher/cmd/decisionengine.py:40 #, python-format msgid "Starting server in PID %s" msgstr "" @@ -88,6 +94,10 @@ msgstr "" msgid "An unknown exception occurred" msgstr "" +#: watcher/common/exception.py:77 +msgid "Exception in string format operation" +msgstr "" + #: watcher/common/exception.py:107 msgid "Not authorized" msgstr "" @@ -265,6 +275,48 @@ msgstr "" msgid "No Keystone service catalog loaded" msgstr "" +#: watcher/common/service.py:83 +#, python-format +msgid "Created RPC server for service %(service)s on host %(host)s." +msgstr "" + +#: watcher/common/service.py:92 +#, python-format +msgid "Service error occurred when stopping the RPC server. Error: %s" +msgstr "" + +#: watcher/common/service.py:97 +#, python-format +msgid "Service error occurred when cleaning up the RPC manager. Error: %s" +msgstr "" + +#: watcher/common/service.py:101 +#, python-format +msgid "Stopped RPC server for service %(service)s on host %(host)s." +msgstr "" + +#: watcher/common/service.py:106 +#, python-format +msgid "" +"Got signal SIGUSR1. Not deregistering on next shutdown of service " +"%(service)s on host %(host)s." +msgstr "" + +#: watcher/common/utils.py:53 +#, python-format +msgid "" +"Failed to remove trailing character. Returning original object. Supplied " +"object is not a string: %s," +msgstr "" + +#: watcher/common/messaging/messaging_handler.py:98 +msgid "No endpoint defined; can only publish events" +msgstr "" + +#: watcher/common/messaging/messaging_handler.py:101 +msgid "Messaging configuration error" +msgstr "" + #: watcher/db/sqlalchemy/api.py:256 msgid "" "Multiple audit templates exist with the same name. Please use the audit " @@ -294,15 +346,61 @@ msgstr "" msgid "'obj' argument type is not valid" msgstr "" +#: watcher/decision_engine/planner/default.py:86 +msgid "The action plan is empty" +msgstr "" + #: watcher/decision_engine/strategy/selection/default.py:59 #, python-format msgid "Incorrect mapping: could not find associated strategy for '%s'" msgstr "" +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:267 +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:314 +#, python-format +msgid "No values returned by %(resource_id)s for %(metric_name)s" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:349 +msgid "Initializing Sercon Consolidation" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/basic_consolidation.py:406 +msgid "The workloads of the compute nodes of the cluster is zero" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:125 +#, python-format +msgid "%s: no outlet temp data" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:149 +#, python-format +msgid "VM not active, skipped: %s" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:206 +msgid "No hosts under outlet temp threshold found" +msgstr "" + +#: watcher/decision_engine/strategy/strategies/outlet_temp_control.py:229 +msgid "No proper target host could be found" +msgstr "" + +#: watcher/objects/base.py:70 +#, python-format +msgid "Error setting %(attr)s" +msgstr "" + #: watcher/objects/base.py:108 msgid "Invalid version string" msgstr "" +#: watcher/objects/base.py:172 +#, python-format +msgid "Unable to instantiate unregistered object type %(objtype)s" +msgstr "" + #: watcher/objects/base.py:299 #, python-format msgid "Cannot load '%(attrname)s' in the base class"