Updated translations and import cleanup
authorThierry Florac <tflorac@ulthar.net>
Wed, 17 Oct 2018 15:44:50 +0200
changeset 1022 2a0a220c2e81
parent 1021 1de511ae7703
child 1023 fac2e007432b
Updated translations and import cleanup
src/pyams_content/component/extfile/zmi/__init__.py
src/pyams_content/component/extfile/zmi/widget.py
src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo
src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po
src/pyams_content/locales/pyams_content.pot
--- a/src/pyams_content/component/extfile/zmi/__init__.py	Wed Oct 17 14:40:14 2018 +0200
+++ b/src/pyams_content/component/extfile/zmi/__init__.py	Wed Oct 17 15:44:50 2018 +0200
@@ -22,7 +22,7 @@
 from pyams_content.component.extfile import EXTERNAL_FILES_FACTORIES
 from pyams_content.component.extfile.interfaces import IExtAudio, IExtFile, IExtFileContainerTarget, IExtImage, \
     IExtMedia, IExtVideo
-from pyams_content.component.extfile.zmi.widget import ExtFileTitleFieldWidget, I18nExtFileTitleFieldWidget
+from pyams_content.component.extfile.zmi.widget import I18nExtFileTitleFieldWidget
 from pyams_content.component.paragraph.zmi import get_json_paragraph_markers_refresh_event
 from pyams_content.component.paragraph.zmi.container import ParagraphContainerCounterBase
 from pyams_content.component.paragraph.zmi.interfaces import IParagraphContainerTable, IParagraphTitleToolbar
--- a/src/pyams_content/component/extfile/zmi/widget.py	Wed Oct 17 14:40:14 2018 +0200
+++ b/src/pyams_content/component/extfile/zmi/widget.py	Wed Oct 17 15:44:50 2018 +0200
@@ -13,7 +13,9 @@
 __docformat__ = 'restructuredtext'
 
 from z3c.form.browser.text import TextWidget
+from z3c.form.interfaces import DISPLAY_MODE, INPUT_MODE, ITextWidget
 from z3c.form.widget import FieldWidget
+from zope.interface import implementer_only
 
 from pyams_content.component.extfile.interfaces import IExtFileManagerInfo
 from pyams_form.interfaces import IFormLayer
@@ -22,8 +24,13 @@
 from pyams_i18n.widget import I18nTextLineWidget
 
 
-@widgettemplate_config(mode='input', template='templates/extfile-title-input.pt', layer=IFormLayer)
-@widgettemplate_config(mode='display', template='templates/extfile-title-display.pt', layer=IFormLayer)
+class IExtFileTitleFieldWidget(ITextWidget):
+    """external file title field widget interface"""
+
+
+@widgettemplate_config(mode=INPUT_MODE, template='templates/extfile-title-input.pt', layer=IFormLayer)
+@widgettemplate_config(mode=DISPLAY_MODE, template='templates/extfile-title-display.pt', layer=IFormLayer)
+@implementer_only(IExtFileTitleFieldWidget)
 class ExtFileTitleWidget(TextWidget):
     """External file title widget"""
 
Binary file src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo has changed
--- a/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po	Wed Oct 17 14:40:14 2018 +0200
+++ b/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po	Wed Oct 17 15:44:50 2018 +0200
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-10-17 12:10+0200\n"
+"POT-Creation-Date: 2018-10-17 15:41+0200\n"
 "PO-Revision-Date: 2015-09-10 10:42+0200\n"
 "Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
 "Language-Team: French\n"
@@ -1876,17 +1876,17 @@
 msgstr ""
 "Cliquez sur le bouton 'Parcourir...' pour sélectionner un nouveau contenu"
 
-#: src/pyams_content/component/extfile/interfaces/__init__.py:100
+#: src/pyams_content/component/extfile/interfaces/__init__.py:104
 msgid "Default title prefix"
 msgstr "Préfixe par défaut"
 
-#: src/pyams_content/component/extfile/interfaces/__init__.py:101
+#: src/pyams_content/component/extfile/interfaces/__init__.py:105
 msgid ""
 "If used, this prefix will be automatically added to download link's label of "
 "all files"
 msgstr ""
-"Si vous indiquez un texte ici, celui-ci sera utilisé automatiquement comme préfixe de "
-"tous les liens de téléchargement de pièces jointes"
+"Si vous indiquez un texte ici, celui-ci sera utilisé automatiquement comme "
+"préfixe de tous les liens de téléchargement de pièces jointes"
 
 #: src/pyams_content/component/extfile/zmi/manager.py:37
 msgid "External files..."
