forked from github/server
strings with no locale should be added to the defalt locale
This commit is contained in:
parent
d29cd0a384
commit
3071cdb322
|
@ -128,7 +128,7 @@ locale_setstring(locale * lang, const char * key, const char * value)
|
|||
unsigned int id = hkey % SMAXHASH;
|
||||
struct locale_string * find;
|
||||
|
||||
assert(lang);
|
||||
if (lang==NULL) lang=default_locale;
|
||||
find = lang->strings[id];
|
||||
while (find) {
|
||||
if (find->hashkey==hkey && !strcmp(key, find->key)) break;
|
||||
|
|
Loading…
Reference in New Issue