mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +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:
commit
4160462991
@ -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
|
||||||
|
943
language-zh.cpp
943
language-zh.cpp
File diff suppressed because it is too large
Load Diff
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user