bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] Translate .desktop files


From: Didier Spaier
Subject: Re: [bug-gettext] Translate .desktop files
Date: Tue, 05 Nov 2013 22:19:27 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130917 Thunderbird/17.0.9

On 05/11/2013 21:50, Javier Jardón wrote:
On 27 September 2013 15:11, Javier Jardón <address@hidden> wrote:
Hi,

I wonder if its possible to translate .desktop files using gettext. I
know its possible to use intltool for this but Id prefer not to add
another dependency.

Any idea about this?

I had a look at the specification:
http://standards.freedesktop.org/desktop-entry-spec/latest/index.html

it states how the localized values for keys are handled:
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s04.html

This applies only to keys that are of type localestring, listed here:
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html

namely: Name, GenericName, Comment, Icon, Keywords keys are of type
localestring.

So I guess what you'd need is a gettext module that would list genuine
values of these keys, allowing translator to append [LOCALE] to key names
in concern and enter the value corresponding to that locale.

Unfortunately I'm not a perl coder...

Didier



reply via email to

[Prev in Thread] Current Thread [Next in Thread]