<br><br>On Sunday, 5 July 2015, Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>> wrote:<br>> El Diumenge, 5 de juliol de 2015, a les 12:19:53, Jaroslaw Staniek va<br>> escriure:<br>>> Is anyone interested with that?<br>>> Currently I'm editing these desktop files by hand.<br>><br>> Besides you? I don't think anyone is, <br><br>That's strong even a bit counterproductive declaration...<br><br>>we've been using .desktop files for ages<br>> without the need for translating custom fields.<br><br>Maybe because this part of the standard isn't implemented and people did not care and add some c++ virtual methods by hand. <br><br>><br>> This is for your own app plugins, right? If so why can't you just reuse one of<br>> the existing fields? It is not like anyone else than your will make sense or<br>> even see those .desktop fields, no?<br>><br><br>It's part of the Plugin api that is intended to be public. <br>Plugins pattern alone is intended for being used for extensibility, by others, right? <br>What translated field can be reused?<br>Name/description are used, keywords will be used, genericname is only left. <br><br><a href="http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html">http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html</a><br><br>I did not mention one thing: the localestring type isn't optional, it's just because the format has no strict validators, nobody bothered I guess.<br><br>Hmm as soon as there's a plugin in Kexi (or Krita or other heavy plugin-based app) requiring more than one noun, (provides multiple classes) reusing genericname won't be enough. <br><br>Disclaimer: It all works for me by editing the files, as I said. I am ok with someone helping out after translation teams back this fix in the fdo implementation. <br>I value most the fact that the task is simple, fixes something missing, and can be delegated easily to some volunteer that would like to start contribution to the core infra. <br>Cheers.<br><br>> Cheers,<br>>   Albert<br>><br>>><br>>> On Sunday, 5 July 2015, Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>> wrote:<br>>> > El Dilluns, 15 de juny de 2015, a les 22:14:25, Jaroslaw Staniek va<br>>><br>>> escriure:<br>>> >> Hi<br>>> >> Summing up,<br>>> >><br>>> >> As I need get things done, I'm looking for someone to help me with<br>>> >> <a href="http://createdesktopcontext.pl">createdesktopcontext.pl</a><br>>> >> - basically change from<br>>> >><br>>> >>   my $regexp =<br>>><br>>> qr{^(Name|Comment|Language|Keywords|X-KDE-Keywords|About|Description|Generi<br>>><br>>> >> cName|Query|ExtraNames|X-KDE-Submenu)=(.+)};<br>>> >><br>>> >> -- to recognize extra fields of type localestring [1].<br>>> ><br>>> > You'll also need to modify applycontext.cpp so that it applies the<br>>><br>>> translation<br>>><br>>> > back to the desktop file.<br>>> ><br>>> > Cheers,<br>>> ><br>>> >   Albert<br>>> >><br>>> >> Magic "# translate" comment is one solution but another could be that<br>>> >> for field Foo I am adding:<br>>> >><br>>> >> Foo=Bar<br>>> >> Foo[x-test]=xxBarxx<br>>> >><br>>> >> And in final .desktop file it's rather clean, no extra comments appear.<br>>> >><br>>> >> [1]<br>>><br>>> <a href="http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s03.html">http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s03.html</a><br>>><br>>> >> On 11 June 2015 at 15:43, Burkhard Lück <<a href="mailto:lueck@hube-lueck.de">lueck@hube-lueck.de</a>> wrote:<br>>> >> > Am Donnerstag, 11. Juni 2015, 09:28:40 schrieb Jaroslaw Staniek:<br>>> >> >> Thanks, please let me understand; first - regarding KPluginMetaData:<br>>> >> >> Why is a hint needed there if KPluginMetaData::readTranslatedString()<br>>> >> >> cust constructs a magic key with a [lang] sufffix?<br>>> >> ><br>>> >> > You are right, no hint needed.<br>>> >> ><br>>> >> > --<br>>> >> > Burkhard Lück<br>><br>><br><br>-- <br>regards, Jaroslaw Staniek<br><br>KDE:<br>: A world-wide network of software engineers, artists, writers, translators<br>: and facilitators committed to Free Software development - <a href="http://kde.org" target="_blank">http://kde.org</a><br>Calligra Suite:<br>: A graphic art and office suite - <a href="http://calligra.org" target="_blank">http://calligra.org</a><br>Kexi:<br>: A visual database apps builder - <a href="http://calligra.org/kexi" target="_blank">http://calligra.org/kexi</a><br>Qt Certified Specialist:<br>: <a href="http://www.linkedin.com/in/jstaniek" target="_blank">http://www.linkedin.com/in/jstaniek</a><br>