help: Call gettext on ToD topic strings that are already marked translatable

I'm getting the feeling whoever wrote this didn't really know what N_()
does or doesn't do.
This commit is contained in:
Iris Morelle 2018-03-31 06:46:43 -03:00
parent 161d17bdb2
commit 82af89f950
2 changed files with 4 additions and 3 deletions

View file

@ -17,7 +17,8 @@
* Fixed "Search" placeholder text in dialog item filters not being
translatable (bug #2709, bug #2732).
* Fixed "Time of Day Schedule" heading for the index for the ToD Schedule
top-level help section, and "Lawful Bonus" labels not being translatable.
top-level help section, "Lawful Bonus", "Schedule" (back link to index)
and an error message not being translatable.
* Updated translations: British English, Chinese (Simplified),
Scottish Gaelic, Spanish, Ukrainian
### Miscellaneous and bug fixes

View file

@ -371,7 +371,7 @@ std::vector<topic> generate_time_of_day_topics(const bool /*sort_generated*/)
translation::dsgettext("wesnoth-help", "Time of Day Schedule");
if (! resources::tod_manager) {
toplevel << N_("Only available during a scenario.");
toplevel << _("Only available during a scenario.");
topics.emplace_back(tod_schedule_heading, "..schedule", toplevel.str());
return topics;
}
@ -396,7 +396,7 @@ std::vector<topic> generate_time_of_day_topics(const bool /*sort_generated*/)
text << image << '\n' <<
time.description.str() << '\n' <<
lawful_bonus_label << ' ' << time.lawful_bonus << '\n' <<
'\n' << make_link(N_("Schedule"), "..schedule");
'\n' << make_link(_("Schedule"), "..schedule");
topics.emplace_back(time.name.str(), id, text.str());
}