translate travel-through message

This commit is contained in:
Enno Rehling 2012-07-08 16:10:48 -07:00
parent 9af5f08a8a
commit e01a420aa8
2 changed files with 15 additions and 5 deletions

View File

@ -7027,6 +7027,16 @@
<text locale="en">is helping the factions</text> <text locale="en">is helping the factions</text>
</string> </string>
<string name="has_moved_one">
<text locale="de">hat die Region durchquert</text>
<text locale="en">has traveled through the region</text>
</string>
<string name="has_moved_many">
<text locale="de">haben die Region durchquert</text>
<text locale="en">have traveled through the region</text>
</string>
<string name="see_travel"> <string name="see_travel">
<text locale="de">durchgereist</text> <text locale="de">durchgereist</text>
<text locale="en">travel</text> <text locale="en">travel</text>

View File

@ -940,11 +940,11 @@ static void describe(FILE * F, const seen_region * sr, faction * f)
WARN_STATIC_BUFFER(); WARN_STATIC_BUFFER();
if (sr->mode == see_travel) { if (sr->mode == see_travel) {
bytes = snprintf(buf, size, " (%s)", LOC(f->locale, "see_travel")); bytes = snprintf(bufp, size, " (%s)", LOC(f->locale, "see_travel"));
} else if (sr->mode == see_neighbour) { } else if (sr->mode == see_neighbour) {
bytes = snprintf(buf, size, " (%s)", LOC(f->locale, "see_neighbour")); bytes = snprintf(bufp, size, " (%s)", LOC(f->locale, "see_neighbour"));
} else if (sr->mode == see_lighthouse) { } else if (sr->mode == see_lighthouse) {
bytes = snprintf(buf, size, " (%s)", LOC(f->locale, "see_lighthouse")); bytes = snprintf(bufp, size, " (%s)", LOC(f->locale, "see_lighthouse"));
} else { } else {
bytes = 0; bytes = 0;
} }
@ -1432,9 +1432,9 @@ static void durchreisende(FILE * F, const region * r, const faction * f)
} }
/* TODO: finish localization */ /* TODO: finish localization */
if (maxtravel == 1) { if (maxtravel == 1) {
bytes = (int)strlcpy(bufp, " hat die Region durchquert.", size); bytes = snprintf(bufp, size, " %s", LOC(f->locale, "has_moved_one"));
} else { } else {
bytes = (int)strlcpy(bufp, " haben die Region durchquert.", size); bytes = snprintf(bufp, size, " %s", LOC(f->locale, "has_moved_many"));
} }
if (wrptr(&bufp, &size, bytes) != 0) if (wrptr(&bufp, &size, bytes) != 0)
WARN_STATIC_BUFFER(); WARN_STATIC_BUFFER();