Error in Localization? [message #890231] |
Thu, 21 June 2012 14:22 |
Dnns . Messages: 30 Registered: May 2012 |
Member |
|
|
Hi,
it seems, that there is an Error/Bug in the Localization.
In my report I use 2 property files with texts. One is in english, and one in german. So in most cases everything works fine. My PC is in german, so usually eclipse uses the german locales. Then i edit the settings, and changed it to english. In the report, and the parameter, everything is in english, beside the Parameter group. That's the only thing, which uses the text from the german properties file.
After this i deployed it to the server for testing. The server is in english, so normally the english texts are used. then i added the parameter "__locale=de" to the URL. All texts are in german. besides the parameter group. This is english (the same for the helptext of the parameter group.
In the next step i tried to create a new parameter group... the same... also in a new report. Everywhere the same.
Do you think its a configuration mistake? Or is there perhaps a bug in BIRT? I am using Version 3.7.2
Dnns
Edit: I've got a further question: How can i have influence in the "default" *.properties-file? i ask. because i tried a locale, which doesn't exist on the server (i used __locale=ru, but ther is no *_ru.properties). Instead of using the servers locale, it uses german.
[Updated on: Thu, 21 June 2012 14:35] Report message to a moderator
|
|
|
Re: Error in Localization? [message #890313 is a reply to message #890231] |
Thu, 21 June 2012 21:09 |
|
I believe this was a bug that just got fixed about a week ago:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=365139
Jason
On 6/21/2012 10:22 AM, Dnns . wrote:
> Hi,
> it seems, that there is an Error/Bug in the Localization.
>
> In my report I use 2 property files with texts. One is in english, and
> one in german. So in most cases everything works fine. My PC is in
> german, so usually eclipse uses the german locales. Then i edit the
> settings, and changed it to english. In the report, and the parameter,
> everything is in english, beside the Parameter group. That's the only
> thing, which uses the text from the german properties file. After this
> i deployed it to the server for testing. The server is in english, so
> normally the english texts are used. then i added the parameter
> "__locale=de" to the URL. All texts are in german. besides the parameter
> group. This is english (the same for the helptext of the parameter group.
> In the next step i tried to create a new parameter group... the same...
> also in a new report. Everywhere the same.
> Do you think its a configuration mistake? Or is there perhaps a bug in
> BIRT? I am using Version 3.7.2
>
> Dnns
|
|
|
|
|
|
Re: Error in Localization? [message #891531 is a reply to message #890589] |
Mon, 25 June 2012 07:34 |
Dnns . Messages: 30 Registered: May 2012 |
Member |
|
|
I have a further question: Why is the report as default in german, if i don't add the __locale parameter to the url?
Edit: I found the answer to my question.
Quote:
"__locale" specifies the locale for the specific operation. Note that this will override the default locale. Order of precedence is as follows:
__locale parameter.
Locale from client browser.
Locale web.xml setting.
Locale for the application server.
[Updated on: Mon, 25 June 2012 12:08] Report message to a moderator
|
|
|
Re: Error in Localization? [message #891765 is a reply to message #891531] |
Mon, 25 June 2012 20:01 |
|
Do you have a locale set in the preferences? If not set it should be
using your jvm default locale.
Jason
On 6/25/2012 3:34 AM, Dnns . wrote:
> I have a further question: Why is the report as default in german, if i
> don't add the __locale parameter to the url?
|
|
|
Re: Error in Localization? [message #891813 is a reply to message #891765] |
Tue, 26 June 2012 06:27 |
Dnns . Messages: 30 Registered: May 2012 |
Member |
|
|
In which preferences?
Everything is ok. If you have a look at my Update to my previous Post, the order is ok.
Dnns
Edit: Ok it seems, there is an error. For testing purpose i just installed a dutch broweser. If the order, i postet before is right, the birtviewer should take the locale from web.xml, or from JVM. I have a german and an english *.properties file. If i start the report from the dutch browser, neither the german nor the english texts are shown. the webviewer shows the names of the elements. Regarding the BIRT Homepage(I would have postet the link, but I am currently not allowed to do this) this should be as in my previous post.
[Updated on: Tue, 26 June 2012 09:40] Report message to a moderator
|
|
|
Re: Error in Localization? [message #891933 is a reply to message #891813] |
Tue, 26 June 2012 15:50 |
|
First check the advanced property of the report. Select the report
background, then click on the advanced item in the properties view and
then look for locale. Is it set? If so you can delete it. Next check
the designer preferences.
Window->preferences->Report Design->Preview
Look at the drop down box "Choose your locale"
Jason
On 6/26/2012 2:27 AM, Dnns . wrote:
> In which preferences?
>
> Everything is ok. If you have a look at my Update to my previous Post,
> the order is ok.
>
> Dnns
|
|
|
|
Re: Error in Localization? [message #892044 is a reply to message #892014] |
Wed, 27 June 2012 00:30 |
|
You are correct but in the web.xml you can set the default locale as well.
Jason
On 6/26/2012 4:20 PM, Dnns . wrote:
> Hi,
> the error i described is in the web viewer, deployed on the server. So i
> think your second suggestion with the preferences will take no effect,
> only for preview.
>
> Dnns
|
|
|
Re: Error in Localization? [message #892197 is a reply to message #892044] |
Wed, 27 June 2012 11:36 |
Dnns . Messages: 30 Registered: May 2012 |
Member |
|
|
In my web.xml stands the following:
<context-param>
<param-name>BIRT_VIEWER_LOCALE</param-name>
<param-value>en-US</param-value>
</context-param>
So if the browser is in a unknown language, i think it should use the english version.
I solved the problem now by adding a properties file withoug any language in the name. so now i have the followin files.
- name.properties
- name_de.properties
- name_en.properties
So if the viewer doesn't know the language, it uses the first file, which is the same as the _en file
[Updated on: Wed, 27 June 2012 11:37] Report message to a moderator
|
|
|
|
|
|
Re: Error in Localization? [message #894082 is a reply to message #893873] |
Fri, 06 July 2012 14:51 |
|
This still appears to be a bug. Can you reopen the bug?
Jason
On 7/5/2012 2:51 PM, Dnns . wrote:
> Hi,
> i did both. I downloaded the bundle of designer and eclipse juno.
> nothing changed. After that i updated the webviewer on the server....
> the same... the parametergroup is in the vm-locale, the rest is in the
> broswer language.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06060 seconds