On Tue, Mar 19, 2013 at 1:57 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Friday 02 November 2012 16:58:23 Jerome Leclanche wrote:<br>
> The idea behind the addition is to be able to specify *extra* actions in<br>
> addition to the "main" one, so it would more likely look like<br>
> image/png=myapp.desktop;myapp.desktop[Print];myapp.desktop[Share]<br>
><br>
> And in a context menu it would look something like:<br>
><br>
> ====<br>
> Open<br>
> Copy<br>
> Open with... ><br>
>  - My App (default)<br>
>    -------<br>
>  - Print with My App<br>
>  - Share with My App<br>
<br>
</div>This doesn't look like a solution that allows translations to other languages<br>
than English.<br></blockquote><div><br></div><div><br></div><div>Why not?</div><div>The Desktop Entry spec has a standard (translatable) name field for Action keys. My example could go one of several ways:</div><div>- The Name field could be extended to have a %s-style placeholder, eg "Share with %n"</div>

<div>- Or we can add a ContextualName key that can do the same (eg Name=Imager  ContextualName=Share with Imager — or ContextualName=Share with %n)</div><div>- Or that part can be left to the implementation (which would just show the name, and have its own translations for eg %s with %s).</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What about defining multiple .desktop files? Then they can have translated<br>
names. Now that I see we're talking about "Open with...", standard desktop<br>
files would do the job just fine. You'll only need to order them correctly,<br>
which is currently not standard across DEs ... [/me adds yet another topic to<br>
the next meeting]<br></blockquote><div><br></div><div>I'm generally against multiple desktop files, they tend to become a mess very quickly. Action keys convey the same information in a better context. This is useful for app launchers for example (krunner/razor-runner, app menus, ...)</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a href="http://www.davidfaure.fr" target="_blank">http://www.davidfaure.fr</a><br>
</div>Working on KDE, in particular KDE Frameworks 5<br>
<br>
</blockquote></div><div><br class="Apple-interchange-newline">J. Leclanche</div><div><br></div>