[Gambas-user] Sting declared as Const are not translated

Benoît Minisini gambas at ...1...
Tue Aug 2 00:11:10 CEST 2011


> Hi to all,
> declaring a string like:
> 
> MyClass.Class
> 
> Create Private
> 
> PRIVATE CONST MYSTRING As String = ("A string")
> 
> and using that string in another class like
> 
> MyForm.Class
> 
> MyForm.Caption = MyClass.MYSTRING
> 
> even if the string is correctly translated trough the Translate Tool in
> the IDE when the form opens the caption appears in the default language.
> Is this correct or could be fixed?
> Thanks in advance,
> Emanuele
> 

Right, there is a problem: the constant is not translated when you access it 
as a public symbol of a class.

I don't know if I can fix it yet...

-- 
Benoît Minisini




More information about the User mailing list