Updated translation
authorThierry Florac <thierry.florac@onf.fr>
Mon, 24 Sep 2018 16:17:34 +0200
changeset 977 4f1a82f040c4
parent 976 5d23f030767c
child 978 7a95fe7d51b0
Updated translation
src/pyams_content/component/gallery/paragraph.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/gallery/paragraph.py	Mon Sep 24 16:06:40 2018 +0200
+++ b/src/pyams_content/component/gallery/paragraph.py	Mon Sep 24 16:17:34 2018 +0200
@@ -39,8 +39,10 @@
         request = check_request()
         translate = request.localizer.translate
         nb_medias = len(self)
-        if nb_medias > 0:
-            return translate(_("({0} medias)")).format(nb_medias)
+        if nb_medias > 1:
+            return translate(_("(gallery contains {0} medias)")).format(nb_medias)
+        elif nb_medias == 1:
+            return translate(_("(gallery contains 1 media)"))
         else:
             return translate(_("(empty gallery)"))
 
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	Mon Sep 24 16:06:40 2018 +0200
+++ b/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po	Mon Sep 24 16:17:34 2018 +0200
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-09-24 16:03+0200\n"
+"POT-Creation-Date: 2018-09-24 16:10+0200\n"
 "PO-Revision-Date: 2015-09-10 10:42+0200\n"
 "Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
 "Language-Team: French\n"
@@ -80,62 +80,66 @@
 msgid "Guest user (role)"
 msgstr "Invité (rôle)"
 
-#: src/pyams_content/component/gallery/paragraph.py:46
+#: src/pyams_content/component/gallery/paragraph.py:45
+msgid "(gallery contains 1 media)"
+msgstr "(1 média dans la galerie)"
+
+#: src/pyams_content/component/gallery/paragraph.py:47
 msgid "(empty gallery)"
-msgstr "(cette galerie ne contient aucun média)"
-
-#: src/pyams_content/component/gallery/paragraph.py:44
+msgstr "(aucun média dans la galerie)"
+
+#: src/pyams_content/component/gallery/paragraph.py:43
 #, python-format
-msgid "({0} medias)"
-msgstr "({0} médias dans la galerie)"
-
-#: src/pyams_content/component/gallery/__init__.py:156
+msgid "(gallery contains {0} medias)"
+msgstr "({0} medias dans la galerie)"
+
+#: src/pyams_content/component/gallery/__init__.py:155
 msgid "Gallery"
 msgstr "Galerie de médias"
 
-#: src/pyams_content/component/gallery/zmi/file.py:56
-#: src/pyams_content/component/gallery/zmi/file.py:68
-#: src/pyams_content/component/gallery/zmi/paragraph.py:148
+#: src/pyams_content/component/gallery/zmi/file.py:55
+#: src/pyams_content/component/gallery/zmi/file.py:67
+#: src/pyams_content/component/gallery/zmi/paragraph.py:147
 msgid "Add media(s)"
 msgstr "Ajouter des médias"
 
-#: src/pyams_content/component/gallery/zmi/file.py:177
+#: src/pyams_content/component/gallery/zmi/file.py:176
 msgid "Update media properties"
 msgstr "Propriétés du média"
 
-#: src/pyams_content/component/gallery/zmi/file.py:226
+#: src/pyams_content/component/gallery/zmi/file.py:225
 msgid "Remove media..."
 msgstr "Supprimer le média"
 
-#: src/pyams_content/component/gallery/zmi/file.py:141
+#: src/pyams_content/component/gallery/zmi/file.py:140
 msgid "Show/hide media"
 msgstr "Cliquez pour rendre le média visible ou non"
 
-#: src/pyams_content/component/gallery/zmi/file.py:193
+#: src/pyams_content/component/gallery/zmi/file.py:192
 msgid "Audio content"
 msgstr "Contenu audio associé"
 
-#: src/pyams_content/component/gallery/zmi/paragraph.py:60
+#: src/pyams_content/component/gallery/zmi/paragraph.py:59
 msgid "Medias gallery..."
 msgstr "Galerie de médias"
 
-#: src/pyams_content/component/gallery/zmi/paragraph.py:73
+#: src/pyams_content/component/gallery/zmi/paragraph.py:72
 msgid "Add new gallery"
 msgstr "Ajout d'une galerie de médias"
 
