From da3c78d5e68efdafb54f86063f52ba24e1457def Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 31 Dec 2004 18:17:57 +0000 Subject: [PATCH] use the orininal string if plug_in_actions_check_translation() fails 2004-12-31 Michael Natterer * app/actions/plug-in-actions.c: use the orininal string if plug_in_actions_check_translation() fails instead of bailing out. Fixes bug #162590. --- ChangeLog | 6 ++++++ app/actions/plug-in-actions.c | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 30b1fa1a70..47e90f6937 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-31 Michael Natterer + + * app/actions/plug-in-actions.c: use the orininal string if + plug_in_actions_check_translation() fails instead of bailing out. + Fixes bug #162590. + 2004-12-31 Michael Natterer * app/core/gimppalette.[ch]: removed the just added diff --git a/app/actions/plug-in-actions.c b/app/actions/plug-in-actions.c index 2db695f1bd..822e133bad 100644 --- a/app/actions/plug-in-actions.c +++ b/app/actions/plug-in-actions.c @@ -219,11 +219,12 @@ plug_in_actions_add_proc (GimpActionGroup *group, path_original = proc_def->menu_paths->data; path_translated = dgettext (locale_domain, path_original); - if (! plug_in_actions_check_translation (path_original, path_translated)) - return; + path_original = g_strdup (path_original); - path_original = g_strdup (path_original); - path_translated = g_strdup (path_translated); + if (plug_in_actions_check_translation (path_original, path_translated)) + path_translated = g_strdup (path_translated); + else + path_translated = g_strdup (path_original); p1 = strrchr (path_original, '/'); p2 = strrchr (path_translated, '/'); @@ -263,6 +264,8 @@ plug_in_actions_add_proc (GimpActionGroup *group, if (plug_in_actions_check_translation (original, translated)) plug_in_actions_build_path (group, original, translated); + else + plug_in_actions_build_path (group, original, original); } } else @@ -295,6 +298,8 @@ plug_in_actions_add_path (GimpActionGroup *group, if (plug_in_actions_check_translation (menu_path, path_translated)) plug_in_actions_build_path (group, menu_path, path_translated); + else + plug_in_actions_build_path (group, menu_path, menu_path); } void