1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-09 15:39:55 +00:00

Merge pull request #384 from 1iuh/master

add measure words and  fix missing translations in language-zh.cpp
This commit is contained in:
Zeno Rogue 2024-08-13 19:06:01 +02:00 committed by GitHub
commit 4160462991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {