You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sumedha rubasinghe <su...@gmail.com> on 2006/12/11 12:55:00 UTC
Re: [Axis2 v1.1] - i18n of error messages
Hi,
If a language file (eg. errors_de.properties) for a requested locale
(eg. German) is not available, the application should pick the
message from the default message file. (i.e. errors.properties)
rather than breaking the execution of code.
This is how i18n is handled in web application frameworks.
/sumedha
Ruchith Fernando wrote:
> Hi,
>
> Since your locale is DE you you will have to have
> "errors_de.properties" file available in the classpath in the
> "org.apache.rampart" package.
>
> Simply copy the content of this file [1] into the errors_de.properties
> file. Optionally you can translate messages :-)
>
> Thanks,
> Ruchith
>
> [1] https://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/errors.properties
>
> On 12/11/06, Daniel Wehrle <we...@daniel-wehrle.de> wrote:
>> Hi,
>>
>> I tried to do a little Axis2 sample on my German Windows. I connect to a
>> .Net web service using wssecurity,
>> so I use rampart for the UsernameToken.
>> But by sending a message I got an stack trace ending with:
>>
>> Caused by: _java.lang.RuntimeException_: Can't find bundle for base name
>> org.apache.rampart.errors, locale de_DE
>> at org.apache.rampart.RampartException.<clinit>(_RampartException.java:36_)
>>
>> What I am doing wrong?
>>
>>
>> Thanks
>> -- Daniel Wehrle
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org