[Glade-users] internationalized/locale sensitive widget layout

On 5/20/06, Tristan Van Berkom <tristan van berkom 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 atai org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]