Re: [Gambas-user] How to force Gambas to use a specific language?

2009-10-31 Thread Fabien Bodard
System.Language = fr_FR.utf8

2009/10/30 Pino Zollo pinozo...@gmail.com:
 If it can help I test different languages with logging as an other user who
 has in his .profile the following:

 #LANG=POSIX
 LANG=ru_RU.utf8
 #LANG=en_US.UTF-8
 #LANG=es_ES.utf8
 #LANG=fr_FR.utf8
 #LANG=fr_BE.utf8

 ...I change the language just un-commenting the right one.

 As you can easily switch from one user to the other it is also possible to
 have many instances of my project running at the same time in the same
 computer.

 Regards

 Pino Zollo

 --
 Key ID: 0xF6768208
 Key fingerprint = B16D 0A7C 5B29 A334 CE6A  71F6 EAF8 3D88 F676 8208
 Key server: hkp://wwwkeys.eu.pgp.net

 --
 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@lists.sourceforge.net
 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to force Gambas to use a specific language?

2009-10-30 Thread Emilien Klein
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@lists.sourceforge.net/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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to force Gambas to use a specific language?

2009-10-30 Thread Ron
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@lists.sourceforge.net/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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to force Gambas to use a specific language?

2009-10-30 Thread Pino Zollo
If it can help I test different languages with logging as an other user who  
has in his .profile the following:

#LANG=POSIX
LANG=ru_RU.utf8
#LANG=en_US.UTF-8
#LANG=es_ES.utf8
#LANG=fr_FR.utf8
#LANG=fr_BE.utf8

...I change the language just un-commenting the right one.

As you can easily switch from one user to the other it is also possible to 
have many instances of my project running at the same time in the same 
computer.

Regards

Pino Zollo

-- 
Key ID: 0xF6768208 
Key fingerprint = B16D 0A7C 5B29 A334 CE6A  71F6 EAF8 3D88 F676 8208
Key server: hkp://wwwkeys.eu.pgp.net

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to force Gambas to use a specific language?

2009-10-30 Thread Toni
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@lists.sourceforge.net/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@lists.sourceforge.net
 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to force Gambas to use a specific language?

2009-10-30 Thread Benoît Minisini
 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user