[Gambas-user] List al the classes and symbols

Bruce Steers bsteers4 at gmail.com
Tue Jun 28 16:01:30 CEST 2022


On Tue, 28 Jun 2022 at 13:56, Martin <mbelmonte at belmotek.net> wrote:

> In some files in /usr/lib/gambas3/ and .component extension Appear
> different types of values in the flag State.
>
> State=stable
> (gb.data.component)
>
> State=NotFinished
> (gb.dbus.component)
>
> State=0
> (gb.db.mysql)
>
> ¿Wich relation are between 0.1.2... and STABLE, NOT-FINISHED ....?
>
> Then some Falgs are:
> Name=MD5/DES crypting component
> Name[fr]=Chiffrage MD5/DES
> Name[tr]=MD5/DES şifreleme bileşeni
> (gb.crypt.component)
>
> ¿This way of translation is correct? if yes, ¿how the others are
> translated?
>

that way of translation is exactly the same as a .desktop file. See
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html
You can use System.Language to find the current locale and use the relevant
Name[] field for the user.

PS, check for the string having a _ like my system.Language returns
en_GB.UTF-8 so i would use Split(System.Language, "_")[0] to separate the
language from the country and char set data giving me just "en" then check
for a Name[en] field.

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220628/6cd30f9c/attachment.htm>


More information about the User mailing list