Giter Site home page Giter Site logo

Comments (3)

speckyspooky avatar speckyspooky commented on June 27, 2024

I have tested your report and I cannot confirm your issue.
Because I can create with your report the switch between EN & DE.

I switch the report local on the report in the beforeFactory()-method.

importPackage(Packages.java.util);
var lc = new Locale("de_DE");  //  var lc = new Locale("en_US");
reportContext.getDesignHandle().setStringProperty("locale", lc);

The only thing what I have changed is that you havn't added the default local file correctly on the source side.

The configuration and beforeFactory

2024-01-26 22_22_41-runtime-birt-all-in-one - C__Users_gutma_Downloads_PsaRptPrsIntProSal_PSA_RPT_PR

Result of your report EN & DE

2024-01-26 22_23_30-BIRT Report Viewer – Mozilla Firefox

Here is your report version little bit changed

PsaRptPrsIntProSal-locale-example.zip

from birt.

speckyspooky avatar speckyspooky commented on June 27, 2024

Please test the changes from your side but I cannot see an problem because it works correctly on header.
Please test the version and the footer version. I will close the issue but we can reopen it later.

If you have further questions we can start a discussion stream.

from birt.

reiner-killet avatar reiner-killet commented on June 27, 2024

Hi,
the problem I described only appears when there is a mismatch between template name and ressource file name.
=> You can close this ticket.
In the RCP designer only the ressource file(s) entered for report object have an impact on the translation.
In case of 2 ressource files the upper one wins.
In the runtime the the ressource file(s) entered for report object are completely ignores.
Here, the translation file is programmatically set.
Thanks, Reiner

from birt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.