# HG changeset patch # User Thierry Florac # Date 1429275249 -7200 # Node ID 5c1931a4217695bae8cd2c3783235a9cf31d0793 # Parent de33539c2db23765976255bdbd35fec0f79bca98 Updated translations diff -r de33539c2db2 -r 5c1931a42176 src/pyams_thesaurus/locales/fr/LC_MESSAGES/pyams_thesaurus.mo Binary file src/pyams_thesaurus/locales/fr/LC_MESSAGES/pyams_thesaurus.mo has changed diff -r de33539c2db2 -r 5c1931a42176 src/pyams_thesaurus/locales/fr/LC_MESSAGES/pyams_thesaurus.po --- a/src/pyams_thesaurus/locales/fr/LC_MESSAGES/pyams_thesaurus.po Fri Apr 17 14:02:46 2015 +0200 +++ b/src/pyams_thesaurus/locales/fr/LC_MESSAGES/pyams_thesaurus.po Fri Apr 17 14:54:09 2015 +0200 @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE 1.0\n" -"POT-Creation-Date: 2015-04-14 10:50+0200\n" +"POT-Creation-Date: 2015-04-17 13:52+0200\n" "PO-Revision-Date: 2015-04-14 10:11+0200\n" "Last-Translator: Thierry Florac \n" "Language-Team: French \n" @@ -102,77 +102,91 @@ msgid "Specified new label is already used!" msgstr "Le nouveau libellé spécifié est déjà utilisé !" -#: src/pyams_thesaurus/zmi/thesaurus.py:83 +#: src/pyams_thesaurus/zmi/thesaurus.py:85 msgid "Add thesaurus..." msgstr "Ajouter un thésaurus..." -#: src/pyams_thesaurus/zmi/thesaurus.py:93 +#: src/pyams_thesaurus/zmi/thesaurus.py:95 msgid "Utilities" msgstr "Utilitaires" -#: src/pyams_thesaurus/zmi/thesaurus.py:94 +#: src/pyams_thesaurus/zmi/thesaurus.py:96 msgid "Add thesaurus" msgstr "Ajout d'un thésaurus" -#: src/pyams_thesaurus/zmi/thesaurus.py:157 +#: src/pyams_thesaurus/zmi/thesaurus.py:159 msgid "Thesaurus management" msgstr "Thésaurus" -#: src/pyams_thesaurus/zmi/thesaurus.py:167 +#: src/pyams_thesaurus/zmi/thesaurus.py:169 msgid "Properties" msgstr "Propriétés" -#: src/pyams_thesaurus/zmi/thesaurus.py:182 +#: src/pyams_thesaurus/zmi/thesaurus.py:184 msgid "Update thesaurus properties" msgstr "Mise à jour des propriétés" -#: src/pyams_thesaurus/zmi/thesaurus.py:205 +#: src/pyams_thesaurus/zmi/thesaurus.py:207 msgid "Thesaurus properties" msgstr "Propriétés" -#: src/pyams_thesaurus/zmi/thesaurus.py:219 +#: src/pyams_thesaurus/zmi/thesaurus.py:221 msgid "Terms" msgstr "Termes" -#: src/pyams_thesaurus/zmi/thesaurus.py:252 +#: src/pyams_thesaurus/zmi/thesaurus.py:254 msgid "Thesaurus terms" msgstr "Termes du thésaurus" -#: src/pyams_thesaurus/zmi/thesaurus.py:361 +#: src/pyams_thesaurus/zmi/thesaurus.py:363 msgid "Import terms..." msgstr "Importer des termes..." -#: src/pyams_thesaurus/zmi/thesaurus.py:379 +#: src/pyams_thesaurus/zmi/thesaurus.py:381 +#: src/pyams_thesaurus/zmi/thesaurus.py:449 msgid "Thesaurus" msgstr "Thésaurus" -#: src/pyams_thesaurus/zmi/thesaurus.py:380 +#: src/pyams_thesaurus/zmi/thesaurus.py:382 msgid "Import thesaurus terms" msgstr "Import des termes du thésaurus" -#: src/pyams_thesaurus/zmi/thesaurus.py:392 -#: src/pyams_thesaurus/zmi/thesaurus.py:393 +#: src/pyams_thesaurus/zmi/thesaurus.py:431 +msgid "Export terms..." +msgstr "Exporter des termes..." + +#: src/pyams_thesaurus/zmi/thesaurus.py:450 +msgid "Export thesaurus terms" +msgstr "Export des termes du thésaurus" + +#: src/pyams_thesaurus/zmi/thesaurus.py:394 +#: src/pyams_thesaurus/zmi/thesaurus.py:395 msgid "-- automatic selection -- (if available)" msgstr "-- sélection automatique -- (si possible)" -#: src/pyams_thesaurus/zmi/thesaurus.py:371 +#: src/pyams_thesaurus/zmi/thesaurus.py:373 +#: src/pyams_thesaurus/zmi/thesaurus.py:441 msgid "Close" msgstr "Fermer" -#: src/pyams_thesaurus/zmi/thesaurus.py:372 +#: src/pyams_thesaurus/zmi/thesaurus.py:374 msgid "Import terms" -msgstr "Importer les termes" +msgstr "Importer des termes" -#: src/pyams_thesaurus/zmi/thesaurus.py:123 +#: src/pyams_thesaurus/zmi/thesaurus.py:442 +msgid "Export terms" +msgstr "Exporter des termes" + +#: src/pyams_thesaurus/zmi/thesaurus.py:125 msgid "Specified thesaurus name is already used!" msgstr "Le nom spécifié pour ce thésaurus est déjà utilisé !" -#: src/pyams_thesaurus/zmi/thesaurus.py:126 +#: src/pyams_thesaurus/zmi/thesaurus.py:128 msgid "A thesaurus is already registered with this name!" msgstr "Un autre thésaurus est déjà enregistré avec ce nom !" -#: src/pyams_thesaurus/zmi/thesaurus.py:75 -#: src/pyams_thesaurus/zmi/thesaurus.py:180 +#: src/pyams_thesaurus/zmi/thesaurus.py:77 +#: src/pyams_thesaurus/zmi/thesaurus.py:182 #, python-format msgid "Thesaurus: {0}" msgstr "Thésaurus : {0}" diff -r de33539c2db2 -r 5c1931a42176 src/pyams_thesaurus/locales/pyams_thesaurus.pot --- a/src/pyams_thesaurus/locales/pyams_thesaurus.pot Fri Apr 17 14:02:46 2015 +0200 +++ b/src/pyams_thesaurus/locales/pyams_thesaurus.pot Fri Apr 17 14:54:09 2015 +0200 @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE 1.0\n" -"POT-Creation-Date: 2015-04-14 10:50+0200\n" +"POT-Creation-Date: 2015-04-17 13:52+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" @@ -102,77 +102,91 @@ msgid "Specified new label is already used!" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:83 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:85 msgid "Add thesaurus..." msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:93 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:95 msgid "Utilities" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:94 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:96 msgid "Add thesaurus" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:157 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:159 msgid "Thesaurus management" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:167 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:169 msgid "Properties" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:182 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:184 msgid "Update thesaurus properties" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:205 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:207 msgid "Thesaurus properties" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:219 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:221 msgid "Terms" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:252 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:254 msgid "Thesaurus terms" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:361 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:363 msgid "Import terms..." msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:379 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:381 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:449 msgid "Thesaurus" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:380 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:382 msgid "Import thesaurus terms" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:392 -#: ./src/pyams_thesaurus/zmi/thesaurus.py:393 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:431 +msgid "Export terms..." +msgstr "" + +#: ./src/pyams_thesaurus/zmi/thesaurus.py:450 +msgid "Export thesaurus terms" +msgstr "" + +#: ./src/pyams_thesaurus/zmi/thesaurus.py:394 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:395 msgid "-- automatic selection -- (if available)" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:371 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:373 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:441 msgid "Close" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:372 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:374 msgid "Import terms" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:123 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:442 +msgid "Export terms" +msgstr "" + +#: ./src/pyams_thesaurus/zmi/thesaurus.py:125 msgid "Specified thesaurus name is already used!" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:126 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:128 msgid "A thesaurus is already registered with this name!" msgstr "" -#: ./src/pyams_thesaurus/zmi/thesaurus.py:75 -#: ./src/pyams_thesaurus/zmi/thesaurus.py:180 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:77 +#: ./src/pyams_thesaurus/zmi/thesaurus.py:182 #, python-format msgid "Thesaurus: {0}" msgstr "" diff -r de33539c2db2 -r 5c1931a42176 src/pyams_thesaurus/zmi/thesaurus.py --- a/src/pyams_thesaurus/zmi/thesaurus.py Fri Apr 17 14:02:46 2015 +0200 +++ b/src/pyams_thesaurus/zmi/thesaurus.py Fri Apr 17 14:54:09 2015 +0200 @@ -9,8 +9,6 @@ # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # -from pyramid.response import Response -from pyams_form.schema import CloseButton __docformat__ = 'restructuredtext' @@ -37,6 +35,7 @@ # import packages from pyams_form.form import AJAXAddForm, AJAXEditForm +from pyams_form.schema import CloseButton from pyams_pagelet.pagelet import pagelet_config from pyams_skin.layer import IPyAMSLayer from pyams_skin.page import InnerPage @@ -58,6 +57,7 @@ from pyramid.events import subscriber from pyramid.exceptions import NotFound from pyramid.httpexceptions import HTTPBadRequest +from pyramid.response import Response from pyramid.url import resource_url from pyramid.view import view_config from z3c.form import field, button @@ -391,8 +391,9 @@ def updateWidgets(self, prefix=None): super(ThesaurusImportForm, self).updateWidgets(prefix) - self.widgets['language'].noValueMessage = _("-- automatic selection -- (if available)") - self.widgets['encoding'].noValueMessage = _("-- automatic selection -- (if available)") + translate = self.request.localizer.translate + self.widgets['language'].noValueMessage = translate(_("-- automatic selection -- (if available)")) + self.widgets['encoding'].noValueMessage = translate(_("-- automatic selection -- (if available)")) def create(self, data): configuration = ThesaurusUpdaterConfiguration(data) @@ -447,7 +448,7 @@ """Thesaurus export form""" title = _("Thesaurus") - legend = _("export thesaurus terms") + legend = _("Export thesaurus terms") icon_css_class = 'fa fa-fw fa-download' fields = field.Fields(IThesaurusExporterConfiguration)