Internationalizing opentaps Analytics

From Opentaps Wiki

Jump to: navigation, search

The translations of the on-screen UI labels for opentaps analytics are in pentaho/opentaps/ as Java .properties files. Currently, there is one set for English (pentaho/opentaps/message.properties) and one set for French (pentaho/opentaps/messages_fr.properties). You can add additional translations in this directory by copying one of these properties files, changing the suffix after "messages" to that of your locale, and translating all the labels in the file.

To use the labels in one of your Jasper reports .jrxml files, you can refer to to the label with $R{...} notation, like the following:

  <textFieldExpression   class="java.lang.String"><![CDATA[$R{CommonTotal}]]></textFieldExpression>

Since the report generator uses Jasper reports as well, you can use the same notation when specify reports with it:

   <maincolumnheader><![CDATA[$R{ColumnProductNameAndIdentifications}]]></maincolumnheader>

To use the labels in a Pentaho xaction file, you can refer to it with %:

   <description>%CustomerLifetimeOrders-description</description>

If you need to test the labels from iReport, you can add analytics/pentaho/pentaho.war/WEB-INF/classes as a folder in the classpath and select the locale.



© 2008-2009 Open Source Strategies, Inc. Development of this documentation site is sponsored by Open Source Strategies, Inc.
Help support opentaps with a subscription to this documentation site.



Help support opentaps with a subscription to this documentation site.