[saem-devel] [PATCH 1 of 2 seda] [i18n] Consistently use 'descripteur libre' / 'descripteur contrôlé'

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Feb 22 15:54:23 CET 2017


CI: https://jenkins.logilab.org/job/cubicweb-seda/45/


Le 22/02/2017 à 15:53, Sylvain Thenault a écrit :
> # HG changeset patch
> # User Sylvain Thénault <sylvain.thenault at logilab.fr>
> # Date 1487775100 -3600
> #      Wed Feb 22 15:51:40 2017 +0100
> # Node ID fcdd16e5cad2d9f0409a7dfbe7c34581c6c491b8
> # Parent  9e88b1141bb9c2fc607b199c511afd06a7ae5a0d
> [i18n] Consistently use 'descripteur libre' / 'descripteur contrôlé'
>
> instead of 'mot-clé', as specified in extranet #14592456.
>
> diff --git a/i18n/fr.po b/i18n/fr.po
> --- a/i18n/fr.po
> +++ b/i18n/fr.po
> @@ -43,12 +43,12 @@ msgid "<no data-object specified>"
>  msgstr "<objet-données libre>"
>  
>  msgid "<no final action specified>"
>  msgstr "<action finale libre>"
>  
> -msgid "<no reference specified>"
> -msgstr "<référence libre>"
> +msgid "<no keyword scheme specified>"
> +msgstr "descripteur contrôlé sans vocabulaire spécifié"
>  
>  msgid "<no rule specified>"
>  msgstr "<règle libre>"
>  
>  msgid "<no rule to prevent specified>"
> @@ -1244,26 +1244,26 @@ msgstr "Juridiction administrative"
>  
>  msgid "SEDAJuridictional_plural"
>  msgstr "Juridictions administratives"
>  
>  msgid "SEDAKeyword"
> -msgstr "Mot-clé"
> +msgstr "Descripteur"
>  
>  msgctxt ""
>  "inlined:SEDASeqAltArchiveUnitArchiveUnitRefIdManagement.seda_keyword.object"
>  msgid "SEDAKeyword"
>  msgstr ""
>  
>  msgid "SEDAKeywordReference"
> -msgstr "référence"
> +msgstr "Descripteur"
>  
>  msgctxt "inlined:SEDAKeyword.seda_keyword_reference_from.object"
>  msgid "SEDAKeywordReference"
>  msgstr ""
>  
>  msgid "SEDAKeywordReference_plural"
> -msgstr ""
> +msgstr "Descripteurs"
>  
>  msgid "SEDAKeywordType"
>  msgstr "type"
>  
>  msgctxt "inlined:SEDAKeyword.seda_keyword_type_from.object"
> @@ -1272,11 +1272,11 @@ msgstr ""
>  
>  msgid "SEDAKeywordType_plural"
>  msgstr ""
>  
>  msgid "SEDAKeyword_plural"
> -msgstr "Mots-clés"
> +msgstr "Descripteurs"
>  
>  msgid "SEDALanguage"
>  msgstr "langue"
>  
>  msgctxt ""
> @@ -3295,11 +3295,11 @@ msgctxt ""
>  "inlined:SEDASeqAltArchiveUnitArchiveUnitRefIdManagement.seda_keyword.object"
>  msgid "add a SEDAKeyword"
>  msgstr ""
>  
>  msgid "add a SEDAKeywordReference"
> -msgstr "ajouter un identifiant de référence"
> +msgstr "ajouter un descripteur contrôlé"
>  
>  msgctxt "inlined:SEDAKeyword.seda_keyword_reference_from.object"
>  msgid "add a SEDAKeywordReference"
>  msgstr ""
>  
> @@ -4500,11 +4500,11 @@ msgstr "création d'une juridiction admi
>  
>  #, python-format
>  msgid ""
>  "creating SEDAKeyword (SEDAKeyword seda_keyword "
>  "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement %(linkto)s)"
> -msgstr "création d'un mot-clé"
> +msgstr "création d'un descripteur"
>  
>  #, python-format
>  msgid ""
>  "creating SEDAPhysicalDataObject (SEDAPhysicalDataObject "
>  "seda_physical_data_object SEDAArchiveTransfer %(linkto)s)"
> @@ -4677,30 +4677,30 @@ msgstr "juridication administrative"
>  msgctxt "SEDAJuridictional"
>  msgid "juridictional"
>  msgstr ""
>  
>  msgid "keyword concept"
> -msgstr "mot-clé de référence"
> +msgstr "descripteur contrôlé"
>  
>  #, python-brace-format
> -msgid "keyword reference: {0}"
> -msgstr "mot-clé de référence : {0}"
> +msgid "keyword concept: {0}"
> +msgstr "descripteur contrôlé : {0}"
>  
>  #, python-brace-format
>  msgid "keyword scheme: {0}"
> -msgstr "mot-clé du vocabulaire {0}"
> +msgstr "descripteur contrôlé du vocabulaire {0}"
>  
>  msgid "keyword simple"
> -msgstr "mot-clé simple"
> +msgstr "descripteur libre"
>  
>  #, python-brace-format
>  msgid "keyword type: {0}"
>  msgstr "type : {0}"
>  
>  #, python-brace-format
>  msgid "keyword: {0}"
> -msgstr "mot-clé : {0}"
> +msgstr "descripteur libre : {0}"
>  
>  msgid "keyword_content"
>  msgstr "valeur"
>  
>  msgctxt "SEDAKeyword"
> @@ -6268,11 +6268,11 @@ msgstr ""
>  msgctxt "SEDAKeyword"
>  msgid "seda_keyword"
>  msgstr ""
>  
>  msgid "seda_keyword_object"
> -msgstr "mot-clé"
> +msgstr "descripteur"
>  
>  msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
>  msgid "seda_keyword_object"
>  msgstr ""
>  
> @@ -6289,11 +6289,11 @@ msgstr ""
>  msgctxt "SEDAKeyword"
>  msgid "seda_keyword_reference_from_object"
>  msgstr ""
>  
>  msgid "seda_keyword_reference_to"
> -msgstr "concept (mot-clé de référence)"
> +msgstr "valeur"
>  
>  msgctxt "SEDAKeywordReference"
>  msgid "seda_keyword_reference_to"
>  msgstr ""
>  
> diff --git a/views/archiveunit.py b/views/archiveunit.py
> --- a/views/archiveunit.py
> +++ b/views/archiveunit.py
> @@ -582,16 +582,16 @@ class KeywordBusinessValueEntityView(vie
>      def entity_call(self, entity):
>          if entity.reverse_seda_keyword_reference_from:
>              kwr = entity.reverse_seda_keyword_reference_from[0]
>              if kwr.concept:
>                  kwr_value = kwr.concept.view('oneline')
> -                msg = xml_escape(self._cw._('keyword reference: {0}')).format(kwr_value)
> +                msg = xml_escape(self._cw._('keyword concept: {0}')).format(kwr_value)
>              elif kwr.scheme:
>                  kwr_value = kwr.scheme.view('oneline')
>                  msg = xml_escape(self._cw._('keyword scheme: {0}')).format(kwr_value)
>              else:
> -                msg = xml_escape(self._cw._('<no reference specified>'))
> +                msg = xml_escape(self._cw._('<no keyword scheme specified>'))
>          else:
>              if entity.keyword_content:
>                  content = entity.keyword_content
>              else:
>                  content = self._cw._('<no value specified>')
> _______________________________________________
> saem-devel mailing list
> saem-devel at lists.cubicweb.org
> http://lists.cubicweb.org/mailman/listinfo/saem-devel

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list