-#: src/pyams_content/component/gallery/zmi/paragraph.py:95
+#: src/pyams_content/component/gallery/zmi/paragraph.py:94
 msgid "Edit gallery properties"
 msgstr "Propriétés de la galerie de médias"
 
-#: src/pyams_content/component/gallery/zmi/paragraph.py:169
+#: src/pyams_content/component/gallery/zmi/paragraph.py:168
 msgid "Media(s) successfully added"
 msgstr "Les médias ont été ajoutés dans la galerie."
 
-#: src/pyams_content/component/gallery/zmi/__init__.py:58
+#: src/pyams_content/component/gallery/zmi/__init__.py:57
 msgid "Update gallery properties"
 msgstr "Propriétés de la galerie de médias"
 
-#: src/pyams_content/component/gallery/zmi/__init__.py:85
+#: src/pyams_content/component/gallery/zmi/__init__.py:84
 msgid "Update gallery contents"
 msgstr "Contenu de la galerie de médias"
 
@@ -5957,6 +5961,9 @@
 msgid "Hidden header"
 msgstr "Ne pas afficher d'en-tête de pages"
 
+#~ msgid "({0} medias)"
+#~ msgstr "({0} médias dans la galerie)"
+
 #~ msgid "Author comments"
 #~ msgstr "À propos de l'auteur"
 
--- a/src/pyams_content/locales/pyams_content.pot	Mon Sep 24 16:06:40 2018 +0200
+++ b/src/pyams_content/locales/pyams_content.pot	Mon Sep 24 16:17:34 2018 +0200
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-09-24 16:03+0200\n"
+"POT-Creation-Date: 2018-09-24 16:10+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"
@@ -81,62 +81,66 @@
 msgid "Guest user (role)"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/paragraph.py:46
+#: ./src/pyams_content/component/gallery/paragraph.py:45
+msgid "(gallery contains 1 media)"
+msgstr ""
+
+#: ./src/pyams_content/component/gallery/paragraph.py:47
 msgid "(empty gallery)"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/paragraph.py:44
+#: ./src/pyams_content/component/gallery/paragraph.py:43
 #, python-format
-msgid "({0} medias)"
-msgstr ""
-
-#: ./src/pyams_content/component/gallery/__init__.py:156
+msgid "(gallery contains {0} medias)"
+msgstr ""
+
+#: ./src/pyams_content/component/gallery/__init__.py:155
 msgid "Gallery"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/file.py:56
-#: ./src/pyams_content/component/gallery/zmi/file.py:68
-#: ./src/pyams_content/component/gallery/zmi/paragraph.py:148
+#: ./src/pyams_content/component/gallery/zmi/file.py:55
+#: ./src/pyams_content/component/gallery/zmi/file.py:67
+#: ./src/pyams_content/component/gallery/zmi/paragraph.py:147
 msgid "Add media(s)"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/file.py:177
+#: ./src/pyams_content/component/gallery/zmi/file.py:176
 msgid "Update media properties"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/file.py:226
+#: ./src/pyams_content/component/gallery/zmi/file.py:225
 msgid "Remove media..."
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/file.py:141
+#: ./src/pyams_content/component/gallery/zmi/file.py:140
 msgid "Show/hide media"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/file.py:193
+#: ./src/pyams_content/component/gallery/zmi/file.py:192
 msgid "Audio content"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/paragraph.py:60
+#: ./src/pyams_content/component/gallery/zmi/paragraph.py:59
 msgid "Medias gallery..."
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/paragraph.py:73
+#: ./src/pyams_content/component/gallery/zmi/paragraph.py:72
 msgid "Add new gallery"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/paragraph.py:95
+#: ./src/pyams_content/component/gallery/zmi/paragraph.py:94
 msgid "Edit gallery properties"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/paragraph.py:169
+#: ./src/pyams_content/component/gallery/zmi/paragraph.py:168
 msgid "Media(s) successfully added"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/__init__.py:58
+#: ./src/pyams_content/component/gallery/zmi/__init__.py:57
 msgid "Update gallery properties"
 msgstr ""
 
-#: ./src/pyams_content/component/gallery/zmi/__init__.py:85
+#: ./src/pyams_content/component/gallery/zmi/__init__.py:84
 msgid "Update gallery contents"
 msgstr ""