Websphere Application Server 6.1 (localized): Override locale for console messages

蓝咒 提交于 2019-12-21 17:44:02

问题


I have installed RAD 7.5 (based on Eclipse Ganymede 3.4.0) in Spanish. I'm working with Websphere Application Server 6.1 (spanish too).

The problem I have is that all console messages appear in Spanish, but translation is, in my personal opinion, quite poor (especially since even the console errors are displayed in Spanish and it's difficult to find documentation about exact error messages).

I want to start the IDE in the original language (English) and I know that there is a command line switch -nl en that, placed beside eclipse executable path on program shortcut, serves for this purpose. But I'm still getting some resources' labels (e.g. "Tasks" tab) into spanish (tab says "Tareas"), also server console still displays messages in spanish.

[UPDATE: Yesterday the client for whom I work, changed my PC for a more powerful one, and the untranslated tabs problem does not occur anymore (the new PC has Windows 7 and the previous one was XP, maybe it's that)]

My question is: Does anyone know how I could get WAS console messages displayed 100% in English, overriding locale specified at setup time? Is there some command line switch that serves to get this? Is there any way to edit WAS config files to achieve this?

Note: It is impossible to reinstall RAD and WAS, because of some restrictions on my computer.

Thanks in advance.


回答1:


Web Console:

To change web console messages you have to set english as web browser's preferred language.

Log messages:

WebSphere logging/tracing mechanism are build upon Java's standard library ResourceBundle/Locale classes.
Localized messages are stored inside WebSphere jars (example: com.ibm.ws.naming.util.WsnMessages_es.class).
So to change the console language you have to change JVM default locale's language.

In WebSphere Console: [Application Server] \ Server Infrastructure \ Java and Process Management\ Process definition \ Java Virtual Machine \ Generic JVM arguments

Add parameter : -Duser.language=US

This method changes JVM's configuration so it can have impact on you application.



来源:https://stackoverflow.com/questions/5666916/websphere-application-server-6-1-localized-override-locale-for-console-messag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!