Translate map name in game setup
Patch by: @s0600204 Tested by: @Langbart Differential Revision: https://code.wildfiregames.com/D4188 Fixes: #6241 This was SVN commit r25833.
This commit is contained in:
parent
2bda444435
commit
c7a6d49fc8
@ -50,8 +50,8 @@ GameSettingControls.MapSelection = class MapSelection extends GameSettingControl
|
||||
{
|
||||
if (!this.enabled)
|
||||
{
|
||||
const mapData = this.mapCache.getMapData(g_GameSettings.map.mapType, g_GameSettings.map.map);
|
||||
this.label.caption = g_GameSettings.mapName.value || mapData.settings.Name;
|
||||
const mapName = this.mapCache.getTranslatableMapName(g_GameSettings.map.mapType, g_GameSettings.map.map);
|
||||
this.label.caption = g_GameSettings.mapName.value || this.mapCache.translateMapName(mapName);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user