try to improve the error message that is shown for missing help files.

2005-10-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/domain.c: try to improve the error message that is
	shown for missing help files.
This commit is contained in:
Sven Neumann 2005-10-05 22:27:50 +00:00 committed by Sven Neumann
parent a637cdd039
commit caf18b2b80
5 changed files with 53 additions and 36 deletions

View File

@ -1,3 +1,8 @@
2005-10-06 Sven Neumann <sven@gimp.org>
* plug-ins/help/domain.c: try to improve the error message that is
shown for missing help files.
2005-10-05 Sven Neumann <sven@gimp.org>
* app/dialogs/about-dialog.c: set application name to "GIMP", the

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);