[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-devel
Subject: Re: i18n of app menus
From: Xan Lopez <xan () gnome ! org>
Date: 2012-01-23 19:05:42
Message-ID: CAAu9aGEfcVT52ovGjm3BMGo8tmY=E6pb4dKDbT7tmt+fpz6tQg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Mon, Jan 23, 2012 at 3:22 PM, Shaun McCance <shaunm@gnome.org> wrote:
>
> So I just read this:
>
> http://developer.gnome.org/gio/2.31/gio-GMenu-Markup.html
>
> It turns out this:
>
> <item label='_New Window' action='app.new' accel='<Primary>n'/>
>
> is really shorthand for this:
>
> <item>
> <attribute name='label'>_New Window</attribute>
> <attribute name='action'>app.new</attribute>
> <attribute name='accel'><Primary>n</attribute>
> </item>
>
> or presumably this:
>
> <item action='app.new' accel='<Primary>n'>
> <attribute name='label'>_New Window</attribute>
> </item>
>
> And attribute elements can have the translatable attribute, so
> we really ought to be writing this like this:
>
> <item action='app.new' accel='<Primary>n'>
> <attribute name='label' translatable='yes'>_New Window</attribute>
> </item>
>
> And then we can use intltool's glade mode and not do terrible hacks
> to our XML files.
>
Thanks for digging this up (it was very well hidden in the... eh...
documentation). I'll make this change in epiphany now.
Xan
[Attachment #5 (text/html)]
<div class="gmail_quote">On Mon, Jan 23, 2012 at 3:22 PM, Shaun McCance <span \
dir="ltr"><<a href="mailto:shaunm@gnome.org">shaunm@gnome.org</a>></span> \
wrote:<blockquote class="gmail_quote" \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left \
-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
So I just read this:<br>
<br>
<a href="http://developer.gnome.org/gio/2.31/gio-GMenu-Markup.html" \
target="_blank">http://developer.gnome.org/gio/2.31/gio-GMenu-Markup.html</a><br> \
<br> It turns out this:<br>
<br>
<item label='_New Window' action='app.new' \
accel='&lt;Primary>n'/><br> <br>
is really shorthand for this:<br>
<br>
<item><br>
<attribute name='label'>_New Window</attribute><br>
<attribute name='action'>app.new</attribute><br>
<attribute name='accel'>&lt;Primary>n</attribute><br>
</item><br>
<br>
or presumably this:<br>
<br>
<item action='app.new' accel='&lt;Primary>n'><br>
<attribute name='label'>_New Window</attribute><br>
</item><br>
<br>
And attribute elements can have the translatable attribute, so<br>
we really ought to be writing this like this:<br>
<br>
<item action='app.new' accel='&lt;Primary>n'><br>
<attribute name='label' translatable='yes'>_New \
Window</attribute><br> </item><br>
<br>
And then we can use intltool's glade mode and not do terrible hacks<br>
to our XML files.<br></blockquote><div><br></div><div>Thanks for digging this up (it \
was very well hidden in the... eh... documentation). I'll make this change in \
epiphany now.</div><div><br></div><div>Xan</div><div> </div></div>
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic