mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-28 02:50:34 +00:00
French language translation by @3raven
This commit is contained in:
parent
77e2c64538
commit
8a1ee4622b
@ -63,7 +63,7 @@ savepng-loc.o: savepng.cpp
|
||||
hyper-rogueviz.o: hyper.cpp graph.cpp hyperpoint.cpp geometry.cpp cell.cpp heptagon.cpp game.cpp classes.cpp polygons.cpp language.cpp language-data.cpp achievement.cpp shmup.cpp patterns.cpp mapeditor.cpp netgen.cpp yendor.cpp hyper.h rug.cpp flags.cpp system.cpp landgen.cpp orbs.cpp complex.cpp conformal.cpp menus.cpp init.cpp dialogs.cpp sound.cpp util.cpp ${drogueviz} fieldpattern.cpp ${MAIN} control.cpp commandline.cpp
|
||||
${CXX} ${PROF} ${MAIN} -c -o hyper-rogueviz.o ${MYFLAGS}
|
||||
|
||||
langen: langen.cpp language-cz.cpp language-pl.cpp language-tr.cpp language-ru.cpp language-de.cpp language-ptbr.cpp
|
||||
langen: langen.cpp language-cz.cpp language-pl.cpp language-tr.cpp language-ru.cpp language-de.cpp language-ptbr.cpp language-fr.cpp
|
||||
${CXX} langen.cpp -o langen -g
|
||||
|
||||
language-data.cpp: langen
|
||||
|
24
langen.cpp
24
langen.cpp
@ -22,7 +22,7 @@
|
||||
|
||||
template<class T> int isize(const T& x) { return x.size(); }
|
||||
|
||||
#define NUMLAN 7
|
||||
#define NUMLAN 8
|
||||
|
||||
// language generator
|
||||
|
||||
@ -265,6 +265,27 @@ void langPT() {
|
||||
current_language = "-";
|
||||
}
|
||||
|
||||
void langFR() {
|
||||
current_language = "FR";
|
||||
static std::pair<const char *, const char *> ds[] = {
|
||||
#define S(a,b) { a, b },
|
||||
#define N(a,b,c,d,e)
|
||||
#include "language-fr.cpp"
|
||||
#undef N
|
||||
#undef S
|
||||
};
|
||||
static std::pair<const char *, noun2> ns[] = {
|
||||
#define S(a,b)
|
||||
#define N(a,b,c,d,e) { a, noun2{ b, c, d, "", e } },
|
||||
#include "language-fr.cpp"
|
||||
#undef N
|
||||
#undef S
|
||||
};
|
||||
for(auto&& elt : ds) d[7].add(elt.first, elt.second);
|
||||
for(auto&& elt : ns) nouns[7].add(elt.first, elt.second);
|
||||
current_language = "-";
|
||||
}
|
||||
|
||||
int completeness[NUMLAN];
|
||||
|
||||
template<class T>
|
||||
@ -332,6 +353,7 @@ int main() {
|
||||
|
||||
langPL(); langCZ(); langRU();
|
||||
langTR(); langDE(); langPT();
|
||||
langFR();
|
||||
|
||||
// verify
|
||||
compute_completeness(d);
|
||||
|
4033
language-fr.cpp
Normal file
4033
language-fr.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -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 : format("[ITEM %d]", i); }
|
||||
|
||||
#if HDR
|
||||
#define NUMLAN 7
|
||||
#define NUMLAN 8
|
||||
|
||||
struct stringpar {
|
||||
string v;
|
||||
|
Loading…
Reference in New Issue
Block a user