Re: Translating pictures
- From: Owen Taylor <otaylor redhat com>
- To: Roozbeh Pournader <roozbeh sharif edu>
- Cc: GNOME i18n list <gnome-i18n gnome org>,GTK i18n <gtk-i18n-list gnome org>
- Subject: Re: Translating pictures
- Date: Tue, 20 Aug 2002 08:18:24 -0400 (EDT)
Roozbeh Pournader <roozbeh@sharif.edu> writes:
> Well, for Right-to-left languages, we somehow need to translate pictures.
> Saw that Return-like picture that appears before the OK buttons? That
> needs to be mirrored for Arabic, Hebrew and Persian. Sometimes dumb
> mirroring is enough, but some other times we may need to show a new
> picture with some parts mirrored but not the others.
>
> Just a thought. Any suggestions?
The mechanism is there ... from:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-resource-files.html
In a stock definition, icon sources are specified as a 4-tuple of
image filename, text direction, widget state, and size, in that
order. Each icon source specifies an image filename to use with a
given direction, state, and size. The * character can be used as a
wildcard, and if direction/state/size are omitted they default to
*. So for example, the following specifies different icons to use for
left-to-right and right-to-left languages:
stock["my-stock-item"] =
{
{ "itemltr.png", LTR, *, * },
{ "itemrtl.png", RTL, *, * }
}
It could also be done for the stock icons set up by GTK+ if we
had the necessary images.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]