diff --git a/ChangeLog b/ChangeLog index 30ac4e16f7..e51a1903a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-06 Sven Neumann + + * plug-ins/help/domain.c: try to improve the error message that is + shown for missing help files. + 2005-10-05 Sven Neumann * app/dialogs/about-dialog.c: set application name to "GIMP", the diff --git a/plug-ins/help/domain.c b/plug-ins/help/domain.c index 90e510eb8e..46bd17c0f8 100644 --- a/plug-ins/help/domain.c +++ b/plug-ins/help/domain.c @@ -171,17 +171,20 @@ domain_map (HelpDomain *domain, if (! domain_locale_parse (domain, locale, &error)) { - const gchar *msg; - if (error->code == G_FILE_ERROR_NOENT) - msg = _("The GIMP help files are not installed."); + { + g_message ("%s\n\n%s", + _("The GIMP help files are not found."), + _("Please install the additional help package or use " + "the online user manual at http://docs.gimp.org/.")); + } else - msg = _("There is a problem with the GIMP help files."); - - g_message ("%s\n\n%s\n\n%s", - msg, - error->message, - _("Please check your installation.")); + { + g_message ("%s\n\n%s\n\n%s", + _("There is a problem with the GIMP help files."), + error->message, + _("Please check your installation.")); + } g_error_free (error); diff --git a/plug-ins/help/gimphelp.c b/plug-ins/help/gimphelp.c index 90e510eb8e..46bd17c0f8 100644 --- a/plug-ins/help/gimphelp.c +++ b/plug-ins/help/gimphelp.c @@ -171,17 +171,20 @@ domain_map (HelpDomain *domain, if (! domain_locale_parse (domain, locale, &error)) { - const gchar *msg; - if (error->code == G_FILE_ERROR_NOENT) - msg = _("The GIMP help files are not installed."); + { + g_message ("%s\n\n%s", + _("The GIMP help files are not found."), + _("Please install the additional help package or use " + "the online user manual at http://docs.gimp.org/.")); + } else - msg = _("There is a problem with the GIMP help files."); - - g_message ("%s\n\n%s\n\n%s", - msg, - error->message, - _("Please check your installation.")); + { + g_message ("%s\n\n%s\n\n%s", + _("There is a problem with the GIMP help files."), + error->message, + _("Please check your installation.")); + } g_error_free (error); diff --git a/plug-ins/help/gimphelpdomain.c b/plug-ins/help/gimphelpdomain.c index 90e510eb8e..46bd17c0f8 100644 --- a/plug-ins/help/gimphelpdomain.c +++ b/plug-ins/help/gimphelpdomain.c @@ -171,17 +171,20 @@ domain_map (HelpDomain *domain, if (! domain_locale_parse (domain, locale, &error)) { - const gchar *msg; - if (error->code == G_FILE_ERROR_NOENT) - msg = _("The GIMP help files are not installed."); + { + g_message ("%s\n\n%s", + _("The GIMP help files are not found."), + _("Please install the additional help package or use " + "the online user manual at http://docs.gimp.org/.")); + } else - msg = _("There is a problem with the GIMP help files."); - - g_message ("%s\n\n%s\n\n%s", - msg, - error->message, - _("Please check your installation.")); + { + g_message ("%s\n\n%s\n\n%s", + _("There is a problem with the GIMP help files."), + error->message, + _("Please check your installation.")); + } g_error_free (error); diff --git a/plug-ins/help/gimphelplocale.c b/plug-ins/help/gimphelplocale.c index 90e510eb8e..46bd17c0f8 100644 --- a/plug-ins/help/gimphelplocale.c +++ b/plug-ins/help/gimphelplocale.c @@ -171,17 +171,20 @@ domain_map (HelpDomain *domain, if (! domain_locale_parse (domain, locale, &error)) { - const gchar *msg; - if (error->code == G_FILE_ERROR_NOENT) - msg = _("The GIMP help files are not installed."); + { + g_message ("%s\n\n%s", + _("The GIMP help files are not found."), + _("Please install the additional help package or use " + "the online user manual at http://docs.gimp.org/.")); + } else - msg = _("There is a problem with the GIMP help files."); - - g_message ("%s\n\n%s\n\n%s", - msg, - error->message, - _("Please check your installation.")); + { + g_message ("%s\n\n%s\n\n%s", + _("There is a problem with the GIMP help files."), + error->message, + _("Please check your installation.")); + } g_error_free (error);