Skip to content

Commit

Permalink
Repeat the translation hint for each string.
Browse files Browse the repository at this point in the history
  • Loading branch information
jostephd committed Oct 19, 2018
1 parent 72daec4 commit 2bb3ebc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/help/help_topic_generators.cpp
Expand Up @@ -505,15 +505,34 @@ std::string unit_topic_generator::operator()() const {

// Print some basic information such as HP and movement points.
// TODO: Make this info update according to musthave traits, similar to movetype below.

// TRANSLATORS: This string is used in the help page of a single unit. If the translation
// uses spaces, use non-breaking spaces as appropriate for the target language to prevent
// unpleasant line breaks (issue #3256).
ss << _("HP:") << font::nbsp << type_.hitpoints() << jump(30)
// TRANSLATORS: This string is used in the help page of a single unit. If the translation
// uses spaces, use non-breaking spaces as appropriate for the target language to prevent
// unpleasant line breaks (issue #3256).
<< _("Moves:") << font::nbsp << type_.movement() << jump(30);
if (type_.vision() != type_.movement()) {
// TRANSLATORS: This string is used in the help page of a single unit. If the translation
// uses spaces, use non-breaking spaces as appropriate for the target language to prevent
// unpleasant line breaks (issue #3256).
ss << _("Vision:") << font::nbsp << type_.vision() << jump(30);
}
if (type_.jamming() > 0) {
// TRANSLATORS: This string is used in the help page of a single unit. If the translation
// uses spaces, use non-breaking spaces as appropriate for the target language to prevent
// unpleasant line breaks (issue #3256).
ss << _("Jamming:") << font::nbsp << type_.jamming() << jump(30);
}
// TRANSLATORS: This string is used in the help page of a single unit. If the translation
// uses spaces, use non-breaking spaces as appropriate for the target language to prevent
// unpleasant line breaks (issue #3256).
ss << _("Cost:") << font::nbsp << type_.cost() << jump(30)
// TRANSLATORS: This string is used in the help page of a single unit. If the translation
// uses spaces, use non-breaking spaces as appropriate for the target language to prevent
// unpleasant line breaks (issue #3256).
<< _("Alignment:") << font::nbsp
<< make_link(type_.alignment_description(type_.alignment(), type_.genders().front()), "time_of_day")
<< jump(30);
Expand Down

0 comments on commit 2bb3ebc

Please sign in to comment.