Re: How to create a simple multilingual GUI

2007-05-30 Thread John Zoidberg
Ooop, took wrong file. It's hello_intl-0.1.tar.gz which is the GTK app, not gettext-0.16 (gettext tarball). :/ = I finally managed to make a dynamically language-changing console app. However, I'm still trying to understand how to correctly use gettext with Anjuta+Glade. Here is my so

Re: How to create a simple multilingual GUI

2007-05-18 Thread Michelle Konzack
Am 2007-05-16 09:47:07, schrieb Andreas Stricker: > It works only for the widget itself. Usually there is also > localized code in the program control flow like this: > > if (condition) > status_text = _("Condition is true"); > > If a branch like this is not executed again on reload or branc

Re: How to create a simple multilingual GUI

2007-05-16 Thread Andreas Stricker
Michelle Konzack wrote: > Am 2007-05-14 20:43:42, schrieb David Ne?as (Yeti): >> On Mon, May 14, 2007 at 08:04:09PM +0200, Michelle Konzack wrote: >>> Does >>> setlocale("LC_ALL", "de_DE"); >>> >>> not work? >> It works. Future locale-dependent calls will use the new >> locale. >> >> So if you

Re: How to create a simple multilingual GUI

2007-05-15 Thread Michelle Konzack
Am 2007-05-14 20:43:42, schrieb David Ne?as (Yeti): > On Mon, May 14, 2007 at 08:04:09PM +0200, Michelle Konzack wrote: > > > > Does > > setlocale("LC_ALL", "de_DE"); > > > > not work? > > It works. Future locale-dependent calls will use the new > locale. > > So if you do this while your a

Re: How to create a simple multilingual GUI

2007-05-15 Thread Yeti
On Mon, May 14, 2007 at 12:30:14PM +0200, John Zoidberg wrote: > Well, it's possible to change the language in Firefox and in a lot of other > programs. That does not make it a good idea. Firefox is designed for Microsoft Windows -- where one had to reinstall the system it to switch languages. A

Re: How to create a simple multilingual GUI

2007-05-15 Thread John Zoidberg
Well, it's possible to change the language in Firefox and in a lot of other programs. I don't mind having to restart the program to do it. I just don't want to have to change the system's local language to do it. I know that gettext is mostly used for internationalisation. However, I have problems

Re: How to create a simple multilingual GUI

2007-05-14 Thread Yeti
On Mon, May 14, 2007 at 08:04:09PM +0200, Michelle Konzack wrote: > > Does > setlocale("LC_ALL", "de_DE"); > > not work? It works. Future locale-dependent calls will use the new locale. So if you do this while your application is already running, you can watch it trasmuting slowly to Ger

Re: How to create a simple multilingual GUI

2007-05-14 Thread Michelle Konzack
Am 2007-05-13 02:19:39, schrieb David Ne?as (Yeti): > On Fri, May 11, 2007 at 02:52:06PM +0200, John Zoidberg wrote: > > I would like to create a GUI with GTK where the language can be chosen > > interactively in a "settings" menu. > > I would like this to be independant of the machines local langu

Re: How to create a simple multilingual GUI

2007-05-14 Thread Samuel Cormier-Iijima
On 5/14/07, Gabriel Schulhof <[EMAIL PROTECTED]> wrote: > > Hi! > > On Sun, 2007-05-13 at 02:19 +0200, David Nečas (Yeti) wrote: > > Run-time switching of languages is not > > possible http://bugzilla.gnome.org/show_bug.cgi?id=313736 > > Oh, it's possible, just very difficult. You have to keep all

Re: How to create a simple multilingual GUI

2007-05-13 Thread Yeti
On Mon, May 14, 2007 at 09:14:19AM +0300, Gabriel Schulhof wrote: > On Sun, 2007-05-13 at 02:19 +0200, David Nečas (Yeti) wrote: > > Run-time switching of languages is not > > possible http://bugzilla.gnome.org/show_bug.cgi?id=313736 > > Oh, it's possible, just very difficult. You have to keep all

Re: How to create a simple multilingual GUI

2007-05-13 Thread Gabriel Schulhof
Hi! On Sun, 2007-05-13 at 02:19 +0200, David Nečas (Yeti) wrote: > Run-time switching of languages is not > possible http://bugzilla.gnome.org/show_bug.cgi?id=313736 Oh, it's possible, just very difficult. You have to keep all your user-string-displaying widgets in a list, and set the label/text

Re: How to create a simple multilingual GUI

2007-05-12 Thread Yeti
On Fri, May 11, 2007 at 02:52:06PM +0200, John Zoidberg wrote: > I would like to create a GUI with GTK where the language can be chosen > interactively in a "settings" menu. > I would like this to be independant of the machines local language settings. Each user (not machine) has separate language

Re: How to create a simple multilingual GUI

2007-05-12 Thread rush ta
if that is at all possible... I would be looking forward to it too !! On 5/11/07, John Zoidberg <[EMAIL PROTECTED]> wrote: > > I would like to create a GUI with GTK where the language can be chosen > interactively in a "settings" menu. > I would like this to be independant of the machines local la