For the complete documentation index, see llms.txt. This page is also available as Markdown.

FR Localization

Localize your Schema ..

Workshop - FR Localization

x

x


  1. Start Schema Workbench:

Windows (Powershell):

Linux:

  1. Ensure Pentaho Server is running:

Follow the steps below to configure and deploy your localized model:

Tokenized Schema

This section provides specific implementation details for localizing the Classic Models Mondrian schema. Follow these steps to deploy a fully working French-English bilingual analytics solution.

The Classic Models schema is a sample ROLAP schema based on the Classic Models sample database, featuring:

  • Sales cube with multiple dimensions

  • Customers dimension (Territory, Customer Name)

  • Products dimension (Product Line, Vendor)

  • Multiple measures (Quantity, Sales, Order Count)

Here's the tokenized Classic Models Schema:

Add Tokens
  1. Add the following Tokens to the Classic Models schema.

  2. Save your schema - ClassicModels - localized.xml

  3. Publish your schema.

Classic Models Schema - Localization Tokens Table

All tokens follow the pattern: %{classicmodels.[component].[element].[property]}

Where:

  • component = schema, dimension, hierarchy, or measures

  • element = specific name (customers, products, territory, etc.)

  • property = caption or description

Schema Element
Attribute
Token

Schema

description

%{schema.description}

Schema

measuresCaption

%{measures.caption}

Dimension: CUSTOMERS

caption

%{dimension.customers.caption}

Dimension: CUSTOMERS

description

%{dimension.customers.description}

Hierarchy: Customers

allMemberCaption

%{dimension.customers.allmember.caption}

Hierarchy: Customers

caption

%{hierarchy.customers.caption}

Hierarchy: Customers

description

%{hierarchy.customers.description}

Level: Territory

caption

%{dimension.customers.territory.caption}

Level: Territory

description

%{dimension.customers.territory.description}

Level: Customer Name

caption

%{dimension.customers.customername.caption}

Level: Customer Name

description

%{dimension.customers.customername.description}

Dimension: PRODUCTS

caption

%{dimension.products.caption}

Dimension: PRODUCTS

description

%{dimension.products.description}

Hierarchy: Products

allMemberCaption

%{dimension.products.allmember.caption}

Hierarchy: Products

caption

%{hierarchy.products.caption}

Hierarchy: Products

description

%{hierarchy.products.description}

Level: Product Line

caption

%{dimension.products.line.caption}

Level: Product Line

description

%{dimension.products.line.description}

Level: Vendor

caption

%{dimension.products.vendor.caption}

Level: Vendor

description

%{dimension.products.vendor.description}

Measure: Sales

caption

%{measures.sales.caption}

MondrianMessages_[locale].properties

  1. Navigate to or create the following directory.

Windows (Powershell):

Linux:

  1. Download the properties files.

  1. Copy the files into the messages folder.

Windows (Powershell):

Linux:

  1. Check the files have been successfully copied.

Windows (Powershell):

Linux:

  1. x

  2. x

  3. x

Configuring mondrian.properties

  1. Navigate to: mondrian.properties

Windows (Powershell):

Linux:

  1. Add the locale property - add line at the bottom.

This points to your message bundle location (without language suffix).

  1. Save the mondrian.properties file

  1. Restart the Pentaho Server.

Windows (Powershell):

Linux:

Manage Data Source

  1. Login to the User Console as Admin > Manage Data Sources

The two following properties were added to the DataSourceInfo element. DynamicSchemaProcessor This property points to a fully qualified class name implementing mondrian.spi.DynamicSchemaProcessor. Dynamic schema processors are classes who filter the schema file contents and provide a filtered output to Mondrian's core. Mondrian comes with a dynamic schema processor who searches for tokens and replaces them with values from Java localization files. As a matter of fact, it is implemented with Java's standard localized messages framework.

UseContentChecksum This property tells Mondrian to maintain a checksum of the schema XML and expose it through mondrian.olap.Schema.getId(). This property is used by Pentaho Analyzer to detect changes in the schema and refresh its caches. Also note that enabling this feature will make Mondriancall the schema processor for every connection request. This means that your schema processor implementation is expected to perform caching when necessary to avoid unnecessary processing.

Last updated

Was this helpful?