Re: [Gambas-user] Shipping translations for my project

2008-10-31 Thread M0E Lnx
The code I'm using now is somewhat similar, except, I'm using a
columnview, and storing the LANGUAGE CODE as the key for each entry
and the LANGUAGE NAME as the .text property for each entry. I foud
it's easier to do it this way than it is to keep up with 2 arrays of
the same thing, I just use what gambas already has.

So when you select an item in the columnview, you can easily get it's
LANG CODE by getting the selection's key.


But beniot is right... It seems to me that the resulting binary should
be able to rdir(.lang)




On Fri, Oct 31, 2008 at 6:47 AM, Benoit Minisini
[EMAIL PROTECTED] wrote:
 On jeudi 30 octobre 2008, M0E Lnx wrote:
 And that's what I'm doing at the moment.
 But that only works when the application is ran inside the IDE

 if I run it outside the IDE, then it doesn't list the languages not
 even when ran from the same directory that contains .lang

 suggestions?


 Mmm. This is an old bug in Dir() when browsing an executable.

 --
 Benoit Minisini

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Shipping translations for my project

2008-10-30 Thread M0E Lnx
I'm working on this project and I'm offering translations.
My question now is... where do I put the translations so my program
can get to them?

Is there a GNU Standard for this anyone knows of?

And what is the best way of listing the offered translations withoug
having to hard code a list?

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shipping translations for my project

2008-10-30 Thread Benoit Minisini
On jeudi 30 octobre 2008, M0E Lnx wrote:
 I'm working on this project and I'm offering translations.
 My question now is... where do I put the translations so my program
 can get to them?

 Is there a GNU Standard for this anyone knows of?

 And what is the best way of listing the offered translations withoug
 having to hard code a list?


Everything is automatic: just do the translation from the IDE.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shipping translations for my project

2008-10-30 Thread M0E Lnx
I've got the translations... but what do I do with them?

If it is all automatic, how can I offer the end user the choice of languages?



On Thu, Oct 30, 2008 at 10:59 AM, Benoit Minisini
[EMAIL PROTECTED] wrote:
 On jeudi 30 octobre 2008, M0E Lnx wrote:
 I'm working on this project and I'm offering translations.
 My question now is... where do I put the translations so my program
 can get to them?

 Is there a GNU Standard for this anyone knows of?

 And what is the best way of listing the offered translations withoug
 having to hard code a list?


 Everything is automatic: just do the translation from the IDE.

 Regards,

 --
 Benoit Minisini

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shipping translations for my project

2008-10-30 Thread M0E Lnx
Right... I understand that..
But settings System.Language = ft_FR will only translate my
application to French if a French translation is available .
correct?

And there lies my question... I want to list the translations
available for my application... (I have only 3 at the moment, but
there will be more)
The user should see these in a listbox and pick one but where do I
get the values for the listbox (without having to hardcode a list
there)



On Thu, Oct 30, 2008 at 12:46 PM, Benoit Minisini
[EMAIL PROTECTED] wrote:
 On jeudi 30 octobre 2008, M0E Lnx wrote:
 I've got the translations... but what do I do with them?

 If it is all automatic, how can I offer the end user the choice of
 languages?


 On Unix, the user sets its language with the LANG environmental variable.

 If you want to do that inside your program, just set the System.Language
 property with the requested language code (for example, fr_FR for french in
 France).

 Regards,

 --
 Benoit Minisini

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shipping translations for my project

2008-10-30 Thread Benoit Minisini
On jeudi 30 octobre 2008, M0E Lnx wrote:
 Right... I understand that..
 But settings System.Language = ft_FR will only translate my
 application to French if a French translation is available .
 correct?

 And there lies my question... I want to list the translations
 available for my application... (I have only 3 at the moment, but
 there will be more)
 The user should see these in a listbox and pick one but where do I
 get the values for the listbox (without having to hardcode a list
 there)


There is nothing at the moment, except doing: Dir(.lang, *.mo)

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shipping translations for my project

2008-10-30 Thread M0E Lnx
And that's what I'm doing at the moment.
But that only works when the application is ran inside the IDE

if I run it outside the IDE, then it doesn't list the languages not
even when ran from the same directory that contains .lang

suggestions?


On Thu, Oct 30, 2008 at 1:03 PM, Benoit Minisini
[EMAIL PROTECTED] wrote:
 On jeudi 30 octobre 2008, M0E Lnx wrote:
 Right... I understand that..
 But settings System.Language = ft_FR will only translate my
 application to French if a French translation is available .
 correct?

 And there lies my question... I want to list the translations
 available for my application... (I have only 3 at the moment, but
 there will be more)
 The user should see these in a listbox and pick one but where do I
 get the values for the listbox (without having to hardcode a list
 there)


 There is nothing at the moment, except doing: Dir(.lang, *.mo)

 --
 Benoit Minisini

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user