1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-19 10:19:36 +00:00

add measure words and fix missing translations in language-zh.cpp

This commit is contained in:
1iuh 2024-08-05 11:48:14 +08:00 committed by liuh
parent 6683d89ebc
commit 655dc115d7
3 changed files with 462 additions and 486 deletions

View File

@ -294,14 +294,14 @@ void langZH() {
current_language = "ZH";
static std::pair<const char *, const char *> ds[] = {
#define S(a,b) { a, b },
#define N(a,b,c)
#define N(a,b,c,d)
#include "language-zh.cpp"
#undef N
#undef S
};
static std::pair<const char *, noun2> ns[] = {
#define S(a,b)
#define N(a,b,c) { a, noun2{ b, c, c, c, c } },
#define N(a,b,c,d) { a, noun2{ b, c, c, c, d } },
#include "language-zh.cpp"
#undef N
#undef S

File diff suppressed because it is too large Load Diff

View File

@ -305,6 +305,7 @@ void parrep(string& x, string w, stringpar p) {
}
if(l == 8) {
rep(x, "%"+w, data.nom);
rep(x, "%m"+w, data.abl); // Measure word in Chinese
}
#endif
if(true) {