From c3d1fce33855423d26954fca6430b8304967ec1c Mon Sep 17 00:00:00 2001 From: "philippe.gross" Date: Tue, 4 Sep 2012 20:37:22 +0200 Subject: [PATCH] Adjust translation of label_contenttree_browse, and updated all po files. --- .../plone.formwidget.contenttree.po | 15 +++++++-------- .../plone.formwidget.contenttree.po | 15 +++++++-------- .../plone.formwidget.contenttree.po | 16 ++++++++-------- .../plone.formwidget.contenttree.po | 18 +++++++++--------- .../plone.formwidget.contenttree.po | 15 +++++++-------- .../locales/plone.formwidget.contenttree.pot | 14 +++++++------- .../plone.formwidget.contenttree.po | 15 +++++++-------- plone/formwidget/contenttree/widget.py | 6 ++---- 8 files changed, 54 insertions(+), 60 deletions(-) diff --git a/plone/formwidget/contenttree/locales/de/LC_MESSAGES/plone.formwidget.contenttree.po b/plone/formwidget/contenttree/locales/de/LC_MESSAGES/plone.formwidget.contenttree.po index c9abf14..8d873c6 100644 --- a/plone/formwidget/contenttree/locales/de/LC_MESSAGES/plone.formwidget.contenttree.po +++ b/plone/formwidget/contenttree/locales/de/LC_MESSAGES/plone.formwidget.contenttree.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2009-12-23 09:31+0000\n" +"POT-Creation-Date: 2012-09-04 18:31+0000\n" "PO-Revision-Date: 2010-08-24 11:35+0200\n" "Last-Translator: Gaudenz Steinlin \n" "Language-Team: Deutsch \n" @@ -9,33 +9,32 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"Language-Code: de\n" -"Language-Name: German\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.formwidget.contenttree\n" #. Default: "Browse for items" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:10 +#: ./plone/formwidget/contenttree/input.pt:10 msgid "heading_contenttree_browse" msgstr "Objekte hinzufügen" #. Default: "Press Ctrl to select multiple items." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/input.pt:11 msgid "heading_contenttree_help" msgstr "Drücken Sie die Strg-Taste um mehrere Elemente auszuwählen." #. Default: "Add" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_add" msgstr "Hinzufügen" #. Default: "browse..." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/widget.py:221 msgid "label_contenttree_browse" msgstr "hinzufügen..." #. Default: "Cancel" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_cancel" msgstr "Abbrechen" + diff --git a/plone/formwidget/contenttree/locales/es/LC_MESSAGES/plone.formwidget.contenttree.po b/plone/formwidget/contenttree/locales/es/LC_MESSAGES/plone.formwidget.contenttree.po index c638888..7aa08fe 100644 --- a/plone/formwidget/contenttree/locales/es/LC_MESSAGES/plone.formwidget.contenttree.po +++ b/plone/formwidget/contenttree/locales/es/LC_MESSAGES/plone.formwidget.contenttree.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2009-12-23 09:31+0000\n" +"POT-Creation-Date: 2012-09-04 18:31+0000\n" "PO-Revision-Date: 2011-12-14 14:52-0600\n" "Last-Translator: Héctor Velarde \n" "Language-Team: Deutsch \n" @@ -9,33 +9,32 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"Language-Code: de\n" -"Language-Name: German\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.formwidget.contenttree\n" #. Default: "Browse for items" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:10 +#: ./plone/formwidget/contenttree/input.pt:10 msgid "heading_contenttree_browse" msgstr "Examinar elementos" #. Default: "Press Ctrl to select multiple items." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/input.pt:11 msgid "heading_contenttree_help" msgstr "Presione Ctrl para seleccionar múltiples elementos" #. Default: "Add" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_add" msgstr "Agregar" #. Default: "browse..." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/widget.py:221 msgid "label_contenttree_browse" msgstr "Examinar…" #. Default: "Cancel" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_cancel" msgstr "Cancelar" + diff --git a/plone/formwidget/contenttree/locales/fi/LC_MESSAGES/plone.formwidget.contenttree.po b/plone/formwidget/contenttree/locales/fi/LC_MESSAGES/plone.formwidget.contenttree.po index 54df571..5bb4e8c 100644 --- a/plone/formwidget/contenttree/locales/fi/LC_MESSAGES/plone.formwidget.contenttree.po +++ b/plone/formwidget/contenttree/locales/fi/LC_MESSAGES/plone.formwidget.contenttree.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2009-12-23 09:31+0000\n" +"POT-Creation-Date: 2012-09-04 18:31+0000\n" "PO-Revision-Date: 2010-08-24 11:35+0200\n" "Last-Translator: Kai Lautaportti \n" "Language-Team: Suomi \n" @@ -9,32 +9,32 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"Language-Code: fi\n" -"Language-Name: Finnish\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.formwidget.contenttree\n" #. Default: "Browse for items" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:10 +#: ./plone/formwidget/contenttree/input.pt:10 msgid "heading_contenttree_browse" msgstr "Selaa sivustoa" #. Default: "Press Ctrl to select multiple items." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/input.pt:11 msgid "heading_contenttree_help" msgstr "Paina Ctrl-näppäintä (Command-näppäintä Mac-koneessa) valitaksesi useita kohteita." #. Default: "Add" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_add" msgstr "Lisää" #. Default: "browse..." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/widget.py:221 msgid "label_contenttree_browse" msgstr "Selaa..." #. Default: "Cancel" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_cancel" msgstr "Peru" + + diff --git a/plone/formwidget/contenttree/locales/it/LC_MESSAGES/plone.formwidget.contenttree.po b/plone/formwidget/contenttree/locales/it/LC_MESSAGES/plone.formwidget.contenttree.po index 4bb818e..3fa92cb 100644 --- a/plone/formwidget/contenttree/locales/it/LC_MESSAGES/plone.formwidget.contenttree.po +++ b/plone/formwidget/contenttree/locales/it/LC_MESSAGES/plone.formwidget.contenttree.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: 1.0\n" -"POT-Creation-Date: 2012-06-14 14:31+0000\n" +"POT-Creation-Date: 2012-09-04 18:31+0000\n" "PO-Revision-Date: 2012-06-14 14:33 +0200\n" "Last-Translator: Giorgio Borelli \n" "Language-Team: Plone Italian Translation \n" @@ -11,33 +11,33 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" -"Language-Code: it\n" -"Language-Name: Italian\n" -"X-Is-Fallback-For: it-it it-ch it-sm it-hr it-si\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.formwidget.contenttree\n" +"X-Is-Fallback-For: it-it it-ch it-sm it-hr it-si\n" #. Default: "Browse for items" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:10 +#: ./plone/formwidget/contenttree/input.pt:10 msgid "heading_contenttree_browse" msgstr "Seleziona gli elementi da referenziare" #. Default: "Press Ctrl to select multiple items." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/input.pt:11 msgid "heading_contenttree_help" msgstr "Tieni premuto il tasto ctrl per selezionare più elementi" #. Default: "Add" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_add" msgstr "Aggiungi" #. Default: "browse..." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/widget.py:221 msgid "label_contenttree_browse" msgstr "Sfoglia..." #. Default: "Cancel" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_cancel" msgstr "Annulla" + + diff --git a/plone/formwidget/contenttree/locales/nl/LC_MESSAGES/plone.formwidget.contenttree.po b/plone/formwidget/contenttree/locales/nl/LC_MESSAGES/plone.formwidget.contenttree.po index 22540e7..c28d03e 100644 --- a/plone/formwidget/contenttree/locales/nl/LC_MESSAGES/plone.formwidget.contenttree.po +++ b/plone/formwidget/contenttree/locales/nl/LC_MESSAGES/plone.formwidget.contenttree.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.formwidget.contenttree 1.0.6\n" -"POT-Creation-Date: 2009-12-23 09:31+0000\n" +"POT-Creation-Date: 2012-09-04 18:31+0000\n" "PO-Revision-Date: 2012-03-01 17:04 +0100\n" "Last-Translator: Maurits van Rees \n" "Language-Team: Plone Netherlands \n" @@ -11,33 +11,32 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" -"Language-Code: nl\n" -"Language-Name: Nederlands\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.formwidget.contenttree\n" #. Default: "Browse for items" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:10 +#: ./plone/formwidget/contenttree/input.pt:10 msgid "heading_contenttree_browse" msgstr "Blader voor items" #. Default: "Press Ctrl to select multiple items." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/input.pt:11 msgid "heading_contenttree_help" msgstr "Gebruik de Ctrl-toets om meer items te selecteren." #. Default: "Add" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_add" msgstr "Toevoegen" #. Default: "browse..." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/widget.py:221 msgid "label_contenttree_browse" msgstr "bladeren..." #. Default: "Cancel" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_cancel" msgstr "Annuleren" + diff --git a/plone/formwidget/contenttree/locales/plone.formwidget.contenttree.pot b/plone/formwidget/contenttree/locales/plone.formwidget.contenttree.pot index 1b4329a..073e0c7 100644 --- a/plone/formwidget/contenttree/locales/plone.formwidget.contenttree.pot +++ b/plone/formwidget/contenttree/locales/plone.formwidget.contenttree.pot @@ -4,8 +4,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2009-12-23 09:31+0000\n" -"PO-Revision-Date: 2010-08-24 11:33 +0200\n" +"POT-Creation-Date: 2012-09-04 18:31+0000\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" @@ -18,27 +18,27 @@ msgstr "" "Domain: plone.formwidget.contenttree\n" #. Default: "Browse for items" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:10 +#: ./plone/formwidget/contenttree/input.pt:10 msgid "heading_contenttree_browse" msgstr "" #. Default: "Press Ctrl to select multiple items." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/input.pt:11 msgid "heading_contenttree_help" msgstr "" #. Default: "Add" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_add" msgstr "" #. Default: "browse..." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/widget.py:221 msgid "label_contenttree_browse" msgstr "" #. Default: "Cancel" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_cancel" msgstr "" diff --git a/plone/formwidget/contenttree/locales/zh_CN/LC_MESSAGES/plone.formwidget.contenttree.po b/plone/formwidget/contenttree/locales/zh_CN/LC_MESSAGES/plone.formwidget.contenttree.po index 7df33f6..9a4e82d 100644 --- a/plone/formwidget/contenttree/locales/zh_CN/LC_MESSAGES/plone.formwidget.contenttree.po +++ b/plone/formwidget/contenttree/locales/zh_CN/LC_MESSAGES/plone.formwidget.contenttree.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: plone.formwidget.contenttree 1.0\n" -"POT-Creation-Date: 2009-12-23 09:31+0000\n" +"POT-Creation-Date: 2012-09-04 18:31+0000\n" "PO-Revision-Date: 2011-07-05 08:43+0800\n" "Last-Translator: Jian Aijun \n" "Language-Team: Plone i18n \n" @@ -12,33 +12,32 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" -"Language-Code: zh_CN\n" -"Language-Name: Chinese (Simplified)\n" "Preferred-Encodings: utf-8 latin1\n" "Domain: plone.formwidget.contenttree\n" #. Default: "Browse for items" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:10 +#: ./plone/formwidget/contenttree/input.pt:10 msgid "heading_contenttree_browse" msgstr "浏览条目" #. Default: "Press Ctrl to select multiple items." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/input.pt:11 msgid "heading_contenttree_help" msgstr "按 Ctrl 选择多个条目。" #. Default: "Add" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_add" msgstr "添加" #. Default: "browse..." -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:11 +#: ./plone/formwidget/contenttree/widget.py:221 msgid "label_contenttree_browse" msgstr "浏览..." #. Default: "Cancel" -#: plone.formwidget.contenttree/plone/formwidget/contenttree/input.pt:20 +#: ./plone/formwidget/contenttree/input.pt:19 msgid "label_contenttree_cancel" msgstr "取消" + diff --git a/plone/formwidget/contenttree/widget.py b/plone/formwidget/contenttree/widget.py index dca9c72..902e503 100644 --- a/plone/formwidget/contenttree/widget.py +++ b/plone/formwidget/contenttree/widget.py @@ -23,7 +23,7 @@ from Products.CMFCore.utils import getToolByName from Products.Five.browser import BrowserView from plone.formwidget.contenttree.interfaces import IContentTreeWidget - +from plone.formwidget.contenttree import MessageFactory as _ class Fetch(BrowserView): @@ -218,9 +218,7 @@ class ContentTreeBase(Explicit): klass=self.klass, title=self.title, button_val=translate( - u'label_contenttree_browse', - default=u'browse...', - domain='plone.formwidget.contenttree', + _(u'label_contenttree_browse', default=u'browse...'), context=self.request))