[evolution-data-server] [CamelProvider] Do not localize empty strings in provider configuration
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [CamelProvider] Do not localize empty strings in provider configuration
- Date: Wed, 17 Oct 2018 08:19:51 +0000 (UTC)
commit f4b58bc962a4f0b6fc5e9f607d6de21df460f4a1
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 17 10:18:30 2018 +0200
[CamelProvider] Do not localize empty strings in provider configuration
Do not localize a config entry text which is an empty string, because
localizing empty string means getting information about the localization
itself.
src/camel/camel-provider.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/camel/camel-provider.c b/src/camel/camel-provider.c
index 602b378d1..e2cebd436 100644
--- a/src/camel/camel-provider.c
+++ b/src/camel/camel-provider.c
@@ -135,7 +135,7 @@ provider_register_internal (CamelProvider *provider)
conf = provider->extra_conf;
if (conf != NULL) {
for (ii = 0; conf[ii].type != CAMEL_PROVIDER_CONF_END; ii++) {
- if (conf[ii].text != NULL)
+ if (conf[ii].text && conf[ii].text[0])
conf[ii].text = P_(conf[ii].text);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]