[gimp] plug-ins: Translate win32 error messages in web-browser.c
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: Translate win32 error messages in web-browser.c
- Date: Sat, 8 Aug 2009 08:29:01 +0000 (UTC)
commit f8930a5aaf05f918f0cd9fb752812e3d1d1f22a5
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Aug 8 10:30:10 2009 +0200
plug-ins: Translate win32 error messages in web-browser.c
plug-ins/common/web-browser.c | 31 +++++++++++++++----------------
1 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/plug-ins/common/web-browser.c b/plug-ins/common/web-browser.c
index 6601709..85941e0 100644
--- a/plug-ins/common/web-browser.c
+++ b/plug-ins/common/web-browser.c
@@ -134,53 +134,52 @@ browser_open_url (const gchar *url,
{
const gchar *err;
- /* FIXME: should be translated when 2.6 got it's own branch */
switch ((gint) hinst)
{
case 0 :
- err = ("The operating system is out of memory or resources.");
+ err = _("The operating system is out of memory or resources.");
break;
case ERROR_FILE_NOT_FOUND :
- err = ("The specified file was not found.");
+ err = _("The specified file was not found.");
break;
case ERROR_PATH_NOT_FOUND :
- err = ("The specified path was not found.");
+ err = _("The specified path was not found.");
break;
case ERROR_BAD_FORMAT :
- err = ("The .exe file is invalid (non-Microsoft Win32 .exe or error in .exe image).");
+ err = _("The .exe file is invalid (non-Microsoft Win32 .exe or error in .exe image).");
break;
case SE_ERR_ACCESSDENIED :
- err = ("The operating system denied access to the specified file.");
+ err = _("The operating system denied access to the specified file.");
break;
case SE_ERR_ASSOCINCOMPLETE :
- err = ("The file name association is incomplete or invalid.");
+ err = _("The file name association is incomplete or invalid.");
break;
case SE_ERR_DDEBUSY :
- err = ("DDE transaction busy");
+ err = _("DDE transaction busy");
break;
case SE_ERR_DDEFAIL :
- err = ("The DDE transaction failed.");
+ err = _("The DDE transaction failed.");
break;
case SE_ERR_DDETIMEOUT :
- err = ("The DDE transaction timed out.");
+ err = _("The DDE transaction timed out.");
break;
case SE_ERR_DLLNOTFOUND :
- err = ("The specified DLL was not found.");
+ err = _("The specified DLL was not found.");
break;
case SE_ERR_NOASSOC :
- err = ("There is no application associated with the given file name extension.");
+ err = _("There is no application associated with the given file name extension.");
break;
case SE_ERR_OOM :
- err = ("There was not enough memory to complete the operation.");
+ err = _("There was not enough memory to complete the operation.");
break;
case SE_ERR_SHARE:
- err = ("A sharing violation occurred.");
+ err = _("A sharing violation occurred.");
break;
default :
- err = ("Unknown Windows error.");
+ err = _("Unknown Windows error.");
}
- g_set_error (error, 0, 0, ("Failed to open '%s': %s"), url, err);
+ g_set_error (error, 0, 0, _("Failed to open '%s': %s"), url, err);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]