Updated interface for site's description attribute
authorThierry Florac <thierry.florac@onf.fr>
Fri, 21 Sep 2018 09:22:32 +0200
changeset 407 9313280dd95f
parent 406 0ceaf5ebca1c
child 408 1af8bc596469
Updated interface for site's description attribute
src/pyams_skin/interfaces/configuration.py
src/pyams_skin/locales/fr/LC_MESSAGES/pyams_skin.mo
src/pyams_skin/locales/fr/LC_MESSAGES/pyams_skin.po
--- a/src/pyams_skin/interfaces/configuration.py	Thu Sep 20 15:02:44 2018 +0200
+++ b/src/pyams_skin/interfaces/configuration.py	Fri Sep 21 09:22:32 2018 +0200
@@ -17,14 +17,12 @@
 
 # import interfaces
 from zope.location.interfaces import IContained
+from zope.schema import TextLine, Text, Bool
 
 # import packages
 from pyams_file.schema import ImageField
-from zope.schema import TextLine, Text, Bool
-
 from pyams_skin import _
 
-
 SKIN_CONFIGURATION_KEY = 'pyams_skin.configuration'
 
 
@@ -46,9 +44,9 @@
     def get_title_prefix(self, request):
         """Get title prefix based on current navigation context"""
 
-    description = TextLine(title=_("Description"),
-                           description=_("Main application description"),
-                           required=False)
+    description = Text(title=_("Description"),
+                       description=_("Main application description"),
+                       required=False)
 
     author = TextLine(title=_("Author"),
                       description=_("Public author name"),
Binary file src/pyams_skin/locales/fr/LC_MESSAGES/pyams_skin.mo has changed
--- a/src/pyams_skin/locales/fr/LC_MESSAGES/pyams_skin.po	Thu Sep 20 15:02:44 2018 +0200
+++ b/src/pyams_skin/locales/fr/LC_MESSAGES/pyams_skin.po	Fri Sep 21 09:22:32 2018 +0200
@@ -105,11 +105,14 @@
 
 #: src/pyams_skin/interfaces/configuration.py:49
 msgid "Description"
-msgstr "Description"
+msgstr "Méta-description"
 
 #: src/pyams_skin/interfaces/configuration.py:50
 msgid "Main application description"
-msgstr "Description principale de l'application ou du site"
+msgstr ""
+"La méta-description du site est 'masquée' dans les en-têtes des pages HTML ; "
+"mais on peut la retrouver, par exemple, dans les listes de résultats des "
+"moteurs de recherche."
 
 #: src/pyams_skin/interfaces/configuration.py:53
 msgid "Author"