Ignore empty translations

This commit is contained in:
Pierre Pronchery 2018-01-22 23:49:05 +01:00
parent 9fa0f98193
commit 5b42969ff0

View File

@ -958,7 +958,7 @@ static String const * _mimehandler_get_translation(MimeHandler * handler,
locale, key)) == NULL)
ret = _translation_strip_country(handler, locale, key);
string_delete(locale);
if(ret != NULL)
if(ret != NULL && string_get_length(ret) > 0)
return ret;
}
return config_get(handler->config, SECTION, key);