From e7f0650e4caa6e9b0c086b90a4afdb3ac7589ccf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 8 Jul 2012 15:59:27 -0700 Subject: [PATCH] translate diplomatic status in the NR --- res/de/strings.xml | 20 ++++++++++++++++++++ src/gamecode/report.c | 8 ++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/res/de/strings.xml b/res/de/strings.xml index c0f770f37..72292a714 100644 --- a/res/de/strings.xml +++ b/res/de/strings.xml @@ -7007,6 +7007,26 @@ none + + Wir helfen der Partei + We are helping the faction + + + + Wir helfen den Parteien + We are helping the factions + + + + hilft der Partei + is helping the faction + + + + hilft den Parteien + is helping the factions + + und and diff --git a/src/gamecode/report.c b/src/gamecode/report.c index ee4f24608..c5a7346eb 100644 --- a/src/gamecode/report.c +++ b/src/gamecode/report.c @@ -1727,9 +1727,9 @@ static void allies(FILE * F, const faction * f) int bytes; size_t size = sizeof(buf); 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 { - bytes = (int)strlcpy(buf, "Wir helfen den Parteien ", size); + bytes = snprintf(buf, size, "%s ", LOC(f->locale, "faction_help_many")); } size -= bytes; show_allies(f, f->allies, buf + bytes, size); @@ -1742,9 +1742,9 @@ static void allies(FILE * F, const faction * f) int bytes; size_t size = sizeof(buf); 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 { - 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; show_allies(f, g->allies, buf + bytes, size);