diff options
author | SmallJoker <mk939@ymail.com> | 2021-02-22 20:25:16 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2021-02-22 20:25:16 +0100 |
commit | bce875fadacf3c84e2b7abeb4bfbe4ac7e52f0d9 (patch) | |
tree | 04d2be9c7078bddcc4a611cbbd33ee320334a584 /src | |
parent | 051e4c2b00a30c496b5545a6f0b01c9a14e937a4 (diff) | |
download | minetest-bce875fadacf3c84e2b7abeb4bfbe4ac7e52f0d9.tar.gz minetest-bce875fadacf3c84e2b7abeb4bfbe4ac7e52f0d9.tar.bz2 minetest-bce875fadacf3c84e2b7abeb4bfbe4ac7e52f0d9.zip |
Minimap: Fix default label translations
Diffstat (limited to 'src')
-rw-r--r-- | src/client/minimap.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/minimap.cpp b/src/client/minimap.cpp index c6ccf86e8..dd810ee0a 100644 --- a/src/client/minimap.cpp +++ b/src/client/minimap.cpp @@ -304,7 +304,7 @@ void Minimap::setModeIndex(size_t index) data->mode = m_modes[index]; m_current_mode_index = index; } else { - data->mode = MinimapModeDef{MINIMAP_TYPE_OFF, N_("Minimap hidden"), 0, 0, ""}; + data->mode = MinimapModeDef{MINIMAP_TYPE_OFF, gettext("Minimap hidden"), 0, 0, ""}; m_current_mode_index = 0; } @@ -330,25 +330,26 @@ void Minimap::addMode(MinimapModeDef mode) if (mode.label == "") { switch (mode.type) { case MINIMAP_TYPE_OFF: - mode.label = N_("Minimap hidden"); + mode.label = gettext("Minimap hidden"); break; case MINIMAP_TYPE_SURFACE: - mode.label = N_("Minimap in surface mode, Zoom x%d"); + mode.label = gettext("Minimap in surface mode, Zoom x%d"); if (mode.map_size > 0) zoom = 256 / mode.map_size; break; case MINIMAP_TYPE_RADAR: - mode.label = N_("Minimap in radar mode, Zoom x%d"); + mode.label = gettext("Minimap in radar mode, Zoom x%d"); if (mode.map_size > 0) zoom = 512 / mode.map_size; break; case MINIMAP_TYPE_TEXTURE: - mode.label = N_("Minimap in texture mode"); + mode.label = gettext("Minimap in texture mode"); break; default: break; } } + // else: Custom labels need mod-provided client-side translation if (zoom >= 0) { char label_buf[1024]; |