From 2fe030bd19d1bcb17bc8a3f6e762232b63eef727 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 31 Oct 2008 20:00:19 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20558660=20=E2=80=93=20help=20behavior=20fo?= =?UTF-8?q?r=20locales=20without=20manual=20translation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-10-31 Sven Neumann Bug 558660 – help behavior for locales without manual translation * app/widgets/gimphelp.c (gimp_help_user_manual_is_installed): as a fallback check for the english user manual. svn path=/trunk/; revision=27500 --- ChangeLog | 7 +++++++ app/widgets/gimphelp.c | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 24eabdf415..c877931cb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-10-31 Sven Neumann + + Bug 558660 – help behavior for locales without manual translation + + * app/widgets/gimphelp.c (gimp_help_user_manual_is_installed): + as a fallback check for the english user manual. + 2008-10-31 Sven Neumann * libgimp/gimpprocview.c: added basic gtk-doc comment for diff --git a/app/widgets/gimphelp.c b/app/widgets/gimphelp.c index 64bb1bc8db..bb7c5dcff5 100644 --- a/app/widgets/gimphelp.c +++ b/app/widgets/gimphelp.c @@ -171,6 +171,15 @@ gimp_help_user_manual_is_installed (Gimp *gimp) } g_free (locales); + + if (! found) + { + gchar *path = g_build_filename (basedir, "en", "gimp-help.xml", NULL); + + found = g_file_test (path, G_FILE_TEST_IS_REGULAR); + + g_free (path); + } } g_free (basedir);