How to force Gambas to use a specific language?

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown How to force Gambas to use a specific language?

by Emilien Klein-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I wanted to test a translation file in Hebrew, because it is a right
to left (RTL) language and I want to see if everything works OK with
RTL.
I found the following post:
http://www.mail-archive.com/gambas-user@.../msg03134.html
Same as http://sourceforge.net/mailarchive/message.php?msg_name=39705.81.245.220.223.1236591215.squirrel%40webmail.priorweb.be

According to this post, it should be possible to force Gambas to start
with a specific language, but I have not been able to do it myself.
How do you pass this language argument? (everything I try results in
Gambas telling me that I am not passing a valid project...)

So I also tried using
System.Language = "de_DE"

But then I receive an error message telling me that the locale is not
installed (sorry, I'm not at my devel computer so can't give you the
exact error message)

Anyway, how can I force Gambas to use Hebrew? I have now been forced
to install all the localization files just to test this out! (and
according to the previous message, that's exactly what would be
possible to prevent: "It is a little bit more comfortable than to
multi-boot Linux systems with other languages installed, just to check
the languages as developer...") Because this is for Hebrew, but I'd
like to be able to test that for all our languages at least once
before shipping a new release, and installing ALL those locales
wouldn't be a "partie de plaisir" ;)

Concerning the version: I am using the latest available in Ubuntu
repos for 9.04 (so I guess 2.8.2, but I'm not at my dev machine right now), but
Guido uses the latest from the Ubuntu PPA, which should be the actual
latest release?

Thanks,
Emilien Klein.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: How to force Gambas to use a specific language?

by Ron Klinkien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Emilien Klein wrote:

> Hi all,
>
> I wanted to test a translation file in Hebrew, because it is a right
> to left (RTL) language and I want to see if everything works OK with
> RTL.
> I found the following post:
> http://www.mail-archive.com/gambas-user@.../msg03134.html
> Same as http://sourceforge.net/mailarchive/message.php?msg_name=39705.81.245.220.223.1236591215.squirrel%40webmail.priorweb.be
>
> According to this post, it should be possible to force Gambas to start
> with a specific language, but I have not been able to do it myself.
> How do you pass this language argument? (everything I try results in
> Gambas telling me that I am not passing a valid project...)
>
> So I also tried using
> System.Language = "de_DE"
>
>
> Thanks,
> Emilien Klein.
>
>  
Hi,

I don't know about Hebrew, but is this working to start with:

System.Language = "de_DE.UTF-8"

ie. specify the encoding too.

You have to install the language you want to use too:

For instance the German one:

$ sudo aptitude install language-pack-de-base

language-pack-he and language-pack-he-base
are for Hebrew.

Couldn't find out which System.Language string you need with that...

Kind regards,
Ron_2nd.




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: How to force Gambas to use a specific language?

by Toni-38 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I just wanted to give you my 2 cents on the locales and Gambas.
Having to manualy install into the system the locales that a gambas
application supports in order to use them it's sort of weird...
If the strings for a given language are there (and programmatically the
"System.Language" is set to use them), why can't the Gambas app just use
them?

On the other hand even if the system locale is really necessary in order
to use a particular translation, it would be nice if the Gambas
application packager could lookup the current available translations and
add the corresponding system locales packages to the generated
application package as a "suggested" ones.
Cheers,
Toni

En/na Ron ha escrit:

> Emilien Klein wrote:
>  
>> Hi all,
>>
>> I wanted to test a translation file in Hebrew, because it is a right
>> to left (RTL) language and I want to see if everything works OK with
>> RTL.
>> I found the following post:
>> http://www.mail-archive.com/gambas-user@.../msg03134.html
>> Same as http://sourceforge.net/mailarchive/message.php?msg_name=39705.81.245.220.223.1236591215.squirrel%40webmail.priorweb.be
>>
>> According to this post, it should be possible to force Gambas to start
>> with a specific language, but I have not been able to do it myself.
>> How do you pass this language argument? (everything I try results in
>> Gambas telling me that I am not passing a valid project...)
>>
>> So I also tried using
>> System.Language = "de_DE"
>>
>>
>> Thanks,
>> Emilien Klein.
>>
>>  
>>    
> Hi,
>
> I don't know about Hebrew, but is this working to start with:
>
> System.Language = "de_DE.UTF-8"
>
> ie. specify the encoding too.
>
> You have to install the language you want to use too:
>
> For instance the German one:
>
> $ sudo aptitude install language-pack-de-base
>
> language-pack-he and language-pack-he-base
> are for Hebrew.
>
> Couldn't find out which System.Language string you need with that...
>
> Kind regards,
> Ron_2nd.
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>  

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: How to force Gambas to use a specific language?

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Hi all,
> I just wanted to give you my 2 cents on the locales and Gambas.
> Having to manualy install into the system the locales that a gambas
> application supports in order to use them it's sort of weird...
> If the strings for a given language are there (and programmatically the
> "System.Language" is set to use them), why can't the Gambas app just use
> them?
>

It's not me, but the glibc that requires that. No idea why. If someone can
find a way to use the translation API of the glibc without having to install
the corresponding locale files, it will be a great help for everyone.

> On the other hand even if the system locale is really necessary in order
> to use a particular translation, it would be nice if the Gambas
> application packager could lookup the current available translations and
> add the corresponding system locales packages to the generated
> application package as a "suggested" ones.

Indeed. The problem is that all locale packages are different between
distributions, and the way they are named too. I must create a list of all
locale packages for each language, and each distributions supported by the IDE
(Mandriva, SuSE, Fedora, Ubuntu, Slackware). It is an huge job I cannot make
alone!

Regards,

--
BenoƮt Minisini

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user