[evolution-data-server/gnome-3-30] [CamelProvider] Do not localize empty strings in provider configuration



commit b3bc97df146e499cca081d5323dd71584a25c358
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]