Browse Source

[ADD] translation add 'fr' and update 'pot' file;

pull/111/head
Sylvain LE GAL 9 years ago
parent
commit
8aa2d9cf97
  1. 128
      web_dashboard_tile/i18n/fr.po
  2. 119
      web_dashboard_tile/i18n/web_dashboard_tile.pot
  3. 10
      web_dashboard_tile/tile.py

128
web_dashboard_tile/i18n/fr.po

@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-04-05 19:36+0000\n"
"PO-Revision-Date: 2015-04-05 19:36+0000\n"
"POT-Creation-Date: 2015-04-10 01:04+0000\n"
"PO-Revision-Date: 2015-04-10 01:04+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -20,6 +20,37 @@ msgstr ""
msgid "Action"
msgstr "Action"
#. module: web_dashboard_tile
#: field:tile.tile,active:0
msgid "Active"
msgstr "Actif"
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Average"
msgstr "Moyenne"
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:82
#, python-format
msgid "Average value of '%s'"
msgstr "Valeur moyenne du champ '%s'"
#. module: web_dashboard_tile
#: field:tile.tile,color:0
msgid "Background color"
msgstr "Couleur de fond"
#. module: web_dashboard_tile
#: field:tile.tile,computed_value:0
msgid "Computed Value"
msgstr "Valeur calculée"
#. module: web_dashboard_tile
#: field:tile.tile,count:0
msgid "Count"
msgstr "Quantité"
#. module: web_dashboard_tile
#. openerp-web
#: code:addons/web_dashboard_tile/static/src/xml/custom_xml.xml:8
@ -66,6 +97,21 @@ msgstr "Editer..."
msgid "Error"
msgstr "Erreur"
#. module: web_dashboard_tile
#: constraint:tile.tile:0
msgid "Error ! Please select a field of the selected model."
msgstr "Erreur ! Veuillez sélectioner un champ qui correspond au modèle."
#. module: web_dashboard_tile
#: constraint:tile.tile:0
msgid "Error ! Please set both fields: 'Field' and 'Function'."
msgstr "Erreur ! Veuillez renseigner les deux champs : 'Champ' et 'Fonction'."
#. module: web_dashboard_tile
#: field:tile.tile,field_id:0
msgid "Field"
msgstr "Champ"
#. module: web_dashboard_tile
#. openerp-web
#: code:addons/web_dashboard_tile/static/src/js/custom_js.js:61
@ -74,15 +120,63 @@ msgid "Filter name is required."
msgstr "Le nom du filtre est requis."
#. module: web_dashboard_tile
#: field:tile.tile,color:0
msgid "Kanban Color"
msgstr "Couleur dans la vue Kanban"
#: field:tile.tile,font_color:0
msgid "Font Color"
msgstr "Couleur du texte"
#. module: web_dashboard_tile
#: field:tile.tile,field_function:0
msgid "Function"
msgstr "Fonction"
#. module: web_dashboard_tile
#: field:tile.tile,helper:0
msgid "Helper Text"
msgstr "Texte Descriptif"
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Maximum"
msgstr "Maximum"
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:76
#, python-format
msgid "Maximum value of '%s'"
msgstr "Valeur maximale du champ '%s'"
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Median"
msgstr "Médiane"
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:85
#, python-format
msgid "Median value of '%s'"
msgstr "Valeur médian du champ '%s'"
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Minimum"
msgstr "Minimum"
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:73
#, python-format
msgid "Minimum value of '%s'"
msgstr "Valeur minimale du champ '%s'"
#. module: web_dashboard_tile
#: field:tile.tile,model_id:0
msgid "Model"
msgstr "Modèle"
#. module: web_dashboard_tile
#: field:tile.tile,sequence:0
msgid "Sequence"
msgstr "Séquence"
#. module: web_dashboard_tile
#. openerp-web
#: code:addons/web_dashboard_tile/static/src/js/custom_js.js:100
@ -90,6 +184,11 @@ msgstr "Modèle"
msgid "Success"
msgstr "Succès"
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Sum"
msgstr "Somme"
#. module: web_dashboard_tile
#: field:tile.tile,name:0
msgid "Tile Name"
@ -100,7 +199,7 @@ msgstr "Nom de l'indicateur"
#: code:addons/web_dashboard_tile/static/src/js/custom_js.js:100
#, python-format
msgid "Tile is created"
msgstr "L'indicateur a été crée"
msgstr "L'indicateur a été créé"
#. module: web_dashboard_tile
#. openerp-web
@ -109,18 +208,13 @@ msgstr "L'indicateur a été crée"
msgid "Tile:"
msgstr "Indicateur :"
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:79
#, python-format
msgid "Total value of '%s'"
msgstr "Somme du champ '%s'"
#. module: web_dashboard_tile
#: field:tile.tile,user_id:0
msgid "User"
msgstr "Utilisateur"
#. module: web_dashboard_tile
#: field:tile.tile,count:0
msgid "unknown"
msgstr "inconnu"
#. module: web_dashboard_tile
#: view:tile.tile:0
msgid "í"
msgstr "í"

