[Xfce-i18n] xfce4-xfapplet-plugin 0.0.1
jasper at xfce.org
Sun Feb 12 15:14:18 CET 2006
Adriano Winter Bess schreef:
> On Sun, Feb 12, 2006 at 11:46:00AM -0200, Adriano Winter Bess wrote:
>> 1. Before adjusting the UI merging, I think I could use
>> xfce_textdomain ("xfce4-panel", ...);
>> so that strings in the XML file would not need to be translated at all,
>> translations would come from xfce4-panel package (in fact, this already
>> happend on current xfce4-xfapplet-plugin, i.e., without your patch). The
>> problem is the following: xfce_textdomain() demands the package localedir
>> directory, and I don't know how I can figure out xfce4-panel locale directory
>> neither on compile time nor on runtime;
> I've done some research and figured out the following: I _could_ retrieve
> libxfce4panel localedir through pkg-config during compile time, but it requires
> that localedir be stored in libxfce4panel-1.0.pc (currently, it's not). If
> Jasper could add localedir info to libxfce4panel-1.0.pc it would work fine, but
> I guess he may not like to change it just because of a particular plugin needs.
That sounds like it should be fairly easy to do. It makes the plugin
slightly less flexible, I guess, because the panel needs to be in the
same place it was when compiling the plugin, but that should be the case
in almost any situation.
If anyone wants to provide a patch, I can easily add this.
More information about the Xfce-i18n