[i18n] Use a less error prone i18n message id
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 19 Jan 2017 11:07:01 +0100
changeset 2306 eae2ee93bae4
parent 2305 2b90e9d9e10d
child 2307 657430e71449
[i18n] Use a less error prone i18n message id
i18n/en.po
i18n/fr.po
views/archiveunit.py
--- a/i18n/en.po	Thu Jan 19 10:26:56 2017 +0100
+++ b/i18n/en.po	Thu Jan 19 11:07:01 2017 +0100
@@ -7,12 +7,6 @@
 "Generated-By: pygettext.py 1.5\n"
 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
 
-msgid " (mandatory timestamp)"
-msgstr ""
-
-msgid " (optional timestamp)"
-msgstr ""
-
 msgid " ALT_I18N "
 msgstr ""
 
@@ -4721,6 +4715,9 @@
 msgid "mandatory"
 msgstr ""
 
+msgid "mandatory timestamp"
+msgstr ""
+
 msgid ""
 "names of format in which the profile may be exported (e.g. 'SEDA 2, SEDA 1')"
 msgstr ""
@@ -4745,6 +4742,9 @@
 msgid "optional"
 msgstr ""
 
+msgid "optional timestamp"
+msgstr ""
+
 msgid "originating_agency_archive_unit_identifier"
 msgstr ""
 
--- a/i18n/fr.po	Thu Jan 19 10:26:56 2017 +0100
+++ b/i18n/fr.po	Thu Jan 19 11:07:01 2017 +0100
@@ -7,12 +7,6 @@
 "Generated-By: pygettext.py 1.5\n"
 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
 
-msgid " (mandatory timestamp)"
-msgstr " (horodatage obligatoire)"
-
-msgid " (optional timestamp)"
-msgstr " (horodatage optionel)"
-
 msgid " ALT_I18N "
 msgstr " OU "
 
@@ -4740,6 +4734,9 @@
 msgid "mandatory"
 msgstr "obligatoire"
 
+msgid "mandatory timestamp"
+msgstr "horodatage obligatoire"
+
 msgid ""
 "names of format in which the profile may be exported (e.g. 'SEDA 2, SEDA 1')"
 msgstr ""
@@ -4766,6 +4763,9 @@
 msgid "optional"
 msgstr "optionnel"
 
+msgid "optional timestamp"
+msgstr "horodatage optionel"
+
 msgid "originating_agency_archive_unit_identifier"
 msgstr "valeur"
 
--- a/views/archiveunit.py	Thu Jan 19 10:26:56 2017 +0100
+++ b/views/archiveunit.py	Thu Jan 19 11:07:01 2017 +0100
@@ -732,9 +732,9 @@
         if entity.reverse_seda_when:
             when = entity.reverse_seda_when[0]
             if when.user_cardinality == '1':
-                self.w(self._cw._(' (mandatory timestamp)'))
+                self.w(' ({})'.format(self._cw._('mandatory timestamp')))
             else:
-                self.w(self._cw._(' (optional timestamp)'))
+                self.w(' ({})'.format(self._cw._('optional timestamp')))
 
 
 # main tab for archive unit content ############################################