omit charset from en_US.UTF-8 env variable when picking i18n strings, handle no preference case
This commit is contained in:
parent
f36fe8c22c
commit
da15a59717
@ -419,7 +419,8 @@ parse_i18n_string (void *cls,
|
||||
|
||||
val = json_object_get (root,
|
||||
ctx->field);
|
||||
if (NULL != i18n)
|
||||
if ( (NULL != i18n) &&
|
||||
(NULL != ctx->lp) )
|
||||
{
|
||||
double best = 0.0;
|
||||
json_t *pos;
|
||||
|
Loading…
Reference in New Issue
Block a user