diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-07-26 19:55:44 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-07-26 19:55:44 +0200 |
| commit | 4f501348c41f38befec5374e0e4b50b30c0e6989 (patch) | |
| tree | 837b3743b1b77da47451aa4b9b393ec517d5b6b1 /addons/gamification | |
| parent | 8a497cdd5ff4cf93067d0519a9839ea6ec9adc21 (diff) | |
| parent | 46e1104ce12e3c31722d2f84ca79b78055e925d6 (diff) | |
[MERGE] forward port branch saas-16 up to 46e1104ce12
Diffstat (limited to 'addons/gamification')
| -rw-r--r-- | addons/gamification/i18n/gamification.pot | 362 |
1 files changed, 264 insertions, 98 deletions
diff --git a/addons/gamification/i18n/gamification.pot b/addons/gamification/i18n/gamification.pot index a1b24f9137b..2db8c357f54 100644 --- a/addons/gamification/i18n/gamification.pot +++ b/addons/gamification/i18n/gamification.pot @@ -4,10 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.saas~14\n" +"Project-Id-Version: Odoo Server 10.saas~16\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-02-15 09:50+0000\n" -"PO-Revision-Date: 2017-02-15 09:50+0000\n" +"POT-Creation-Date: 2017-07-25 10:05+0000\n" +"PO-Revision-Date: 2017-07-25 10:05+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,6 +16,246 @@ msgstr "" "Plural-Forms: \n" #. module: gamification +#: model:mail.template,body_html:gamification.simple_report_template +msgid "\n" +" \n" +"% set record = ctx.get('record')\n" +"% set company = record and record.company_id or user.company_id\n" +"% set challenge_lines = ctx.get('challenge_lines', []) \n" +"<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"font-family: 'Helvetica'; background-color: #EEE; border-collapse: collapse;\">\n" +"<tr>\n" +" <td valign=\"top\" align=\"center\">\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"600\" style=\"margin: 0 auto; width: 600px;\">\n" +" <tr><td>\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n" +" <tr>\n" +" <td valign=\"middle\" align=\"left\" style=\"padding:30px 15px;\">\n" +" <img width=\"90\" src=\"/logo.png?company=${user.company_id.id}\" style=\"width:80px;\"/>\n" +" </td>\n" +" % if object.visibility_mode == 'ranking':\n" +" <td style=\"padding:15px;\">\n" +" <p style=\"font-size:20px;color:#666666;\" align=\"right\">Leaderboard</p>\n" +" </td>\n" +" % endif\n" +" </tr>\n" +" </table>\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#fff\" style=\"background-color:#fff;\">\n" +" <tr><td style=\"padding: 15px;\">\n" +" % if object.visibility_mode == 'personal':\n" +" <span style=\"color:#666666;font-size:13px;\">Here is your current progress in the challenge <strong>${object.name}</strong>.</span>\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"margin-top:20px;\">\n" +" <tr>\n" +" <td align=\"center\">\n" +" <p style=\"font-size:27px;color:#666666;\">Personal Performance</p>\n" +" </td>\n" +" </tr>\n" +" </table>\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"margin-top:30px;color:#666666;\">\n" +" <thead>\n" +" <tr style=\"color:#9A6C8E; font-size:12px;\">\n" +" <th align=\"left\" style=\"padding-bottom: 0px;width:40%;text-align:left;\">Goals</th>\n" +" <th style=\"width:20%;text-align:right;\" align=\"left\">Target</th>\n" +" <th style=\"width:20%;text-align:right;\" align=\"right\">Current</th>\n" +" <th style=\"width:20%;text-align:right;\" align=\"right\">Completeness</th>\n" +" </tr>\n" +" <tr>\n" +" <td colspan=\"5\" style=\"height:1px;background-color:#9A6C8E;\"></td>\n" +" </tr>\n" +" </thead>\n" +" <tbody>\n" +" % for line in challenge_lines:\n" +" <tr\n" +" % if line['completeness'] >= 100:\n" +" style=\"font-weight:bold;\"\n" +" % endif\n" +" >\n" +" <td style=\"padding: 20px 0;\" align=\"left\">\n" +" ${line['name']}\n" +" % if line['suffix'] or line['monetary']:\n" +" (${line['full_suffix']})\n" +" % endif\n" +" </td>\n" +" <td style=\"padding: 20px 0;\" align=\"right\">${\"%.2f\" % line['target']}\n" +" % if line['suffix']:\n" +" ${line['suffix']}\n" +" % endif\n" +" </td>\n" +" <td style=\"padding: 20px 0;\" align=\"right\">${\"%.2f\" % line['current']}\n" +" % if line['suffix']:\n" +" ${line['suffix']}\n" +" % endif\n" +" </td>\n" +" <td style=\"padding: 20px 0;font-size:25px;color:#9A6C8E;\" align=\"right\"><strong>${line['completeness']| int}%</strong></td>\n" +" </tr>\n" +" <tr>\n" +" <td colspan=\"5\" style=\"height:1px;background-color:#e3e3e3;\"></td>\n" +" </tr>\n" +" % endfor \n" +" </tbody>\n" +" </table> \n" +" % else: \n" +" <span style=\"color:#A8A8A8;font-size:13px;\">\n" +" The following message contains the current progress for the challenge <strong>${object.name}</strong>.\n" +" </span> \n" +" % for line in challenge_lines:\n" +" <!-- Header + Button table -->\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"style=\"margin-top:35px;\">\n" +" <tr>\n" +" <td width=\"50%\">\n" +" <p style=\"font-size:22px;color:#666666;\">Top Achievers for goal <strong>${line['name']}</strong></p>\n" +" </td>\n" +" </tr>\n" +" </table>\n" +" <!-- Podium -->\n" +" % if len(line['goals'])>2:\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"margin-top:10px;\">\n" +" <tr><td style=\"padding:0 30px;\">\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n" +" <tr>\n" +" % set top_goals = [line['goals'][1], line['goals'][0], line['goals'][2]]\n" +" % for goal in top_goals:\n" +" <td align=\"center\" style=\"width:32%;\">\n" +" % if loop.index == 1:\n" +" % set extra_div = '<div style=\"height:40px;\"></div>'\n" +" % set heightA = 95\n" +" % set heightB = 75\n" +" % set bgColor = '#b898b0'\n" +" % set fontSize = 50\n" +" % set podiumPosition = '2'\n" +" % elif loop.index == 2:\n" +" % set extra_div = ''\n" +" % set heightA = 55\n" +" % set heightB = 115\n" +" % set bgColor = '#9A6C8E'\n" +" % set fontSize = 85\n" +" % set podiumPosition = '1'\n" +" % elif loop.index == 3:\n" +" % set extra_div = '<div style=\"height:60px;\"></div>'\n" +" % set heightA = 115\n" +" % set heightB = 55\n" +" % set bgColor = '#c8afc1'\n" +" % set fontSize = 35\n" +" % set podiumPosition = '3'\n" +" % endif\n" +" <div style=\"margin:0 3px 0 3px;height:220px;\">\n" +" <div style=\"height:${heightA}px;\">\n" +" ${extra_div | safe} \n" +" <div style=\"height:55px;\">\n" +" <img style=\"margin-bottom:5px;width:50px;height:50px;border-radius:50%;\" src=\"/web/image?model=res.users&field=image_small&id=${goal['user_id']}\" alt=\"\"/>\n" +" </div> \n" +" <div align=\"center\" style =\"color:${bgColor};\">\n" +" ${goal['name']}\n" +" </div \n" +" </div>\n" +" <div style=\"background-color:${bgColor | safe};height:${heightB}px;\">\n" +" <strong><span style=\"color:#fff;font-size:${fontSize}px;\">${podiumPosition | safe}</span></strong>\n" +" </div>\n" +" <div style=\"height:30px;\">\n" +" <p style=\"color:#9A6C8E;font-size:20px;margin-top:10px;\">\n" +" ${\"%.2f\" % goal['current']}\n" +" % if line['suffix'] or line['monetary']:\n" +" ${line['full_suffix']}\n" +" % endif\n" +" </p>\n" +" </div>\n" +" </div>\n" +" </td>\n" +" % endfor\n" +" </tr>\n" +" </table>\n" +" </td>\n" +" </tr>\n" +" </table>\n" +" % endif\n" +" <!-- data table -->\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"margin-bottom:5px\">\n" +" <tr>\n" +" <td>\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"margin-top:30px;margin-bottom:5px;color:#666666;\">\n" +" <thead>\n" +" <tr style=\"color:#9A6C8E; font-size:12px;\">\n" +" <th style=\"width:10%;text-align:center;\">Rank</th>\n" +" <th style=\"width:15%;text-align:left;\">Name</th>\n" +" <th style=\"width:30%;text-align:right;\">Performance \n" +" % if line['suffix']:\n" +" (${line['suffix']})\n" +" % elif line['monetary']:\n" +" (${company.currency_id.symbol})\n" +" % endif\n" +" </th>\n" +" <th style=\"width:30%;text-align:right;\"\">Completeness</th>\n" +" </tr>\n" +" <tr>\n" +" <td colspan=\"5\" style=\"height:1px;background-color:#9A6C8E;\"></td>\n" +" </tr>\n" +" </thead>\n" +" <tbody>\n" +" % for goal in line['goals']:\n" +" <tr>\n" +" % set tdBgColor = '#fff'\n" +" % set tdColor = 'gray'\n" +" % set mutedColor = '#AAAAAA'\n" +" % set tdPercentageColor = '#9A6C8E'\n" +" <td width=\"10%\" align=\"center\" valign=\"middle\" style=\"background-color:${tdBgColor};padding :5px 0;font-size:20px;\">${goal['rank']+1}\n" +" </td>\n" +" <td width=\"15%\" align=\"left\" valign=\"middle\" style=\"background-color:${tdBgColor};padding :5px 0;font-size:13px;\">${goal['name']}</td>\n" +" <td width=\"20%\" align=\"right\" style=\"background-color:${tdBgColor};padding:5px 0;line-height:1;\">${\"%.2f\" % goal['current']}<br/><span style=\"font-size:13px;color:${mutedColor};\">on ${\"%.2f\" % line['target']}</span>\n" +" </td>\n" +" <td width=\"20%\" style=\"color:${tdPercentageColor};background-color:${tdBgColor};padding-right:15px;font-size:22px;\" align=\"right\"><strong>${goal['completeness'] | int}%</strong></td>\n" +" </tr>\n" +" <tr>\n" +" <td colspan=\"5\" style=\"height:1px;background-color:#DADADA;\"></td>\n" +" </tr>\n" +" % endfor\n" +" </tbody>\n" +" </table>\n" +" </td>\n" +" </tr>\n" +" </table> \n" +" % endfor\n" +" % endif\n" +" </td></tr>\n" +" </table>\n" +" <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"padding: 15px; color: #666666;margin-bottom: 5px;\">\n" +" <tr>\n" +" <td align=\"center\" style=\"min-width: 590px;\">\n" +" <table width=\"580\" border=\"0\" cellpadding=\"0\" style=\"min-width: 580px; font-size: 12px;\">\n" +" <tr>\n" +" <td valign=\"middle\" align=\"left\" style=\"padding-top: 10px; padding-bottom: 10px;\">\n" +" ${company.name}<br/>\n" +" ${company.phone or ''}\n" +" </td>\n" +" <td valign=\"middle\" align=\"right\" style=\"padding-top: 10px; padding-bottom: 10px;\">\n" +" % if company.email:\n" +" <a href=\"mailto:${company.email}\" style=\"text-decoration:none; color: #666666;\">${company.email}</a><br/>\n" +" % endif\n" +" % if company.website:\n" +" <a href=\"${company.website}\" style=\"text-decoration:none; color: #666666;\">\n" +" ${company.website}\n" +" </a>\n" +" % endif\n" +" </td>\n" +" </tr>\n" +" </table>\n" +" </td>\n" +" </tr> \n" +" <tr>\n" +" <td align=\"center\">\n" +" Powered by <a target=\"_blank\" href=\"https://www.odoo.com\">Odoo</a>.\n" +" </td>\n" +" </tr>\n" +" </table>\n" +" </td></tr>\n" +" </table>\n" +" </td>\n" +"</tr>\n" +"</table>\n" +" \n" +"\n" +"" +msgstr "" + +#. module: gamification #: model:mail.template,body_html:gamification.email_template_goal_reminder msgid "\n" " <p>\n" @@ -27,87 +267,13 @@ msgid "\n" msgstr "" #. module: gamification -#: model:mail.template,body_html:gamification.simple_report_template -msgid "\n" -"<p>\n" -" <strong>${object.name}</strong>\n" -"</p>\n" -"<p class=\"oe_grey\">The following message contains the current progress for the challenge ${object.name}</p>\n" -"\n" -"% if object.visibility_mode == 'personal':\n" -" <table width=\"100%\" border=\"1\">\n" -" <tr>\n" -" <th>Goal</th>\n" -" <th>Target</th>\n" -" <th>Current</th>\n" -" <th>Completeness</th>\n" -" </tr>\n" -" % for line in ctx[\"challenge_lines\"]:\n" -" <tr\n" -" % if line['completeness'] >= 100:\n" -" style=\"font-weight:bold;\"\n" -" % endif\n" -" >\n" -" <td>${line['name']}</td>\n" -" <td>${line['target']}\n" -" % if line['suffix']:\n" -" ${line['suffix']}\n" -" % endif\n" -" </td>\n" -" <td>${line['current']}\n" -" % if line['suffix']:\n" -" ${line['suffix']}\n" -" % endif\n" -" </td>\n" -" <td>${line['completeness']} %</td>\n" -" </tr>\n" -" % endfor\n" -" </table>\n" -"% else:\n" -" % for line in ctx[\"challenge_lines\"]:\n" -" <table width=\"100%\" border=\"1\">\n" -" <tr>\n" -" <th colspan=\"4\">${line['name']}</th>\n" -" </tr>\n" -" <tr>\n" -" <th>#</th>\n" -" <th>Person</th>\n" -" <th>Completeness</th>\n" -" <th>Current</th>\n" -" </tr>\n" -" % for goal in line['goals']:\n" -" <tr\n" -" % if goal.completeness >= 100:\n" -" style=\"font-weight:bold;\"\n" -" % endif\n" -" >\n" -" <td>${goal['rank']}</td>\n" -" <td>${goal['name']}</td>\n" -" <td>${goal['completeness']}%</td>\n" -" <td>${goal['current']}/${line['target']}\n" -" % if line['suffix']:\n" -" ${line['suffix']}\n" -" % endif\n" -" </td>\n" -" </tr>\n" -" % endfor\n" -" </table>\n" -"\n" -" <br/><br/>\n" -"\n" -" % endfor\n" -"% endif\n" -" " -msgstr "" - -#. module: gamification -#: code:addons/gamification/models/challenge.py:586 +#: code:addons/gamification/models/challenge.py:587 #, python-format msgid "%s has joined the challenge" msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:595 +#: code:addons/gamification/models/challenge.py:596 #, python-format msgid "%s has refused the challenge" msgstr "" @@ -149,25 +315,25 @@ msgid "<?xml version=\"1.0\"?>\n" msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:652 +#: code:addons/gamification/models/challenge.py:653 #, python-format msgid "<br/> %(rank)d. %(user_name)s - %(reward_name)s" msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:649 +#: code:addons/gamification/models/challenge.py:650 #, python-format msgid "<br/>Nobody has succeeded to reach every goal, no badge is rewarded for this challenge." msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:647 +#: code:addons/gamification/models/challenge.py:648 #, python-format msgid "<br/>Reward (badge %s) for every succeeding user was sent to %s." msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:657 +#: code:addons/gamification/models/challenge.py:658 #, python-format msgid "<br/>Special rewards were sent to the top competing users. The ranking for this challenge is :" msgstr "" @@ -194,7 +360,7 @@ msgstr "" #. module: gamification #: model:ir.model.fields,help:gamification.field_gamification_challenge_line_condition #: model:ir.model.fields,help:gamification.field_gamification_goal_definition_condition -#: model:ir.model.fields,help:gamification.field_gamification_goal_definition_condition_3164 +#: model:ir.model.fields,help:gamification.field_gamification_goal_definition_condition_3233 msgid "A goal is considered as completed when the current value is compared to the value to reach" msgstr "" @@ -328,7 +494,7 @@ msgid "Can not grant" msgstr "" #. module: gamification -#: code:addons/gamification/models/goal.py:409 +#: code:addons/gamification/models/goal.py:410 #, python-format msgid "Can not modify the configuration of a started goal" msgstr "" @@ -525,7 +691,7 @@ msgid "Defined how will be computed the goals. The result of the operation will msgstr "" #. module: gamification -#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_description_3173 +#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_description_3242 msgid "Definition Description" msgstr "" @@ -724,7 +890,7 @@ msgstr "" #. module: gamification #: model:ir.model.fields,field_description:gamification.field_gamification_challenge_line_definition_id -#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_id_3175 +#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_id_3244 #: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_name #: model:ir.ui.view,arch_db:gamification.goal_search_view msgid "Goal Definition" @@ -755,7 +921,7 @@ msgstr "" #. module: gamification #: model:ir.model.fields,field_description:gamification.field_gamification_challenge_line_condition #: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_condition -#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_condition_3164 +#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_condition_3233 msgid "Goal Performance" msgstr "" @@ -1090,7 +1256,7 @@ msgid "No one, assigned through challenges" msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:664 +#: code:addons/gamification/models/challenge.py:665 #, python-format msgid "Nobody reached the required conditions to receive special badges." msgstr "" @@ -1256,7 +1422,7 @@ msgid "Responsible" msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:489 +#: code:addons/gamification/models/challenge.py:490 #, python-format msgid "Retrieving progress for personal challenge without user information" msgstr "" @@ -1421,7 +1587,7 @@ msgstr "" #. module: gamification #: model:ir.model.fields,field_description:gamification.field_gamification_challenge_line_definition_full_suffix #: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_suffix -#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_suffix_3169 +#: model:ir.model.fields,field_description:gamification.field_gamification_goal_definition_suffix_3238 msgid "Suffix" msgstr "" @@ -1446,7 +1612,7 @@ msgid "The action that will be called to update the goal value." msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:643 +#: code:addons/gamification/models/challenge.py:644 #, python-format msgid "The challenge %s is finished." msgstr "" @@ -1454,7 +1620,7 @@ msgstr "" #. module: gamification #: model:ir.model.fields,help:gamification.field_gamification_challenge_line_definition_full_suffix #: model:ir.model.fields,help:gamification.field_gamification_goal_definition_full_suffix -#: model:ir.model.fields,help:gamification.field_gamification_goal_definition_suffix_3169 +#: model:ir.model.fields,help:gamification.field_gamification_goal_definition_suffix_3238 msgid "The currency and suffix field" msgstr "" @@ -1474,7 +1640,7 @@ msgid "The day a new challenge will be automatically started. If no periodicity msgstr "" #. module: gamification -#: code:addons/gamification/models/goal.py:90 +#: code:addons/gamification/models/goal.py:91 #, python-format msgid "The domain for the definition %s seems incorrect, please check it.\n" "\n" @@ -1517,7 +1683,7 @@ msgid "The maximum number of time this badge can be sent per month per person." msgstr "" #. module: gamification -#: code:addons/gamification/models/goal.py:107 +#: code:addons/gamification/models/goal.py:108 #, python-format msgid "The model configuration for the definition %s seems incorrect, please check it.\n" "\n" @@ -1525,7 +1691,7 @@ msgid "The model configuration for the definition %s seems incorrect, please che msgstr "" #. module: gamification -#: code:addons/gamification/models/goal.py:104 +#: code:addons/gamification/models/goal.py:105 #, python-format msgid "The model configuration for the definition %s seems incorrect, please check it.\n" "\n" @@ -1662,7 +1828,7 @@ msgid "Update" msgstr "" #. module: gamification -#: code:addons/gamification/models/goal.py:444 +#: code:addons/gamification/models/goal.py:445 #, python-format msgid "Update %s" msgstr "" @@ -1735,7 +1901,7 @@ msgid "You can not grant a badge to yourself" msgstr "" #. module: gamification -#: code:addons/gamification/models/challenge.py:195 +#: code:addons/gamification/models/challenge.py:196 #, python-format msgid "You can not reset a challenge with unfinished goals." msgstr "" |
