From 04e5bfe61e209cbeb3f541e64c230a9da7d65d97 Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Fri, 12 Jan 2024 13:31:36 +0000 Subject: [PATCH] [I18N] gamification: ensure translation of orig motivational messages For some reason the demo data for some of the ranking motivational messages is different from their default motivational message (in data). Because of the way the `translate=html_translate` works, when the demo data was installed, the original motivational message was overwritten and therefore not exported in the .pot file so it could never be translated. Since we want both the demo and original messages translated, it's best that we add the original messages into the demo data so that it's not visible to users, but is still exported to the .pot file. closes odoo/odoo#150306 X-original-commit: 2f3aafe55ee39a3661477934f63b2a5c90f724a5 Signed-off-by: Louis Wicket (wil) Signed-off-by: Tiffany Chang (tic) --- .../data/gamification_karma_rank_demo.xml | 5 +++++ addons/gamification/i18n/gamification.pot | 20 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/addons/gamification/data/gamification_karma_rank_demo.xml b/addons/gamification/data/gamification_karma_rank_demo.xml index 44bd55151d3..b7d0e0b7ec6 100644 --- a/addons/gamification/data/gamification_karma_rank_demo.xml +++ b/addons/gamification/data/gamification_karma_rank_demo.xml @@ -1,8 +1,10 @@ + +
Reach the next rank and gain a very nice mug!
@@ -12,6 +14,7 @@ +
Reach the next rank and gain a very magic wand!
@@ -21,6 +24,7 @@ +
Reach the next rank and gain a very nice hat!
@@ -30,6 +34,7 @@ +
Reach the next rank and gain a very nice unicorn!
diff --git a/addons/gamification/i18n/gamification.pot b/addons/gamification/i18n/gamification.pot index 22d7b32bef0..fe8ec7cb73c 100644 --- a/addons/gamification/i18n/gamification.pot +++ b/addons/gamification/i18n/gamification.pot @@ -1815,6 +1815,16 @@ msgstr "" msgid "Ranks List" msgstr "" +#. module: gamification +#: model_terms:gamification.karma.rank,description_motivational:gamification.rank_master +msgid "Reach the next rank and become a Master!" +msgstr "" + +#. module: gamification +#: model_terms:gamification.karma.rank,description_motivational:gamification.rank_doctor +msgid "Reach the next rank and become a powerful user!" +msgstr "" + #. module: gamification #: model_terms:gamification.karma.rank,description_motivational:gamification.rank_bachelor msgid "Reach the next rank and gain a very magic wand!" @@ -1835,6 +1845,16 @@ msgstr "" msgid "Reach the next rank and gain a very nice unicorn!" msgstr "" +#. module: gamification +#: model_terms:gamification.karma.rank,description_motivational:gamification.rank_bachelor +msgid "Reach the next rank to improve your status!" +msgstr "" + +#. module: gamification +#: model_terms:gamification.karma.rank,description_motivational:gamification.rank_student +msgid "Reach the next rank to show the rest of the world you exist." +msgstr "" + #. module: gamification #: model:ir.model.fields.selection,name:gamification.selection__gamification_goal__state__reached msgid "Reached"