Re: How to create a simple multilingual GUI
- From: "Samuel Cormier-Iijima" <sciyoshi gmail com>
- To: "Gabriel Schulhof" <nix go-nix ca>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to create a simple multilingual GUI
- Date: Mon, 14 May 2007 06:34:51 -0400
On 5/14/07, Gabriel Schulhof <nix go-nix ca> 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 your
user-string-displaying widgets in a list, and set the label/text for
each of them every time the language changes, and after notifying
gettext of the change.
This can quickly turn into a nightmare, because the width of labels
tends to change from language to language, and non-resizable windows
will not re-shrink after a "verbose" language.
I seem to remember that Ubuntu's installer Ubiquity has dynamically switches
the language
on the first page of installation (with a list of languages on the left, and
clicking on one
of these languages changes the UI translations at runtime). You might want
to check the
Ubiquity code to see how they do this?
Samuel
Gabriel
_______________________________________________
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]