Commit b3bc97df authored by Milan Crha's avatar Milan Crha

[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.
parent 4a54b6e5
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment