[gnome-packagekit] Add another translation of an error enum



commit 3e301ab7bd54874465aa358e0b52ccac1e2a381f
Author: Richard Hughes <richard hughsie com>
Date:   Thu May 14 15:21:30 2009 +0100

    Add another translation of an error enum
---
 src/gpk-enum.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 1aa816d..3c9e3ef 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -488,6 +488,9 @@ gpk_error_enum_to_localised_text (PkErrorCodeEnum code)
 	case PK_ERROR_ENUM_MEDIA_CHANGE_REQUIRED:
 		text = _("A media change is required");
 		break;
+	case PK_ERROR_ENUM_NOT_AUTHORIZED:
+		text = _("Authorization failed");
+		break;
 	default:
 		egg_warning ("Unknown error");
 	}
@@ -674,6 +677,9 @@ gpk_error_enum_to_localised_message (PkErrorCodeEnum code)
 	case PK_ERROR_ENUM_MEDIA_CHANGE_REQUIRED:
 		text = _("Additional media is required to complete the transaction.");
 		break;
+	case PK_ERROR_ENUM_NOT_AUTHORIZED:
+		text = _("You have failed to provide correct authentication. Please check any passwords or account settings.");
+		break;
 	default:
 		egg_warning ("Unknown error, please report a bug at " GPK_BUGZILLA_URL ".\n"
 			    "More information is available in the detailed report.");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]