mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 20:44:24 +00:00
Translate damage types in the unit_preview_pane tooltip. (#2296)
Use translations from the "wesnoth" domain because the damage type strings ("pierce", etc.) aren't available in the "wesnoth-lib" domain.
This commit is contained in:
parent
a8663601ef
commit
f76420ba2a
@ -125,7 +125,7 @@ static inline std::string get_hp_tooltip(const utils::string_map& res, const std
|
||||
bool att_def_diff = false;
|
||||
for(const utils::string_map::value_type &resist : res) {
|
||||
std::ostringstream line;
|
||||
line << translation::gettext(resist.first.c_str()) << ": ";
|
||||
line << translation::dgettext("wesnoth", resist.first.c_str()) << ": ";
|
||||
|
||||
// Some units have different resistances when attacking or defending.
|
||||
const int res_att = 100 - get(resist.first, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user