using gettext for .desktop translations

Stephan Kulow coolo at kde.org
Fri Dec 11 17:34:43 GMT 2009


On Friday 11 December 2009 16:48:38 Pino Toscano wrote:
> 
> > Both Ubuntu and openSUSE patch KDE and Gnome to
> > make them use translations from gettext instead of .desktop files.
> 
> Translations from where? Which format?
> If tomorrow I install eg a GNOME application in my KDE, where will the KDE
> menu look for the translations of the entries of the .desktop file of the
> application? The same applies of course in the other way round, and in
The idea would be to mark in the desktop file which catalogue to load. We
could either have it all in kde_menu.mo or in kdegraphics_menu, etc. For 
openSUSE we use a big desktop_translations.mo, but it is not nice - and
translations in .desktop files win btw.

>  general for any XDG menu implementation. This is als why IMO having
>  translations in .desktop files (not DE specific) is a good solution so
>  far.
> And if the application does not use gettext at all for its translations
>  (for example with Qt-only or Java applications)?
> 
I don't see why they would want to parse the menu structure of the DE, but
if they do I don't see a reason why they shouldn't be able to use gettext.

Greetings, Stephan





More information about the kde-core-devel mailing list