[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='&lt;Primary>n'/>
>
> is really shorthand for this:
>
>  <item>
>    <attribute name='label'>_New Window</attribute>
>    <attribute name='action'>app.new</attribute>
>    <attribute name='accel'>&lt;Primary>n</attribute>
>  </item>
>
> or presumably this:
>
>  <item action='app.new' accel='&lt;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='&lt;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">&lt;<a href="mailto:shaunm@gnome.org">shaunm@gnome.org</a>&gt;</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>
  &lt;item label=&#39;_New Window&#39; action=&#39;app.new&#39; \
accel=&#39;&amp;lt;Primary&gt;n&#39;/&gt;<br> <br>
is really shorthand for this:<br>
<br>
  &lt;item&gt;<br>
    &lt;attribute name=&#39;label&#39;&gt;_New Window&lt;/attribute&gt;<br>
    &lt;attribute name=&#39;action&#39;&gt;app.new&lt;/attribute&gt;<br>
    &lt;attribute name=&#39;accel&#39;&gt;&amp;lt;Primary&gt;n&lt;/attribute&gt;<br>
  &lt;/item&gt;<br>
<br>
or presumably this:<br>
<br>
  &lt;item action=&#39;app.new&#39; accel=&#39;&amp;lt;Primary&gt;n&#39;&gt;<br>
    &lt;attribute name=&#39;label&#39;&gt;_New Window&lt;/attribute&gt;<br>
  &lt;/item&gt;<br>
<br>
And attribute elements can have the translatable attribute, so<br>
we really ought to be writing this like this:<br>
<br>
  &lt;item action=&#39;app.new&#39; accel=&#39;&amp;lt;Primary&gt;n&#39;&gt;<br>
    &lt;attribute name=&#39;label&#39; translatable=&#39;yes&#39;&gt;_New \
Window&lt;/attribute&gt;<br>  &lt;/item&gt;<br>
<br>
And then we can use intltool&#39;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&#39;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