Hello everybody,
I want to place messages.properties file in the same directory as my cde dashboard.
For the moment I load i18n as this with a js file :
I try to use ${res:} but it was not working (I don't know exactly how res tag working in cde).
I found that :
we have two level of messages files in CDF
when used in dashboard global templates.
To use the internationalization support you've to use the CDF.i18n tag with the following syntax:
But this only work with xcdf but not wcdf.
Have you an other proposition, I'm very interested !
Thanks.
I want to place messages.properties file in the same directory as my cde dashboard.
For the moment I load i18n as this with a js file :
Code:
function loadBundles(lang) {
jQuery.i18n.properties({
name:'messages',
path:'/pentaho/content/pentaho-cdf/js/',
mode:'both',
language:lang,
});
}
I found that :
Quote:
we have two level of messages files in CDF
- Global message file: located in <biserver_home>/pentaho_solutions/system/pentaho_cdf/resources/languages> and useful
when used in dashboard global templates.
- Dashboard specific message file: located in <dashboard_home> they can be distributed together with single dashboard.
To use the internationalization support you've to use the CDF.i18n tag with the following syntax:
Code:
CDF.i18n(<message_key>)
Have you an other proposition, I'm very interested !
Thanks.