You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Hilario Perez Corona <hp...@gmail.com> on 2010/10/29 23:26:12 UTC

Change error language

Hi,

Digging on the source code, i found this message:

// ----------------------------------------------------------------
//  This file was generated from the XML error message source.
//  so do not edit this file directly!!
// ----------------------------------------------------------------

On the util/MsgLoaders/Win32/Version.rc file.

But i cannot find the source XML.

I think this is needed if i want to change the default language of the
errors from English to Spanish.

I don't need localized messages based on the computer settings, just need to
translate the messages to spanish...

Any help is appreciated.

-- 
Hilario Perez Corona
"No Religion Higher Than Truth"

Re: Change error language

Posted by Hilario Perez Corona <hp...@gmail.com>.
Lots of thanks.

On Mon, Nov 1, 2010 at 3:09 AM, Alberto Massari <
Alberto.Massari@progress.com> wrote:

> It's generated by the Xlat tool (located in <xerces-src>\tools\NLS\Xlat).
> Compile it, add a folder <xerces-src>\src\xercesc\NLS\ES_ES with a file
> XMLErrList_ES_ES.Xml with your translation and run the tool using
>
> Xlat.exe /SrcRoot=C:\Xerces\Xerces-C\ /OutPath=output\ /OutFmt=Win32RC
> /Locale=ES_ES
>
> Then manually merge the generated Output\CppErrMsgs_es_ES.RC file into
> Version.rc.
> If you don't care about keeping both sets of resource messages, just
> overwrite the existing messages with the new set.
>
> Alberto
>
>
> On 10/29/2010 11:26 PM, Hilario Perez Corona wrote:
>
>> Hi,
>>
>> Digging on the source code, i found this message:
>>
>> // ----------------------------------------------------------------
>> //  This file was generated from the XML error message source.
>> //  so do not edit this file directly!!
>> // ----------------------------------------------------------------
>>
>> On the util/MsgLoaders/Win32/Version.rc file.
>>
>> But i cannot find the source XML.
>>
>> I think this is needed if i want to change the default language of the
>> errors from English to Spanish.
>>
>> I don't need localized messages based on the computer settings, just need
>> to
>> translate the messages to spanish...
>>
>> Any help is appreciated.
>>
>>
>


-- 
Hilario Perez Corona
"No Religion Higher Than Truth"

Re: Change error language

Posted by Alberto Massari <Al...@progress.com>.
It's generated by the Xlat tool (located in <xerces-src>\tools\NLS\Xlat).
Compile it, add a folder <xerces-src>\src\xercesc\NLS\ES_ES with a file 
XMLErrList_ES_ES.Xml with your translation and run the tool using

Xlat.exe /SrcRoot=C:\Xerces\Xerces-C\ /OutPath=output\ /OutFmt=Win32RC 
/Locale=ES_ES

Then manually merge the generated Output\CppErrMsgs_es_ES.RC file into 
Version.rc.
If you don't care about keeping both sets of resource messages, just 
overwrite the existing messages with the new set.

Alberto

On 10/29/2010 11:26 PM, Hilario Perez Corona wrote:
> Hi,
>
> Digging on the source code, i found this message:
>
> // ----------------------------------------------------------------
> //  This file was generated from the XML error message source.
> //  so do not edit this file directly!!
> // ----------------------------------------------------------------
>
> On the util/MsgLoaders/Win32/Version.rc file.
>
> But i cannot find the source XML.
>
> I think this is needed if i want to change the default language of the
> errors from English to Spanish.
>
> I don't need localized messages based on the computer settings, just need to
> translate the messages to spanish...
>
> Any help is appreciated.
>