diff --git a/binaries/data/mods/public/gui/lobby/lobby.js b/binaries/data/mods/public/gui/lobby/lobby.js
index 1fcd183..eda00ae 100644
a
|
b
|
function updateGameList()
|
399 | 399 | list_name.push(name); |
400 | 400 | list_ip.push(g.ip); |
401 | 401 | list_mapName.push(translate(g.niceMapName)); |
402 | | if (+g.mapSize !== +g.mapSize) // NaN |
403 | | list_mapSize.push(translate(g.mapSize)); |
404 | | else |
405 | | list_mapSize.push(g_mapSizes.shortNames[g_mapSizes.tiles.indexOf(+g.mapSize)]); |
| 402 | list_mapSize.push(translatedMapSize(g_GameList[g].mapSize)); |
406 | 403 | let idx = g_mapTypes.indexOf(g.mapType); |
407 | 404 | list_mapType.push(idx != -1 ? g_mapTypesText[idx] : ""); |
408 | 405 | list_nPlayers.push(g.nbp + "/" +g.tnbp); |
… |
… |
function formatPlayerListEntry(nickname, presence, rating)
|
480 | 477 | } |
481 | 478 | |
482 | 479 | /** |
| 480 | * Given a map size, returns that map size translated into the current |
| 481 | * language. |
| 482 | */ |
| 483 | function translatedMapSize(mapSize) |
| 484 | { |
| 485 | if (+mapSize !== +mapSize) // NaN |
| 486 | return translate(mapSize); |
| 487 | else |
| 488 | return g_mapSizes.shortNames[g_mapSizes.tiles.indexOf(+mapSize)]; |
| 489 | } |
| 490 | |
| 491 | /** |
483 | 492 | * Populate the game info area with information on the current game selection. |
484 | 493 | */ |
485 | 494 | function updateGameSelection() |
… |
… |
function updateGameSelection()
|
517 | 526 | Engine.GetGUIObjectByName("sgMapName").caption = translate(g_GameList[g].niceMapName); |
518 | 527 | Engine.GetGUIObjectByName("sgNbPlayers").caption = g_GameList[g].nbp + "/" + g_GameList[g].tnbp; |
519 | 528 | Engine.GetGUIObjectByName("sgPlayersNames").caption = g_GameList[g].players; |
520 | | Engine.GetGUIObjectByName("sgMapSize").caption = g_GameList[g].mapSize.split("(")[0]; |
| 529 | Engine.GetGUIObjectByName("sgMapSize").caption = translatedMapSize(g_GameList[g].mapSize); |
521 | 530 | let idx = g_mapTypes.indexOf(g_GameList[g].mapType); |
522 | 531 | Engine.GetGUIObjectByName("sgMapType").caption = idx != -1 ? g_mapTypesText[idx] : ""; |
523 | 532 | |