You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "vinc.turco" <vi...@gmail.com> on 2009/09/01 17:42:20 UTC

locale issue: translating xmlbean error texts

Hi developers,
I need to translate xmlbeans error messages from english, how can I do that?
Is there something like a map <error_code, error_message> which can be
arbitrarily replaced?

Thanks, regards
Vincenzo
-- 
View this message in context: http://www.nabble.com/locale-issue%3A-translating-xmlbean-error-texts-tp25242711p25242711.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: locale issue: translating xmlbean error texts

Posted by Jacob Danner <ja...@gmail.com>.
The properties file is just a resource bundle so I think adding your own
properties file for your locale should work.
Here is a link that may help
http://java.sun.com/docs/books/tutorial/i18n/resbundle/index.html
-jacobd

On Wed, Sep 2, 2009 at 1:53 AM, vinc.turco <vi...@gmail.com> wrote:

>
> Hi Jacob, thanks for replying
> I would like to change the error messages directly in the jar, without
> recompiling everything from source.
> Which one is that?
>
> Thanks, regards
> Vincenzo
>
>
> Jacob Danner-2 wrote:
> >
> > The properties file containing the resource strings is located at
> > src\xmlpublic\org\apache\xmlbeans\message.properties (for EN)
> >
> > -jacobd
> >
> > On Tue, Sep 1, 2009 at 8:42 AM, vinc.turco <vi...@gmail.com> wrote:
> >
> >>
> >> Hi developers,
> >> I need to translate xmlbeans error messages from english, how can I do
> >> that?
> >> Is there something like a map <error_code, error_message> which can be
> >> arbitrarily replaced?
> >>
> >> Thanks, regards
> >> Vincenzo
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/locale-issue%3A-translating-xmlbean-error-texts-tp25242711p25242711.html
> >> Sent from the Xml Beans - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> >> For additional commands, e-mail: user-help@xmlbeans.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/locale-issue%3A-translating-xmlbean-error-texts-tp25242711p25253920.html
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>

Re: locale issue: translating xmlbean error texts

Posted by "vinc.turco" <vi...@gmail.com>.
Hi Jacob, thanks for replying
I would like to change the error messages directly in the jar, without
recompiling everything from source.
Which one is that?

Thanks, regards
Vincenzo


Jacob Danner-2 wrote:
> 
> The properties file containing the resource strings is located at
> src\xmlpublic\org\apache\xmlbeans\message.properties (for EN)
> 
> -jacobd
> 
> On Tue, Sep 1, 2009 at 8:42 AM, vinc.turco <vi...@gmail.com> wrote:
> 
>>
>> Hi developers,
>> I need to translate xmlbeans error messages from english, how can I do
>> that?
>> Is there something like a map <error_code, error_message> which can be
>> arbitrarily replaced?
>>
>> Thanks, regards
>> Vincenzo
>> --
>> View this message in context:
>> http://www.nabble.com/locale-issue%3A-translating-xmlbean-error-texts-tp25242711p25242711.html
>> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>> For additional commands, e-mail: user-help@xmlbeans.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/locale-issue%3A-translating-xmlbean-error-texts-tp25242711p25253920.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: locale issue: translating xmlbean error texts

Posted by Jacob Danner <ja...@gmail.com>.
The properties file containing the resource strings is located at
src\xmlpublic\org\apache\xmlbeans\message.properties (for EN)

-jacobd

On Tue, Sep 1, 2009 at 8:42 AM, vinc.turco <vi...@gmail.com> wrote:

>
> Hi developers,
> I need to translate xmlbeans error messages from english, how can I do
> that?
> Is there something like a map <error_code, error_message> which can be
> arbitrarily replaced?
>
> Thanks, regards
> Vincenzo
> --
> View this message in context:
> http://www.nabble.com/locale-issue%3A-translating-xmlbean-error-texts-tp25242711p25242711.html
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>