@@ -1896,71 +1896,71 @@
 msgid "External files properties"
 msgstr "Propriétés des pièces jointes"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:69
+#: src/pyams_content/component/extfile/zmi/__init__.py:70
 msgid "External files"
 msgstr "Fichiers"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:84
+#: src/pyams_content/component/extfile/zmi/__init__.py:85
 msgid "Add external file"
 msgstr "Fichier"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:98
+#: src/pyams_content/component/extfile/zmi/__init__.py:99
 msgid "Add new external file"
 msgstr "Ajout d'un fichier"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:128
+#: src/pyams_content/component/extfile/zmi/__init__.py:131
 msgid "Update file properties"
 msgstr "Propriétés du fichier"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:154
+#: src/pyams_content/component/extfile/zmi/__init__.py:159
 msgid "Images"
 msgstr "Images"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:169
+#: src/pyams_content/component/extfile/zmi/__init__.py:174
 msgid "Add image"
 msgstr "Image téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:183
+#: src/pyams_content/component/extfile/zmi/__init__.py:188
 msgid "Add new image"
 msgstr "Ajout d'une image téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:214
+#: src/pyams_content/component/extfile/zmi/__init__.py:220
 msgid "Update image properties"
 msgstr "Propriétés de l'image téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:245
+#: src/pyams_content/component/extfile/zmi/__init__.py:252
 msgid "Videos"
 msgstr "Vidéos"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:260
+#: src/pyams_content/component/extfile/zmi/__init__.py:267
 msgid "Add video"
 msgstr "Vidéo téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:274
+#: src/pyams_content/component/extfile/zmi/__init__.py:281
 msgid "Add new video"
 msgstr "Ajout d'une vidéo téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:298
+#: src/pyams_content/component/extfile/zmi/__init__.py:306
 msgid "Update video properties"
 msgstr "Propriétés de la vidéo téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:322
+#: src/pyams_content/component/extfile/zmi/__init__.py:331
 msgid "Audios files"
 msgstr "Fichiers audios"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:337
+#: src/pyams_content/component/extfile/zmi/__init__.py:346
 msgid "Add audio file"
 msgstr "Bande son téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:351
+#: src/pyams_content/component/extfile/zmi/__init__.py:360
 msgid "Add new audio file"
 msgstr "Ajout d'une bande son téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:375
+#: src/pyams_content/component/extfile/zmi/__init__.py:385
 msgid "Update audio file properties"
 msgstr "Propriétés de la bande son téléchargeable"
 
-#: src/pyams_content/component/extfile/zmi/__init__.py:45
+#: src/pyams_content/component/extfile/zmi/__init__.py:46
 msgid "External file type"
 msgstr "Type de fichier joint"
 
--- a/src/pyams_content/locales/pyams_content.pot	Wed Oct 17 14:40:14 2018 +0200
+++ b/src/pyams_content/locales/pyams_content.pot	Wed Oct 17 15:44:50 2018 +0200
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-10-17 12:10+0200\n"
+"POT-Creation-Date: 2018-10-17 15:41+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1774,11 +1774,11 @@
 msgid "Video content"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/interfaces/__init__.py:100
+#: ./src/pyams_content/component/extfile/interfaces/__init__.py:104
 msgid "Default title prefix"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/interfaces/__init__.py:101
+#: ./src/pyams_content/component/extfile/interfaces/__init__.py:105
 msgid ""
 "If used, this prefix will be automatically added to download link's label of "
 "all files"
@@ -1792,71 +1792,71 @@
 msgid "External files properties"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:69
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:70
 msgid "External files"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:84
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:85
 msgid "Add external file"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:98
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:99
 msgid "Add new external file"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:128
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:131
 msgid "Update file properties"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:154
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:159
 msgid "Images"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:169
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:174
 msgid "Add image"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:183
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:188
 msgid "Add new image"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:214
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:220
 msgid "Update image properties"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:245
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:252
 msgid "Videos"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:260
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:267
 msgid "Add video"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:274
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:281
 msgid "Add new video"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:298
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:306
 msgid "Update video properties"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:322
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:331
 msgid "Audios files"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:337
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:346
 msgid "Add audio file"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:351
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:360
 msgid "Add new audio file"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:375
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:385
 msgid "Update audio file properties"
 msgstr ""
 
-#: ./src/pyams_content/component/extfile/zmi/__init__.py:45
+#: ./src/pyams_content/component/extfile/zmi/__init__.py:46
 msgid "External file type"
 msgstr ""