1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 07:16:01 +00:00

Add language-zh.cpp

This commit is contained in:
1iuh
2024-08-02 10:31:28 +08:00
committed by liuh
parent 617f125632
commit 6683d89ebc
5 changed files with 9229 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ EX const string dnameof(eWall w) { return w >= 0 && w < walltypes ? winf[w].name
EX const string dnameof(eItem i) { return i >= 0 && i < ittypes ? iinf[i].name : hr::format("[ITEM %d]", i); }
#if HDR
#define NUMLAN 8
#define NUMLAN 9
struct stringpar {
string v;
@@ -303,6 +303,9 @@ void parrep(string& x, string w, stringpar p) {
rep(x, "%abl"+w, data.abl);
rep(x, "%d"+w, data.abl); // Dativ (which equals Ablative in German)
}
if(l == 8) {
rep(x, "%"+w, data.nom);
}
#endif
if(true) {
// proper names (R'Lyeh)