[saem-devel] [PATCH 2 of 9] [i18n] Fix message about 'agent' while we're talking about 'organization unit'

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Jan 27 16:02:50 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1485326174 -3600
#      Wed Jan 25 07:36:14 2017 +0100
# Node ID 9b0b5f6686d7db994bec2851494e338c8dd36357
# Parent  ecbc3fe4f55537de17afd5143cb78e9e4f138a0e
[i18n] Fix message about 'agent' while we're talking about 'organization unit'

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
@@ -177,11 +177,11 @@ msgstr ""
 
 msgid "SEDA components"
 msgstr ""
 
 #, python-format
-msgid "Search %s to link to the agent"
+msgid "Search %s to link to the organization unit"
 msgstr ""
 
 msgid "Similar entities:"
 msgstr ""
 
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
@@ -183,12 +183,12 @@ msgstr "Versions associées"
 
 msgid "SEDA components"
 msgstr "Unités d'archives"
 
 #, python-format
-msgid "Search %s to link to the agent"
-msgstr "Recherche de %s à lier à l'agent"
+msgid "Search %s to link to the organization unit"
+msgstr "Recherche de %s à lier à l'unité administrative"
 
 msgid "Similar entities:"
 msgstr "Entités similaires :"
 
 msgid "Site information"
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
@@ -205,11 +205,11 @@ class LinkedObjectsTab(SubviewsTabView):
                 continue
             relation = '%s:%s:%s' % (rtype, etype, role)
             search_url = self._cw.build_url('ajax', fname='view', vid='search_related_entities',
                                             eid=entity.eid,
                                             __modal=1, multiple='1', relation=relation)
-            title = (self._cw._('Search %s to link to the agent')
+            title = (self._cw._('Search %s to link to the organization unit')
                      % self._cw.__(etype + '_plural').lower())
             validate = js.saem.buildRelationValidate(entity.eid, rtype, role, self.__regid__)
             url = configure_relation_widget(self._cw, divid, search_url, title, True, validate)
             links.append(tags.a(self._cw._(etype), href=url, klass=''))
         if links:


More information about the saem-devel mailing list