私はBIRTレポートエンジンを使用しており、現在のタスクはレポートの国際化を実装することです。Webviewerを使用してPDFレポートを生成およびダウンロードしています。レポートの生成に使用するロケールを指定できるパラメーター(__locale)があります。これまでのところ、すべてが正常に機能しています。
ただし、実装できなかった追加の要件があります。httpパラメータで設定されたロケールに加えて、ある種のフォールバックロケールを指定する可能性もあるはずです。
Take the following example: There are two property-files common_en_US.properties and common_en_GB.properties. The first locale to be used should be en_GB (__locale=en_GB). Everything works fine if the common_en_GB.properties file exist. But I would also like to tell BIRT to use common_en_US.properties if the en_GB-file cannot be found, which does not work as expected.
I tried to solve this by manually setting the Java default locale before executing BIRT because I thought that BIRT would use the Java mechanism to resolve localized strings. Unfortunately this attempt does not work.
Is there a different way to do what I would like to do? Is it possible to do something like that at all?
Thanks a lot! Johannes