Regionsstatistik komplett übersetzt.

This commit is contained in:
Enno Rehling 2005-04-11 19:10:38 +00:00
parent d9d7954a06
commit 192a52a4b6
2 changed files with 69 additions and 46 deletions

View File

@ -1445,43 +1445,50 @@ statistics(FILE * F, const region * r, const faction * f)
/* Region */
if (landregion(rterrain(r)) && rmoney(r)) {
m = msg_message("nr_stat_maxentertainment", "max", entertainmoney(r));
nr_render(m, f->locale, buf, sizeof(buf), f);
rps(F, buf);
msg_release(m);
m = msg_message("nr_stat_maxentertainment", "max", entertainmoney(r));
nr_render(m, f->locale, buf, sizeof(buf), f);
rps(F, buf);
msg_release(m);
}
if (production(r) && (!rterrain(r) == T_OCEAN || f->race == new_race[RC_AQUARIAN])) {
m = msg_message("nr_stat_salary", "max", fwage(r, f, true));
nr_render(m, f->locale, buf, sizeof(buf), f);
rps(F, buf);
msg_release(m);
m = msg_message("nr_stat_salary", "max", fwage(r, f, true));
nr_render(m, f->locale, buf, sizeof(buf), f);
rps(F, buf);
msg_release(m);
}
if (p) {
m = msg_message("nr_stat_recruits", "max", p / RECRUITFRACTION);
m = msg_message("nr_stat_recruits", "max", p / RECRUITFRACTION);
nr_render(m, f->locale, buf, sizeof(buf), f);
rps(F, buf);
msg_release(m);
if (!TradeDisabled()) {
if (buildingtype_exists(r, bt_find("caravan"))) {
m = msg_message("nr_stat_luxuries", "max",
(p * 2) / TRADE_FRACTION);
} else {
m = msg_message("nr_stat_luxuries", "max",
p / TRADE_FRACTION);
}
nr_render(m, f->locale, buf, sizeof(buf), f);
rps(F, buf);
msg_release(m);
if (!TradeDisabled()) {
if (buildingtype_exists(r, bt_find("caravan"))) {
sprintf(buf, "Luxusgüter zum angegebenen Preis: %d",
(p * 2) / TRADE_FRACTION);
} else {
sprintf(buf, "Luxusgüter zum angegebenen Preis: %d",
p / TRADE_FRACTION);
}
rps(F, buf);
}
}
}
/* Info über Einheiten */
sprintf(buf, "Personen: %d", number);
rps(F, buf);
for (itm = items; itm; itm=itm->next) {
sprintf(buf, "%s: %d", LOC(f->locale, resourcename(itm->type->rtype, GR_PLURAL)), itm->number);
rps(F, buf);
}
while (items) i_free(i_remove(&items, items));
m = msg_message("nr_stat_people", "max", number);
nr_render(m, f->locale, buf, sizeof(buf), f);
rps(F, buf);
msg_release(m);
for (itm = items; itm; itm=itm->next) {
sprintf(buf, "%s: %d",
LOC(f->locale, resourcename(itm->type->rtype, GR_PLURAL)),
itm->number);
rps(F, buf);
}
while (items) i_free(i_remove(&items, items));
}
static void

View File

@ -388,7 +388,7 @@
<text locale="fr">$trail($region,$locale("en"))</text>
<text locale="en">$trail($region,$locale("en"))</text>
</message>
<message name="nr_population" section="events">
<message name="nr_population" section="nr">
<type>
<arg name="population" type="int"/>
<arg name="units" type="int"/>
@ -397,7 +397,7 @@
<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>
</message>
<message name="nr_stat_header" section="events">
<message name="nr_stat_header" section="nr">
<type>
<arg name="region" type="region"/>
</type>
@ -405,23 +405,39 @@
<text locale="en">"Statistics for $region($region):"</text>
<text locale="fr">"Statistics for $region($region):"</text>
</message>
<message name="nr_stat_maxentertainment" section="events">
<message name="nr_stat_maxentertainment" section="nr">
<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>
<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">
<message name="nr_stat_luxuries" section="nr">
<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>
<text locale="de">"Luxusgüter zum angegebenen Preis: $int($max)"</text>
<text locale="en">"Luxury goods at this price: $int($max)"</text>
<text locale="fr">"Luxury goods at this price: $int($max)"</text>
</message>
<message name="nr_stat_recruits" section="events">
<message name="nr_stat_salary" section="nr">
<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_people" section="nr">
<type>
<arg name="max" type="int"/>
</type>
<text locale="de">"Personen: $int($max)"</text>
<text locale="en">"People: $int($max)"</text>
<text locale="fr">"People: $int($max)"</text>
</message>
<message name="nr_stat_recruits" section="nr">
<type>
<arg name="max" type="int"/>
</type>
@ -429,7 +445,7 @@
<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="nr">
<type>
<arg name="score" type="int"/>
<arg name="average" type="int"/>
@ -438,7 +454,7 @@
<text locale="fr">"Your faction has a score of $int($score). The average score for similar factions is $int($average)."</text>
<text locale="en">"Your faction has a score of $int($score). The average score for similar factions is $int($average)."</text>
</message>
<message name="nr_header_date" section="events">
<message name="nr_header_date" section="nr">
<type>
<arg name="game" type="string"/>
<arg name="date" type="string"/>
@ -447,7 +463,7 @@
<text locale="fr">"Report for $game, $date"</text>
<text locale="en">"Report for $game, $date"</text>
</message>
<message name="nr_vicinitystart" section="events">
<message name="nr_vicinitystart" section="nr">
<type>
<arg name="dir" type="int"/>
<arg name="region" type="region"/>
@ -456,7 +472,7 @@
<text locale="fr">"To the $direction($dir) lies $trail($region,$locale("en"))"</text>
<text locale="en">"To the $direction($dir) lies $trail($region,$locale("en"))"</text>
</message>
<message name="nr_market_price" section="events">
<message name="nr_market_price" section="nr">
<type>
<arg name="price" type="int"/>
<arg name="product" type="resource"/>
@ -465,7 +481,7 @@
<text locale="fr">"$resource($product,0) for $int($price) silver"</text>
<text locale="en">"$resource($product,0) for $int($price) silver"</text>
</message>
<message name="nr_market_sale" section="events">
<message name="nr_market_sale" section="nr">
<type>
<arg name="price" type="int"/>
<arg name="product" type="resource"/>
@ -578,9 +594,9 @@
<arg name="region" type="region"/>
<arg name="string" type="string"/>
</type>
<text locale="de">"Eine Botschaft von $unit($unit) aus $region($region): '$string'""</text>
<text locale="fr">"A message by $unit($unit) from $region($region): '$string'""</text>
<text locale="en">"A message by $unit($unit) from $region($region): '$string'""</text>
<text locale="de">"Eine Botschaft von $unit($unit) aus $region($region): '$string'"</text>
<text locale="fr">"A message by $unit($unit) from $region($region): '$string'"</text>
<text locale="en">"A message by $unit($unit) from $region($region): '$string'"</text>
</message>
<message name="nomaintenance" section="events">
<type>