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

[LocalizingDynamicSchemaProcessor] why Mondrian Locale is not updating?

$
0
0
Hello,

I can't get the LocalizingDynamicSchemaProcessor working... I need some help, please, any hints will be highly appreciated:

I'm following this instructions, so I have updated my datasources.xml (in bold):
Code:

 
<DataSource>    <DataSourceName>Provider=Mondrian;DataSource=Pentaho</DataSourceName> 
    <DataSourceDescription>Pentaho BI Platform Datasources</DataSourceDescription> 
    <URL>http://localhost:8080/pentaho/Xmla?userid=joe&amp;password=password</URL> 
    <DataSourceInfo>Provider=mondrian</DataSourceInfo> 
    <ProviderName>PentahoXMLA</ProviderName> 
    <ProviderType>MDP</ProviderType> 
    <AuthenticationMode>Unauthenticated</AuthenticationMode> 
    <Catalogs>
      <Catalog name="SteelWheels">
        <DataSourceInfo>Provider=mondrian;DataSource=SampleData</DataSourceInfo> 
        <Definition>solution:steel-wheels/analysis/steelwheels.mondrian.xml</Definition>
      </Catalog> 
      <Catalog name="SampleData">
        <DataSourceInfo>Provider=mondrian;DataSource=SampleData</DataSourceInfo> 
        <Definition>solution:steel-wheels/analysis/SampleData.mondrian.xml</Definition>
      </Catalog> 
      <Catalog name="mySchema">
<DataSourceInfo>
    Provider=mondrian;
    DataSource=myConnection;
    Locale=en;
    DynamicSchemaProcessor=mondrian.i18n.LocalizingDynamicSchemaProcessor;
    UseContentChecksum=true
</DataSourceInfo> 

        <Definition>solution:/mySolution/schema.xml</Definition>
      </Catalog>
    </Catalogs>
</DataSourceInfo>

and mondrian.properties with: mondrian.rolap.localePropFile=com.pentaho.messages.MondrianMessages

I've created corresponding 'MondrianMessages.properties, MondrianMessages_en.properties & MondrianMessages_es.properties'
in \biserver-ce\tomcat\webapps\pentaho\WEB-INF\classes\com\pentaho\messages

So far so good. If I explore my schema/cube with saiku i see the captions corresponding to 'en' locale. Nice. Problem occurs when after changing my locale to 'es' in web browser (i also restart pentaho server, and update Mondrian caché) Mondrian continues to use the 'Locale=en' defined in datasources.xml.

It seems that the LocalizingDynamicSchemaProcessor is not changing it with the current brownser locale. PUC is properly updated with spanish captions. Any tips?

I've been testing this for a while... and if i change datasources.xml from 'Locale=en' to 'Locale=es' (and after that I restart pentaho) then Mondrian is taking spanish captions fine.

why isn't mondrian.i18n.LocalizingDynamicSchemaProcessor working? There is no errors on pentaho/mondrian logs. Maybe is this LocalizingDynamicSchemaProcessor not included in pentaho CE 4.8 by default?

Regards.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



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