Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Use i18n properties file in dashboard directory

$
0
0
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 :
Code:

function loadBundles(lang) {
            jQuery.i18n.properties({
                name:'messages',
                path:'/pentaho/content/pentaho-cdf/js/',
                mode:'both',
                language:lang,
            });
}

I try to use ${res:} but it was not working (I don't know exactly how res tag working in cde).

I found that :
Quote:

we have two level of messages files in CDF
  • Global message file: located in <biserver_home&gt;/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>)

But this only work with xcdf but not wcdf.

Have you an other proposition, I'm very interested !
Thanks.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>