[evolution-data-server] Add translator comments into camel-sasl-anonymous.c
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Add translator comments into camel-sasl-anonymous.c
- Date: Thu, 25 Oct 2018 16:20:55 +0000 (UTC)
commit 4839df3a745bd3973cbe45fe30c325f454040a94
Author: Milan Crha <mcrha redhat com>
Date: Thu Oct 25 18:21:21 2018 +0200
Add translator comments into camel-sasl-anonymous.c
Related to https://bugzilla.gnome.org/show_bug.cgi?id=658742
src/camel/camel-sasl-anonymous.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-sasl-anonymous.c b/src/camel/camel-sasl-anonymous.c
index 90ff4889d..ca0f98c14 100644
--- a/src/camel/camel-sasl-anonymous.c
+++ b/src/camel/camel-sasl-anonymous.c
@@ -78,6 +78,9 @@ sasl_anonymous_challenge_sync (CamelSasl *sasl,
g_set_error (
error, CAMEL_SERVICE_ERROR,
CAMEL_SERVICE_ERROR_CANT_AUTHENTICATE,
+ /* Translators: the 'trace information' term comes from
https://tools.ietf.org/html/rfc4505
+ In this case the user set to use an email address as the trace information,
+ but the provided value is not a valid email address. */
_("Invalid email address trace information:\n%s"),
sasl_anon->priv->trace_info);
g_object_unref (cia);
@@ -92,6 +95,9 @@ sasl_anonymous_challenge_sync (CamelSasl *sasl,
g_set_error (
error, CAMEL_SERVICE_ERROR,
CAMEL_SERVICE_ERROR_CANT_AUTHENTICATE,
+ /* Translators: the 'trace information' term comes from
https://tools.ietf.org/html/rfc4505
+ In this case the user set to use an opaque trace information,
+ but the provided value looks like an email address. */
_("Invalid opaque trace information:\n%s"),
sasl_anon->priv->trace_info);
return NULL;
@@ -103,11 +109,10 @@ sasl_anonymous_challenge_sync (CamelSasl *sasl,
ret = g_byte_array_new ();
break;
default:
- g_set_error (
+ g_set_error_literal (
error, CAMEL_SERVICE_ERROR,
CAMEL_SERVICE_ERROR_CANT_AUTHENTICATE,
- _("Invalid trace information:\n%s"),
- sasl_anon->priv->trace_info);
+ _("Invalid argument"));
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]