[Xfce-i18n] Panel contents translations

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Tue Mar 8 16:19:39 CET 2005


Jasper Huijsmans wrote:
>>We should use the Q_() macro in such cases, see
>>
>>http://www.xfce.org/documentation/api-4.2/libxfce4util/libxfce4util-Internationalisation.html#Q--CAPS
>>
>>as thats the suggested way to apply a context to a translatable string.
>>For example, Jasper would use:
>>
>> Q_("icons|Terminal")
> 
> Excellent. How do I get gettext to pick it up? It doesn't seem to do so by
> default.

It's not picked up by default. You need to explicitly add --keyword=O_ 
to xgettext (e.g. using XGETTEXT_ARGS with intltool-update). I added 
some magic to xfce4-dev-tools to automate this.

> 	Jasper

greets,
Benedikt



More information about the Xfce4-dev mailing list