A question about translations
Alexander Iliev <[email protected]> Sat, 18 Mar 2006 02:48:45 +0200
| Newsgroups | gmane.comp.desktop.xfce.goodies.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi.
I finally decided to add translation support to
xfce4-xkb-plugin, but I ran into some problems.
Here's what I did:
* marked all translatable string with _(s);
* added AC_PROG_INTLTOOL to configure.ac;
* added po to SUBDIRS in Makefile.am;
* created a po/ dir with POTFILES.in and ChangeLog;
* added -DPACKAGE_LOCALE_DIR=\"$(localedir)\" to
xfce4_xkb_plugin_CFLAGS in panel-plugin/Makefile.am;
* added @INTLTOOL_DESKTOP_RULE@ in panel-plugin/Makefile.am;
* ran ./autogen.sh;
* ran make xfce4-xkb-plugin.pot from po/;
* copied xfce4-xkb-plugin.pot to bg.po and translated
the messages;
* ran make && su -c "make install";
* export LC_MESSAGES=bg and restarted the panel to
test the translation.
The bg.mo file installed properly in
$PREFIX/share/locale/bg/LC_MESSAGES/xfce4-xkb-plugin.mo.
Unfortunately the messages remained in english, so
my question is - how can I check what went wrong and
why the translation does not load?
btw, the .desktop file translation works fine - the name
and comment for the plugin appear in bulgarian in the
plugin add dialog.
Regards,
--
Alexander Iliev