[i18n] Fix some messages
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 10 Jan 2017 16:07:35 +0100
changeset 2263 b6a2ad4c7683
parent 2262 63e336cdbc8c
child 2264 5fb5bf38f962
[i18n] Fix some messages Closes #16688021
hooks.py
i18n/en.po
i18n/fr.po
migration/0.6.0_Any.py
schema/__init__.py
test/test_hooks.py
--- a/hooks.py	Fri Jan 06 12:34:33 2017 +0100
+++ b/hooks.py	Tue Jan 10 16:07:35 2017 +0100
@@ -159,7 +159,7 @@
                 if entity.related(rtype, role=role):
                     break
             else:
-                msg = _('An xsd:choice element cannot be empty')
+                msg = _('An alternative cannot be empty')
                 raise ValidationError(entity.eid, {'': msg})
 
 
--- a/i18n/en.po	Fri Jan 06 12:34:33 2017 +0100
+++ b/i18n/en.po	Tue Jan 10 16:07:35 2017 +0100
@@ -81,7 +81,7 @@
 msgid "Alternative"
 msgstr ""
 
-msgid "An xsd:choice element cannot be empty"
+msgid "An alternative cannot be empty"
 msgstr ""
 
 msgid "Archive unit component tree"
@@ -7719,7 +7719,7 @@
 msgid "title"
 msgstr ""
 
-msgid "title for this profile, not used in the generated XSD"
+msgid "title for this profile, not used in the generated schema"
 msgstr ""
 
 msgid "transferring_agency_archive_unit_identifier"
--- a/i18n/fr.po	Fri Jan 06 12:34:33 2017 +0100
+++ b/i18n/fr.po	Tue Jan 10 16:07:35 2017 +0100
@@ -81,7 +81,7 @@
 msgid "Alternative"
 msgstr "Choix"
 
-msgid "An xsd:choice element cannot be empty"
+msgid "An alternative cannot be empty"
 msgstr "Une alternative doit contenir au moins un élément"
 
 msgid "Archive unit component tree"
@@ -1810,14 +1810,14 @@
 msgstr ""
 
 msgid "SEDATag"
-msgstr "Étiquette"
+msgstr "Tag"
 
 msgctxt "inlined:SEDAContent.seda_tag.object"
 msgid "SEDATag"
 msgstr ""
 
 msgid "SEDATag_plural"
-msgstr "Étiquettes"
+msgstr "Tags"
 
 msgid "SEDATemporal"
 msgstr "Couverture temporelle"
@@ -4531,7 +4531,7 @@
 
 #, python-format
 msgid "creating SEDATag (SEDATag seda_tag SEDAContent %(linkto)s)"
-msgstr "création d'une étiquette pour le contenu %(linkto)s"
+msgstr "création d'un tag pour le contenu %(linkto)s"
 
 #, python-format
 msgid ""
@@ -4693,7 +4693,7 @@
 "SEDA 1')"
 
 msgid "need human intervention"
-msgstr "requière une intervention humaine"
+msgstr "requiert une intervention humaine"
 
 msgid "need_authorization"
 msgstr "valeur"
@@ -7688,7 +7688,7 @@
 "the full SEDA 2 expressivness"
 msgstr ""
 "un profil simplifié est compatible avec les anciennes versions du SEDA mais "
-"n'a pas toute l'expressivité de la version 2 du SEDA"
+"ne propose pas toutes les métadonnées du SEDA 2"
 
 msgid "simplified_profile"
 msgstr "profil simplifié"
@@ -7747,8 +7747,8 @@
 msgid "title"
 msgstr "valeur"
 
-msgid "title for this profile, not used in the generated XSD"
-msgstr "titre du profile, non utilisé dans le schéma XSD généré"
+msgid "title for this profile, not used in the generated schema"
+msgstr "titre du profil, non utilisé dans le schéma XML généré"
 
 msgid "transferring_agency_archive_unit_identifier"
 msgstr "valeur"
--- a/migration/0.6.0_Any.py	Fri Jan 06 12:34:33 2017 +0100
+++ b/migration/0.6.0_Any.py	Tue Jan 10 16:07:35 2017 +0100
@@ -8,3 +8,5 @@
                       label=seda2_label)
 
 commit()
+
+sync_schema_props_perms(('SEDAArchiveTransfer', 'title', 'String'))
--- a/schema/__init__.py	Fri Jan 06 12:34:33 2017 +0100
+++ b/schema/__init__.py	Tue Jan 10 16:07:35 2017 +0100
@@ -92,7 +92,7 @@
 class title(RelationDefinition):
     subject = 'SEDAArchiveTransfer'
     object = 'String'
-    description = _('title for this profile, not used in the generated XSD')
+    description = _('title for this profile, not used in the generated schema')
     cardinality = '11'
     fulltextindexed = True
 
--- a/test/test_hooks.py	Fri Jan 06 12:34:33 2017 +0100
+++ b/test/test_hooks.py	Tue Jan 10 16:07:35 2017 +0100
@@ -115,7 +115,7 @@
                               reverse_seda_alt_access_rule_prevent_inheritance=access_rule)
             with self.assertRaises(ValidationError) as cm:
                 cnx.commit()
-            self.assertIn('An xsd:choice element cannot be empty',
+            self.assertIn('An alternative cannot be empty',
                           str(cm.exception))
 
     def test_valid_choice_created(self):
@@ -148,7 +148,7 @@
                         {'rel_eid': rel.eid})
             with self.assertRaises(ValidationError) as cm:
                 cnx.commit()
-            self.assertIn('An xsd:choice element cannot be empty',
+            self.assertIn('An alternative cannot be empty',
                           str(cm.exception))
 
     def test_item_in_choice_deleted_with_remaining_item(self):