Hello,
is there any solution to translate TEXT in dashboard?
I have multi language application and i would like to change text depands to user language.
Hello,
is there any solution to translate TEXT in dashboard?
I have multi language application and i would like to change text depands to user language.
Hi Robert,
I'm not aware of such an option.
We did achieve it with some JavaScript. I will ask tomorrow whether I can share it on my blog along with another neat snippet we use in our Dashboards. :)
Best regards,
Daniel
Hi,
Use html instead of textbox.
You can get the language variable : window.initModel.userLang
and set the appropriate content with a script.
Hi,
Use html instead of textbox.
You can get the language variable : window.initModel.userLang
and set the appropriate content with a script.
Could you send me example HTML code with this solution?
Could you send me example HTML code with this solution?
for example:
<script>
var langUserValue = window.initModel.userLang;
switch (langUserValue) {
case "pl-PL":
document.getElementById('dashboard').innerHTML = "<span style='font-size: 24px;font-family:Tahoma;'><strong>Jakiś tekst</strong></span>";
break;
case "en-US":
document.getElementById('dashboard').innerHTML = "<span style='font-size: 24px;font-family:Tahoma;'><strong>Sonme text</strong></span>";
break;
}
</script>
<Div id='dashboard'>default value</div>