1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00
This commit is contained in:
Zeno Rogue 2024-08-21 20:25:53 +02:00
commit 4ccc235710
3 changed files with 462 additions and 486 deletions

View File

@ -294,14 +294,14 @@ void langZH() {
current_language = "ZH"; current_language = "ZH";
static std::pair<const char *, const char *> ds[] = { static std::pair<const char *, const char *> ds[] = {
#define S(a,b) { a, b }, #define S(a,b) { a, b },
#define N(a,b,c) #define N(a,b,c,d)
#include "language-zh.cpp" #include "language-zh.cpp"
#undef N #undef N
#undef S #undef S
}; };
static std::pair<const char *, noun2> ns[] = { static std::pair<const char *, noun2> ns[] = {
#define S(a,b) #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" #include "language-zh.cpp"
#undef N #undef N
#undef S #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) { if(l == 8) {
rep(x, "%"+w, data.nom); rep(x, "%"+w, data.nom);
rep(x, "%m"+w, data.abl); // Measure word in Chinese
} }
#endif #endif
if(true) { if(true) {