Commit 6b359d6d authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Keep data-i18n on the link

    This help for UI tests be a bit translation independent.
parent aeed3e90
...@@ -209,6 +209,7 @@ ...@@ -209,6 +209,7 @@
domsugar("a", { domsugar("a", {
"class": "help", "class": "help",
"target": "_blank", "target": "_blank",
"data-i18n": contextual_help_list[i]["data-i18n"],
"href": contextual_help_list[i].href, "href": contextual_help_list[i].href,
"text": contextual_help_list[i].title "text": contextual_help_list[i].title
})]) })])
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1001.29209.47273.32204</string> </value> <value> <string>1001.36662.17855.30088</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1657231371.16</float> <float>1657677595.88</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -121,6 +121,8 @@ elif context.getPortalType() == "Organisation Module": ...@@ -121,6 +121,8 @@ elif context.getPortalType() == "Organisation Module":
# Translate titles # Translate titles
for contextual_help in contextual_help_list: for contextual_help in contextual_help_list:
# Preserve untranslated title for reference.
contextual_help['data-i18n'] = contextual_help['title']
contextual_help['title'] = context.Base_translateString(contextual_help['title']) contextual_help['title'] = context.Base_translateString(contextual_help['title'])
return json.dumps(contextual_help_list) return json.dumps(contextual_help_list)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment