Hi,
This is an easy fix to handle /*/tearoff1 menu item translation handling.
It may reduce translation mismatching error.
enjoy
--
SHIRASAKI Yasuhiro : Experimental Particle Physics, JLC Team
Graduate School of Science, TOHOKU University 980-8578 Japan.
--- app/menus.c.orig Tue Oct 12 00:35:24 1999
+++ app/menus.c Tue Oct 12 01:10:50 1999
@@ -63,12 +63,7 @@
static gchar* G_GNUC_UNUSED dummyMenus[] =
{
N_("/File/MRU00 "),
- N_("/File"),
N_("/File/Dialogs"),
- N_("/Image/Transforms"),
- N_("/Layers"),
- N_("/Tools"),
- N_("/Dialogs"),
N_("/View/Zoom"),
N_("/Stack")
};
@@ -1233,16 +1228,27 @@
retval = gettext (path);
if (!strcmp (path, retval))
{
- strcpy (menupath, "<Image>");
- strncat (menupath, path, sizeof(menupath) - sizeof("<Image>"));
- retval = dgettext ("gimp-std-plugins", menupath) + strlen ("<Image>");
-
- if (!strcmp (path, retval))
- {
- strcpy (menupath, "<Toolbox>");
- strncat (menupath, path, sizeof(menupath) - sizeof("<Toolbox>"));
- retval = dgettext ("gimp-std-plugins", menupath) + strlen ("<Toolbox>");
- }
+ strcpy (menupath, path);
+ strncat (menupath, "/tearoff1", sizeof(menupath) - strlen(menupath) - 1);
+ retval = gettext(menupath);
+ if (strcmp (menupath, retval))
+ {
+ strcpy(menupath, retval);
+ *(strrchr(menupath, '/')) = '\0';
+ return menupath;
+ }
+ else
+ {
+ strcpy (menupath, "<Image>");
+ strncat (menupath, path, sizeof(menupath) - sizeof("<Image>"));
+ retval = dgettext ("gimp-std-plugins", menupath) + strlen ("<Image>");
+ if (!strcmp (path, retval))
+ {
+ strcpy (menupath, "<Toolbox>");
+ strncat (menupath, path, sizeof(menupath) - sizeof("<Toolbox>"));
+ retval = dgettext ("gimp-std-plugins", menupath) + strlen ("<Toolbox>");
+ }
+ }
}
return retval;