From cd646a97c870a49a44b71a38d7d086a0198baf57 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 11 Feb 2019 11:40:07 +0100 Subject: [PATCH] Fixing lib/cr_vmware_tpl/handler.py --- lib/cr_vmware_tpl/handler.py | 4 ++-- locale/create_vm_template.pot | 8 +++++++- locale/de_DE/LC_MESSAGES/create_vm_template.po | 10 ++++++++-- locale/en_US/LC_MESSAGES/create_vm_template.po | 8 +++++++- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index ba5b631..fbaac0b 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -38,7 +38,7 @@ from .config import CrTplConfiguration from .xlate import XLATOR -__version__ = '1.3.1' +__version__ = '1.3.2' LOG = logging.getLogger(__name__) TZ = pytz.timezone('Europe/Berlin') @@ -754,7 +754,7 @@ class CrTplHandler(BaseHandler): LOG.info(_("Did not found any existing templates.")) return msg = ngettext( - "Found one existing template." "Found {} existing templates.", + "Found one existing template.", "Found {} existing templates.", len(templates)).format(len(templates)) LOG.debug(msg) diff --git a/locale/create_vm_template.pot b/locale/create_vm_template.pot index 57b1400..a32a9d2 100644 --- a/locale/create_vm_template.pot +++ b/locale/create_vm_template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: create_vm_template 1.1.0\n" "Report-Msgid-Bugs-To: frank.brehm@pixelpark.com\n" -"POT-Creation-Date: 2019-02-08 17:40+0100\n" +"POT-Creation-Date: 2019-02-11 11:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -444,6 +444,12 @@ msgstr "" msgid "Did not found any existing templates." msgstr "" +#: lib/cr_vmware_tpl/handler.py:758 +msgid "Found one existing template." +msgid_plural "Found {} existing templates." +msgstr[0] "" +msgstr[1] "" + #: lib/cr_vmware_tpl/handler.py:777 msgid "Found template {n!r}, created: {ts}." msgstr "" diff --git a/locale/de_DE/LC_MESSAGES/create_vm_template.po b/locale/de_DE/LC_MESSAGES/create_vm_template.po index 3bb2d99..9b9c148 100644 --- a/locale/de_DE/LC_MESSAGES/create_vm_template.po +++ b/locale/de_DE/LC_MESSAGES/create_vm_template.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: create_vm_template 1.1.0\n" "Report-Msgid-Bugs-To: frank.brehm@pixelpark.com\n" -"POT-Creation-Date: 2019-02-08 17:40+0100\n" -"PO-Revision-Date: 2019-02-08 16:10+0100\n" +"POT-Creation-Date: 2019-02-11 11:38+0100\n" +"PO-Revision-Date: 2019-02-11 11:40+0100\n" "Last-Translator: Frank Brehm \n" "Language: de_DE\n" "Language-Team: de_DE \n" @@ -453,6 +453,12 @@ msgstr "Suche nach existierenden Vorlagen und rotiere sie …" msgid "Did not found any existing templates." msgstr "Keine existierenden Vorlagen gefunden." +#: lib/cr_vmware_tpl/handler.py:758 +msgid "Found one existing template." +msgid_plural "Found {} existing templates." +msgstr[0] "Habe eine existierende Vorlage gefunden." +msgstr[1] "Habe {} existierende Vorlagen gefunden." + #: lib/cr_vmware_tpl/handler.py:777 msgid "Found template {n!r}, created: {ts}." msgstr "Vorlage {n!r} gefunden, erstellt am: {ts}." diff --git a/locale/en_US/LC_MESSAGES/create_vm_template.po b/locale/en_US/LC_MESSAGES/create_vm_template.po index 1043eab..133fe2f 100644 --- a/locale/en_US/LC_MESSAGES/create_vm_template.po +++ b/locale/en_US/LC_MESSAGES/create_vm_template.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: create_vm_template 1.1.0\n" "Report-Msgid-Bugs-To: frank.brehm@pixelpark.com\n" -"POT-Creation-Date: 2019-02-08 17:40+0100\n" +"POT-Creation-Date: 2019-02-11 11:38+0100\n" "PO-Revision-Date: 2019-02-08 16:10+0100\n" "Last-Translator: FULL NAME \n" "Language: en_US\n" @@ -445,6 +445,12 @@ msgstr "" msgid "Did not found any existing templates." msgstr "" +#: lib/cr_vmware_tpl/handler.py:758 +msgid "Found one existing template." +msgid_plural "Found {} existing templates." +msgstr[0] "" +msgstr[1] "" + #: lib/cr_vmware_tpl/handler.py:777 msgid "Found template {n!r}, created: {ts}." msgstr "" -- 2.39.5