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 @@
domsugar("a", {
"class": "help",
"target": "_blank",
"data-i18n": contextual_help_list[i]["data-i18n"],
"href": contextual_help_list[i].href,
"text": contextual_help_list[i].title
})])
......
......@@ -255,7 +255,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1001.29209.47273.32204</string> </value>
<value> <string>1001.36662.17855.30088</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -273,7 +273,7 @@
</tuple>
<state>
<tuple>
<float>1657231371.16</float>
<float>1657677595.88</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -121,6 +121,8 @@ elif context.getPortalType() == "Organisation Module":
# Translate titles
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'])
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