translate diplomatic status in the NR

This commit is contained in:
Enno Rehling 2012-07-08 15:59:27 -07:00
parent 9812a8dc34
commit e7f0650e4c
2 changed files with 24 additions and 4 deletions

View File

@ -7007,6 +7007,26 @@
<text locale="en">none</text> <text locale="en">none</text>
</string> </string>
<string name="faction_help_one">
<text locale="de">Wir helfen der Partei</text>
<text locale="en">We are helping the faction</text>
</string>
<string name="faction_help_many">
<text locale="de">Wir helfen den Parteien</text>
<text locale="en">We are helping the factions</text>
</string>
<string name="group_help_one">
<text locale="de">hilft der Partei</text>
<text locale="en">is helping the faction</text>
</string>
<string name="group_help_many">
<text locale="de">hilft den Parteien</text>
<text locale="en">is helping the factions</text>
</string>
<string name="list_and"> <string name="list_and">
<text locale="de"> und </text> <text locale="de"> und </text>
<text locale="en"> and </text> <text locale="en"> and </text>

View File

@ -1727,9 +1727,9 @@ static void allies(FILE * F, const faction * f)
int bytes; int bytes;
size_t size = sizeof(buf); size_t size = sizeof(buf);
if (!f->allies->next) { if (!f->allies->next) {
bytes = (int)strlcpy(buf, "Wir helfen der Partei ", size); bytes = snprintf(buf, size, "%s ", LOC(f->locale, "faction_help_one"));
} else { } else {
bytes = (int)strlcpy(buf, "Wir helfen den Parteien ", size); bytes = snprintf(buf, size, "%s ", LOC(f->locale, "faction_help_many"));
} }
size -= bytes; size -= bytes;
show_allies(f, f->allies, buf + bytes, size); show_allies(f, f->allies, buf + bytes, size);
@ -1742,9 +1742,9 @@ static void allies(FILE * F, const faction * f)
int bytes; int bytes;
size_t size = sizeof(buf); size_t size = sizeof(buf);
if (!g->allies->next) { if (!g->allies->next) {
bytes = snprintf(buf, size, "%s hilft der Partei ", g->name); bytes = snprintf(buf, size, "%s %s ", g->name, LOC(f->locale, "group_help_one"));
} else { } else {
bytes = snprintf(buf, size, "%s hilft den Parteien ", g->name); bytes = snprintf(buf, size, "%s %s ", g->name, LOC(f->locale, "group_help_many"));
} }
size -= bytes; size -= bytes;
show_allies(f, g->allies, buf + bytes, size); show_allies(f, g->allies, buf + bytes, size);