Jump to content
We've recently updated our Privacy Statement, available here ×
  • Report export options are not localized correctly


    stasp

    Issue:

    You may hav noticed that the export option messages use the default locale of the browser and not the JR Server locale as selected at login time (in case the locales are different, of course).

    [toc]

    For example:

    Let's say your default locale is English (includes OS and browser locale). Now log in selecting different locale (German, French, etc.) You should see the menues and messages localized after login. Now run any report and click on "Export" button to see the export options. You would expect the export options to localized like the rest of UI (to the language you selected at login); however it is still in English (which is the browser locale).


    Resolution:

    As a workaround you can edit WEB-INF/jsp/modules/viewReport/DefaultJasperViewerState.jsp and

    replace the following lines

    String descriptionMessage = 
    messageSource.getMessage(exporter.getDescriptionKey(), null, 
    request.getLocale());

    with

    String descriptionMessage = 
    messageSource.getMessage(exporter.getDescriptionKey(), null, 
    org.springframework.web.servlet.support.RequestContextUtils.getLocale(request));

    Ref. Case #00026037 -- 14:59, 5 July 2012 (UTC)  


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...