Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONDRIAN: Fix MONDRIAN-367, "i18n support in Mondrian XMLA". XMLA ser…
…ver now observes the 'locale' parameter, and if present, passes it to the underlying olap4j connection. Locale can be a LCID code per the XMLA spec (e.g. 1033) but can also be a locale name (e.g. 'en_US'). Add a mechanism to provide multiple translations of element captions & descriptions in a schema file. The mechanism uses annotations named '<prop>.<locale>' where '<prop>' is either 'caption' or 'description'. This mechanism is experimental and may be removed without notice in future versions of mondrian. (I have in mind a better way to create multi-locale schema files, without necessarily embedding all of these language strings in the schema file.) But anyway. The mechanism allows us to write a unit test that proves that the locale is getting through the XMLA layer. The mechanism applies to cube, dimension, hierarchy, level. I don't think it's possible to localize measures, members, named sets, properties just yet. Probably still need to change the olap4j-driver-for-xmla to pass the client olap4j connection's locale in XMLA requests. And this ain't gonna work at all if you use the legacy mondrian.olap API. [git-p4: depot-paths = "//open/mondrian/": change = 14504]
- Loading branch information
1 parent
1e11405
commit 18d6c3d
Showing
23 changed files
with
326 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.