Translating the menu items of a GNOME applet.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have a nice "Audio Recorder Applet" for the GNOME-desktop.
The problem is that I cannot get the right-click-menu translated to
other languages than english.

In the applet's main.c I have:
http://bazaar.launchpad.net/~osmoma/rec-applet/trunk/annotate/head:/src/main.c

// Popup menu on right-click
static const char Context_menu_xml [] =
   "<popup name=\"button3\">\n"
   "  <menuitem name=\"Start Recording\" "
   "             verb=\"StartRecording\" "
   "           _label=\"_Start Recording\"/>\n"
   "  <menuitem name=\"Stop Recording\" "
   "             verb=\"StopRecording\" "
   "           _label=\"Sto_p Recording\"/>\n"
   "  <separator/>\n"
   "  <menuitem name=\"About Item\" "
   "             verb=\"MenuAbout\" "
   "           _label=\"_About\"\n"
   "          pixtype=\"stock\" "
   "          pixname=\"gtk-about\"/>\n"
   "</popup>\n";

static const BonoboUIVerb applet_menu_verbs [] = {
  BONOBO_UI_VERB ("MenuAbout", applet_about_dialog_cb),
  BONOBO_UI_VERB ("StartRecording", applet_start_recording_cb),
  BONOBO_UI_VERB ("StopRecordin_menu_verbsg", applet_stop_recording_cb),
  BONOBO_UI_VERB_END
};

panel_applet_setup_menu(PANEL_APPLET(applet), Context_menu_xml,
applet_menu_verbs, NULL);

This applet has already been translated to fi_FI, nb_NO and pt_BR.
But when run, the panel-applet's right-click-menu is always in english,
it never loads the translated strings.

I have also tried with a separate menu.xml file. I can see that
$ cd po
$ make update

commands find the menu labels (_label="xxxx") and puts them all in the
po/rec-applet.pot file. But under runtime, right-click-menu is in
english. However the panel-applet's window (the GUI) is translated and
is OK.

Rec-applet source: https://launchpad.net/rec-applet
Packages: https://launchpad.net/~osmoma/+archive/rec-applet

Kindly
 Osmo Antero
 Applet maker.




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMb35MAAoJEGfwUONUm43RrHEH/3rvqNw7JUIejZ+Bo9emcmM7
/CxluftqsfqwFT+elaLIGROoDSwi+Tu2vBMZK9T3gFZUGN2UQoJqUkFJ1sW2yjqz
5jDSZNQzu1mOxAoCbTxp+1582RqtiJbKaq6BE2/GfEXLHcYybrMg3/xs1NHV5KBp
dn7vyKIfrK1OiZelHHB4U95oN7unw3jjsYGxCk5/MvSIkZ+BC3PxCy28p5zkQr7i
sXPbZRKR+hSi9A5o1z3NBDHEfWct8QZrZp4ZrJbcl9TXl2zvleEVmSN+E2dQtbNw
/zK2tzD9eCSvt03LTjdsj1vNmI/5mIV+sGlF6QLkBWurfDD6TnhKiV+0I5/GeG4=
=CVw2
-----END PGP SIGNATURE-----


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