forked from github/server
missing translations are the worst.
This commit is contained in:
parent
06f3e337b6
commit
cb537b1a93
3 changed files with 8 additions and 4 deletions
|
@ -1081,7 +1081,7 @@
|
||||||
<string name="lifepotion">
|
<string name="lifepotion">
|
||||||
<text locale="en">water of life</text>
|
<text locale="en">water of life</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="p2_p">
|
<string name="lifepotion_p">
|
||||||
<text locale="en">waters of life</text>
|
<text locale="en">waters of life</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="p3">
|
<string name="p3">
|
||||||
|
|
|
@ -2114,10 +2114,14 @@ static void eval_resource(struct opstack **stack, const void *userdata)
|
||||||
int j = opop(stack).i;
|
int j = opop(stack).i;
|
||||||
const struct resource_type *res = (const struct resource_type *)opop(stack).v;
|
const struct resource_type *res = (const struct resource_type *)opop(stack).v;
|
||||||
const char *c = LOC(lang, resourcename(res, j != 1));
|
const char *c = LOC(lang, resourcename(res, j != 1));
|
||||||
size_t len = strlen(c);
|
|
||||||
variant var;
|
variant var;
|
||||||
|
if (c) {
|
||||||
|
size_t len = strlen(c);
|
||||||
|
|
||||||
var.v = strcpy(balloc(len + 1), c);
|
var.v = strcpy(balloc(len + 1), c);
|
||||||
|
} else {
|
||||||
|
var.v = NULL;
|
||||||
|
}
|
||||||
opush(stack, var);
|
opush(stack, var);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ const char *locale_string(const locale * lang, const char *key, bool warn)
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void locale_setstring(locale * lang, const char *key, const char *value)
|
void locale_setstring(locale * lang, const char *key, const char *value)
|
||||||
|
|
Loading…
Reference in a new issue