119
web_dashboard_tile/i18n/web_dashboard_tile.pot

@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-04-05 19:42+0000\n"
"PO-Revision-Date: 2015-04-05 19:42+0000\n"
"POT-Creation-Date: 2015-04-10 01:03+0000\n"
"PO-Revision-Date: 2015-04-10 01:03+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -20,6 +20,37 @@ msgstr ""
msgid "Action"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,active:0
msgid "Active"
msgstr ""
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Average"
msgstr ""
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:82
#, python-format
msgid "Average value of '%s'"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,color:0
msgid "Background color"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,computed_value:0
msgid "Computed Value"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,count:0
msgid "Count"
msgstr ""
#. module: web_dashboard_tile
#. openerp-web
#: code:addons/web_dashboard_tile/static/src/xml/custom_xml.xml:8
@ -66,6 +97,21 @@ msgstr ""
msgid "Error"
msgstr ""
#. module: web_dashboard_tile
#: constraint:tile.tile:0
msgid "Error ! Please select a field of the selected model."
msgstr ""
#. module: web_dashboard_tile
#: constraint:tile.tile:0
msgid "Error ! Please set both fields: 'Field' and 'Function'."
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,field_id:0
msgid "Field"
msgstr ""
#. module: web_dashboard_tile
#. openerp-web
#: code:addons/web_dashboard_tile/static/src/js/custom_js.js:61
@ -74,8 +120,51 @@ msgid "Filter name is required."
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,color:0
msgid "Kanban Color"
#: field:tile.tile,font_color:0
msgid "Font Color"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,field_function:0
msgid "Function"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,helper:0
msgid "Helper Text"
msgstr ""
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Maximum"
msgstr ""
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:76
#, python-format
msgid "Maximum value of '%s'"
msgstr ""
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Median"
msgstr ""
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:85
#, python-format
msgid "Median value of '%s'"
msgstr ""
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Minimum"
msgstr ""
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:73
#, python-format
msgid "Minimum value of '%s'"
msgstr ""
#. module: web_dashboard_tile
@ -83,6 +172,11 @@ msgstr ""
msgid "Model"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,sequence:0
msgid "Sequence"
msgstr ""
#. module: web_dashboard_tile
#. openerp-web
#: code:addons/web_dashboard_tile/static/src/js/custom_js.js:100
@ -90,6 +184,11 @@ msgstr ""
msgid "Success"
msgstr ""
#. module: web_dashboard_tile
#: selection:tile.tile,field_function:0
msgid "Sum"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,name:0
msgid "Tile Name"
@ -109,6 +208,12 @@ msgstr ""
msgid "Tile:"
msgstr ""
#. module: web_dashboard_tile
#: code:addons/web_dashboard_tile/tile.py:79
#, python-format
msgid "Total value of '%s'"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,user_id:0
msgid "User"
@ -121,13 +226,7 @@ msgstr ""
msgid "tile.tile"
msgstr ""
#. module: web_dashboard_tile
#: field:tile.tile,count:0
msgid "unknown"
msgstr ""
#. module: web_dashboard_tile
#: view:tile.tile:0
msgid "í"
msgstr ""

10
web_dashboard_tile/tile.py

@ -70,19 +70,19 @@ class tile(orm.Model):
desc = r.field_id.field_description
if r.field_function == 'min':
value = min(vals)
helper = _("Minimum value of '%s'" % desc)
helper = _("Minimum value of '%s'") % desc
elif r.field_function == 'max':
value = max(vals)
helper = _("Maximum value of '%s'" % desc)
helper = _("Maximum value of '%s'") % desc
elif r.field_function == 'sum':
value = sum(vals)
helper = _("Total value of '%s'" % desc)
helper = _("Total value of '%s'") % desc
elif r.field_function == 'avg':
value = sum(vals) / len(vals)
helper = _("Average value of '%s'" % desc)
helper = _("Average value of '%s'") % desc
elif r.field_function == 'median':
value = self.median(vals)
helper = _("Median value of '%s'" % desc)
helper = _("Median value of '%s'") % desc
res[r.id].update({
'computed_value': value,
'helper': helper,

Loading…
Cancel
Save