forked from github/server
no need to create locale here
This commit is contained in:
parent
ac8250ecd8
commit
75514014bc
|
@ -157,7 +157,7 @@ size_t report_status(const unit * u, const struct locale *lang, char *fsbuf, siz
|
||||||
|
|
||||||
if (!status) {
|
if (!status) {
|
||||||
const char *lname = locale_name(lang);
|
const char *lname = locale_name(lang);
|
||||||
struct locale *wloc = get_or_create_locale(lname);
|
struct locale *wloc = get_locale(lname);
|
||||||
log_warning("no translation for combat status %s in %s", combatstatus[u->status], lname);
|
log_warning("no translation for combat status %s in %s", combatstatus[u->status], lname);
|
||||||
locale_setstring(wloc, combatstatus[u->status], combatstatus[u->status]+7);
|
locale_setstring(wloc, combatstatus[u->status], combatstatus[u->status]+7);
|
||||||
len = strlcpy(fsbuf, combatstatus[u->status]+7, buflen);
|
len = strlcpy(fsbuf, combatstatus[u->status]+7, buflen);
|
||||||
|
|
Loading…
Reference in New Issue