[Glade-users] internationalized/locale sensitive widget layout
Andy Tai
atai at atai.org
Sat May 20 19:26:22 EDT 2006
On 5/20/06, Tristan Van Berkom <tristan.van.berkom at gmail.com> wrote:
> > Hi, what is the best way to handle widget layout that may be sensitive to
> > the locale?
> Glade natively supports translations in glade files (note that they
> must be marked as "translatable"... you can set this in the editor and
> even provide a note for the translators).
>
> if you want to do per-locale widgets... you will have to consult the
> locale and show/hide
> them yourself.
Is it possible to extend glade such that each widget can have a
"conditional" property such, say, a widget is only shown if the local
is "en.US". While it is doable to implement this in the code, it
would be more flexible to have a standard glade functionality for some
condition-controlled realization of widgets at load time. Being XML,
such condition should be expressible in the glade files.
(Maybe this is more of a developer question than a user question)
--
Andy Tai, atai at atai.org
More information about the Glade-users
mailing list