forked from github/server
Regionsstatistik im NR teilweise übersetzt. Ich bin ja sooo faul.
This commit is contained in:
parent
1b56db93d9
commit
d9d7954a06
|
@ -1421,6 +1421,7 @@ statistics(FILE * F, const region * r, const faction * f)
|
||||||
{
|
{
|
||||||
const unit *u;
|
const unit *u;
|
||||||
int number, p;
|
int number, p;
|
||||||
|
message * m;
|
||||||
item *itm, *items = NULL;
|
item *itm, *items = NULL;
|
||||||
p = rpeasants(r);
|
p = rpeasants(r);
|
||||||
number = 0;
|
number = 0;
|
||||||
|
@ -1436,23 +1437,30 @@ statistics(FILE * F, const region * r, const faction * f)
|
||||||
|
|
||||||
/* Ausgabe */
|
/* Ausgabe */
|
||||||
rnl(F);
|
rnl(F);
|
||||||
sprintf(buf, "Statistik für %s:", f_regionid(r, f));
|
m = msg_message("nr_stat_header", "region", r);
|
||||||
|
nr_render(m, f->locale, buf, sizeof(buf), f);
|
||||||
rps(F, buf);
|
rps(F, buf);
|
||||||
|
msg_release(m);
|
||||||
rnl(F);
|
rnl(F);
|
||||||
|
|
||||||
/* Region */
|
/* Region */
|
||||||
if (landregion(rterrain(r)) && rmoney(r)) {
|
if (landregion(rterrain(r)) && rmoney(r)) {
|
||||||
sprintf(buf, "Unterhaltung: max. %d Silber", entertainmoney(r));
|
m = msg_message("nr_stat_maxentertainment", "max", entertainmoney(r));
|
||||||
|
nr_render(m, f->locale, buf, sizeof(buf), f);
|
||||||
rps(F, buf);
|
rps(F, buf);
|
||||||
|
msg_release(m);
|
||||||
}
|
}
|
||||||
if (production(r) && (!rterrain(r) == T_OCEAN || f->race == new_race[RC_AQUARIAN])) {
|
if (production(r) && (!rterrain(r) == T_OCEAN || f->race == new_race[RC_AQUARIAN])) {
|
||||||
sprintf(buf, "Lohn für Arbeit: %d Silber", fwage(r, f, true));
|
m = msg_message("nr_stat_salary", "max", fwage(r, f, true));
|
||||||
|
nr_render(m, f->locale, buf, sizeof(buf), f);
|
||||||
rps(F, buf);
|
rps(F, buf);
|
||||||
|
msg_release(m);
|
||||||
}
|
}
|
||||||
if (p) {
|
if (p) {
|
||||||
sprintf(buf, "Rekrutieren: max. %d Bauern",
|
m = msg_message("nr_stat_recruits", "max", p / RECRUITFRACTION);
|
||||||
p / RECRUITFRACTION);
|
nr_render(m, f->locale, buf, sizeof(buf), f);
|
||||||
rps(F, buf);
|
rps(F, buf);
|
||||||
|
msg_release(m);
|
||||||
|
|
||||||
if (!TradeDisabled()) {
|
if (!TradeDisabled()) {
|
||||||
if (buildingtype_exists(r, bt_find("caravan"))) {
|
if (buildingtype_exists(r, bt_find("caravan"))) {
|
||||||
|
|
|
@ -397,6 +397,38 @@
|
||||||
<text locale="fr">"Your faction has $int($population) people in $int($units) units."</text>
|
<text locale="fr">"Your faction has $int($population) people in $int($units) units."</text>
|
||||||
<text locale="en">"Your faction has $int($population) people in $int($units) units."</text>
|
<text locale="en">"Your faction has $int($population) people in $int($units) units."</text>
|
||||||
</message>
|
</message>
|
||||||
|
<message name="nr_stat_header" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="region" type="region"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Statistik für $region($region):"</text>
|
||||||
|
<text locale="en">"Statistics for $region($region):"</text>
|
||||||
|
<text locale="fr">"Statistics for $region($region):"</text>
|
||||||
|
</message>
|
||||||
|
<message name="nr_stat_maxentertainment" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="max" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Unterhaltung: max. $int($max) Silber."</text>
|
||||||
|
<text locale="en">"Entertainment: max. $int($max) silver."</text>
|
||||||
|
<text locale="fr">"Entertainment: max. $int($max) silver."</text>
|
||||||
|
</message>
|
||||||
|
<message name="nr_stat_salary" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="max" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Lohn für Arbeit: $int($max) Silber."</text>
|
||||||
|
<text locale="en">"Worker's salary: $int($max) silver."</text>
|
||||||
|
<text locale="fr">"Worker's salary: $int($max) silver."</text>
|
||||||
|
</message>
|
||||||
|
<message name="nr_stat_recruits" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="max" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Rekruten: max. $int($max) Bauern."</text>
|
||||||
|
<text locale="en">"Recruits: $int($max) peasants."</text>
|
||||||
|
<text locale="fr">"Recruits: $int($max) peasants."</text>
|
||||||
|
</message>
|
||||||
<message name="nr_score" section="events">
|
<message name="nr_score" section="events">
|
||||||
<type>
|
<type>
|
||||||
<arg name="score" type="int"/>
|
<arg name="score" type="int"/>
|
||||||
|
|
Loading…
Reference in New Issue