In a Report widget on a collection I have a column configured to translate an entry in the collection.
The collection is populated as follows
[{"name":"id_lang_heading","id":"e3e0a36f-2f6d-4b46-8782-e0404d6b4ac2","count_label":"Tre","value":"val","count_value":"counter_inter_3"}]
The value is the Entry ID defined in the App Translator, and the column Javascript is as follows
${P_quoted(i18n('[[name]]','[[name]]'))}
The report does not show the translation, but the default value instead, which is id_lang_heading.
In another column when I hard code the parameters it shows the translation I need.
${P_quoted(i18n('id_lang_heading','Default Lang Heading Text'))}
The same thing occurs in Javascript located in a Javascript widget, hard coded parameters perform the translation required, while parameters display the default, even if the default itself is a parameter.
Shows correct transaltion
alert("${ i18n('id_lang_heading', 'Default Lang Heading Text') }");
Shows default text
var id = "id_lang_heading";
var def = "Default Lang Heading Text";
var inter2 = "${i18n('" + id + "','" + def + "'" + ")}";
alert("inter2 " + inter2);
My requirement is to be able to save responses from custom lists or other inputs from the user, which could be saved in a collection, and display the responses in the correct language from a dictionary configured using the App Translator.
Cheers Rocco DeNino
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/5e564136-116a-4c5d-bdef-e9b215cbb525%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CADHrCayYDf3z3z5NGpheKfjrpw7ngp5QcWrHEtXtCo1pUdfB%2Bg%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/1Ngzj4jjRDE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CALU-SgoMu_wjkDn87BtwqmGu0JzdrA53z%2Bf5%3DB55cEyieEjq0A%40mail.gmail.com.