From kde-i18n-doc Mon Jun 15 20:14:25 2015 From: Jaroslaw Staniek Date: Mon, 15 Jun 2015 20:14:25 +0000 To: kde-i18n-doc Subject: Re: Custom translated fields Message-Id: X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=143440075225260 Hi Summing up, As I need get things done, I'm looking for someone to help me with createdesktopcontext.pl - basically change from my $regexp =3D qr{^(Name|Comment|Language|Keywords|X-KDE-Keywords|About|D= escription|GenericName|Query|ExtraNames|X-KDE-Submenu)=3D(.+)}; -- to recognize extra fields of type localestring [1]. Magic "# translate" comment is one solution but another could be that for field Foo I am adding: Foo=3DBar Foo[x-test]=3DxxBarxx And in final .desktop file it's rather clean, no extra comments appear. [1] http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s03.html On 11 June 2015 at 15:43, Burkhard L=C3=BCck wrote: > Am Donnerstag, 11. Juni 2015, 09:28:40 schrieb Jaroslaw Staniek: >> Thanks, please let me understand; first - regarding KPluginMetaData: >> Why is a hint needed there if KPluginMetaData::readTranslatedString() >> cust constructs a magic key with a [lang] sufffix? > > You are right, no hint needed. > > -- > Burkhard L=C3=BCck > --=20 regards, Jaroslaw Staniek KDE: : A world-wide network of software engineers, artists, writers, translators : and facilitators committed to Free Software development - http://kde.org Calligra Suite: : A graphic art and office suite - http://calligra.org Kexi: : A visual database apps builder - http://calligra.org/kexi Qt Certified Specialist: : http://www.linkedin.com/in/jstaniek