[PATCH 1 of 4 saem] [i18n] Fix typo and actually translate the message

Sylvain Thenault sylvain.thenault at logilab.fr
Wed May 10 15:24:37 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1493283825 -7200
#      Thu Apr 27 11:03:45 2017 +0200
# Node ID acba069ac98ec6ba55c99c9a43c29d4a7bcdfd83
# Parent  7d439b32ecfb03a347708f3c4487b5c2f11bd0f1
# Available At http://hg.logilab.org/review/cubes/saem_ref
#              hg pull http://hg.logilab.org/review/cubes/saem_ref -r acba069ac98e
[i18n] Fix typo and actually translate the message

diff --git a/cubicweb_saem_ref/i18n/en.po b/cubicweb_saem_ref/i18n/en.po
--- a/cubicweb_saem_ref/i18n/en.po
+++ b/cubicweb_saem_ref/i18n/en.po
@@ -190,10 +190,15 @@ msgstr ""
 
 msgid "Vocabularies"
 msgstr ""
 
 msgid ""
+"You can't add authority record to organization unit without the 'archival' "
+"role."
+msgstr ""
+
+msgid ""
 "You can't add profiles or concept schemes to organization unit without the "
 "'deposit' role."
 msgstr ""
 
 msgid "You must be in an organization to access this functionnality."
diff --git a/cubicweb_saem_ref/i18n/fr.po b/cubicweb_saem_ref/i18n/fr.po
--- a/cubicweb_saem_ref/i18n/fr.po
+++ b/cubicweb_saem_ref/i18n/fr.po
@@ -196,10 +196,17 @@ msgstr "Voir"
 
 msgid "Vocabularies"
 msgstr "Vocabulaires"
 
 msgid ""
+"You can't add authority record to organization unit without the 'archival' "
+"role."
+msgstr ""
+"Seules les unités ayant le rôle 'service d'archives' peuvent référencer les "
+"notices d'autorité"
+
+msgid ""
 "You can't add profiles or concept schemes to organization unit without the "
 "'deposit' role."
 msgstr ""
 "Vous ne pouvez pas ajouter de vocabulaire ou de profil à une unité "
 "administrative qui n'a pas le rôle 'service versant'."
diff --git a/cubicweb_saem_ref/views/org.py b/cubicweb_saem_ref/views/org.py
--- a/cubicweb_saem_ref/views/org.py
+++ b/cubicweb_saem_ref/views/org.py
@@ -317,12 +317,12 @@ class RelatedSEDAArchiveTransferListView
 class OrganizationUnitAuthorityRecordsTab(LinkedObjectsTab):
     """Authority records used by this organization unit."""
     __regid__ = 'saem_ou_authorityrecords_tab'
     __select__ = EntityView.__select__ & relation_possible('use_authorityrecord')
     required_role = 'archival'
-    not_possible_msg = ("You can't add authority record to organization unit "
-                        "without the 'archvial' role.")
+    not_possible_msg = _("You can't add authority record to organization unit "
+                         "without the 'archival' role.")
     link_targets = [('AuthorityRecord', 'use_authorityrecord', 'subject')]
     subvids = (
         'saem.ou.authorityrecords',
     )
 


More information about the saem-devel mailing list