[Gambas-user] Translating native error messages

Benoît Minisini g4mba5 at gmail.com
Mon Jul 16 18:18:29 CEST 2018


Le 08/07/2018 à 15:03, Tobias Boege a écrit :
> Hi Benoit,
> 
> I saw some mixed-language error messages in output from someone recently.
> (I run in an English locale, so I never noticed.) I think they come from
> code like this:
> 
>    Error.Raise(Subst$(("Something went wrong: &1"), Error.Text))
> 
> where the translated string is translated in the Gambas project this
> code comes from, but the Error.Text is a low-level interpreter or native
> component error message, which is not translated.
> 
> I don't know gettext, so my first question is: can't we translate these
> native pieces just like we translate Gambas projects? Is it "just" a
> matter of doing translation work and inserting some macros in the sources?
> 
> Regards,
> Tobi
> 

The problem is that error messages coming from underlying libraries may 
be anything.

We can just imagine a translation system for error messages defined in 
the Gambas source code, as it is already done for the interpreter and 
the compiler (browsing the source code as it is already done in the 
MErrorMessage.Main function of the IDE source code).

Regards,

-- 
Benoît Minisini


More information about the User mailing list