Re: How to create a simple multilingual GUI
- From: "John Zoidberg" <zohn joidberg gmail com>
- To: "Michelle Konzack" <linux4michelle freenet de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to create a simple multilingual GUI
- Date: Tue, 29 May 2007 17:30:59 +0200
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 source code for my apps, as well as .mo files I took from the
gettext tarball.
How should I proceed to use .mo files with a GTK app created using the
Anjuta+Glade combo?
I tried placing .po files (created from the Anjuta generated .pot template)
in the po directory and adding a LINGUAS file with the available languages,
but it didn't work.
On 5/29/07, John Zoidberg <zohn joidberg gmail com> wrote:
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 source code for my apps, as well as .mo files I took from the
gettext tarball.
How should I proceed to use .mo files with a GTK app created using the
Anjuta+Glade combo?
I tried placing .po files (created from the Anjuta generated .pot
template) in the po directory and adding a LINGUAS file with the available
languages, but it didn't work.
On 5/18/07, Michelle Konzack <linux4michelle freenet de> wrote:
> 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 branch
> > into another part of the code, the language of the text stays
> > in the former language.
>
> Ah right...
>
> I had put all strings in an array which I reload. :-)
> Then, all strings are new translated if I reinitialize the array.
>
> This is why it worked 4me.
>
> Greetings
> Michelle Konzack
>
>
> --
> Linux-User #280138 with the Linux Counter, http://counter.li.org/
> ##################### Debian GNU/Linux Consultant #####################
> Michelle Konzack Apt. 917 ICQ #328449886
> 50, rue de Soultz MSN LinuxMichi
> 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]