From e91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba Mon Sep 17 00:00:00 2001 From: Emma Miler <27428383+emma-miler@users.noreply.github.com> Date: Sat, 29 Jan 2022 00:07:15 +0100 Subject: Optimized localization for server browser (#168) Condensed and optimized the localisation of the player and server-count labels in the server browser. Hopefully the localization got encoded correctly. --- .../northstar_client_localisation_english.txt | 8 ++--- .../northstar_client_localisation_french.txt | 4 +-- .../northstar_client_localisation_german.txt | Bin 23164 -> 11331 bytes .../northstar_client_localisation_italian.txt | 4 +-- .../northstar_client_localisation_japanese.txt | Bin 17396 -> 13207 bytes .../northstar_client_localisation_portuguese.txt | 4 +-- .../northstar_client_localisation_russian.txt | Bin 21152 -> 14523 bytes .../northstar_client_localisation_tchinese.txt | 4 +-- .../mod/resource/ui/menus/server_browser.menu | 39 +-------------------- .../scripts/vscripts/ui/menu_ns_serverbrowser.nut | 7 ++-- 10 files changed, 17 insertions(+), 53 deletions(-) diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt index a74177ec..4f2e7a77 100644 --- a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt +++ b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt @@ -290,10 +290,10 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a "SWITCH_ANY" "Any" "CONNECTING" "Connecting..." - "INGAME_PLAYERS" "Players:" - "TOTAL_SERVERS" "Servers:" - - + "INGAME_PLAYERS" "Players: ^6BA6C400%s1" + "TOTAL_SERVERS" "Servers: ^C46C6C00%s1" + + // Mods menu "SHOW" "Show" "SHOW_ALL" "All" diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_french.txt b/Northstar.Client/mod/resource/northstar_client_localisation_french.txt index 72cc06d3..82889240 100644 --- a/Northstar.Client/mod/resource/northstar_client_localisation_french.txt +++ b/Northstar.Client/mod/resource/northstar_client_localisation_french.txt @@ -266,7 +266,7 @@ Choisissez Oui si vous êtes d'accord. Ce choix peut être modifié à tout inst "SWITCH_ANY" "Tout" "CONNECTING" "Connexion..." - "INGAME_PLAYERS" "Joueurs :" - "TOTAL_SERVERS" "Serveurs :" + "INGAME_PLAYERS" "Joueurs : ^6BA6C400%s1" + "TOTAL_SERVERS" "Serveurs : ^C46C6C00%s1" } } diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_german.txt b/Northstar.Client/mod/resource/northstar_client_localisation_german.txt index e35378cb..db66633d 100644 Binary files a/Northstar.Client/mod/resource/northstar_client_localisation_german.txt and b/Northstar.Client/mod/resource/northstar_client_localisation_german.txt differ diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt b/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt index 66321fef..0c52df1b 100644 --- a/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt +++ b/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt @@ -254,7 +254,7 @@ Premi Sì se sei d'accordo. Questa scelta può essere modificata in qualsiasi mo "CONNECTING" "Connessione in corso..." - "INGAME_PLAYERS" "Players:" - "TOTAL_SERVERS" "Server:" + "INGAME_PLAYERS" "Players: ^6BA6C400%s1" + "TOTAL_SERVERS" "Server: ^C46C6C00%s1" } } diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt b/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt index 58abc549..d8760467 100644 Binary files a/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt and b/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt differ diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt b/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt index 87f8d8a3..132341b7 100644 --- a/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt +++ b/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt @@ -285,8 +285,8 @@ Clique em Sim se você concorda. Esta escolha pode ser alterada a qualquer momen "SWITCH_ANY" "Tanto faz" "CONNECTING" "Conectando..." - "INGAME_PLAYERS" "Jogadores:" - "TOTAL_SERVERS" "Servidores:" + "INGAME_PLAYERS" "Jogadores: ^6BA6C400%s1" + "TOTAL_SERVERS" "Servidores: ^C46C6C00%s1" // Mods menu "SHOW" "Mostrar" diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt b/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt index 2a30c6ec..af133a8e 100644 Binary files a/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt and b/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt differ diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt b/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt index 75cb86a9..c00e7302 100644 --- a/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt +++ b/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt @@ -285,8 +285,8 @@ "SWITCH_ANY" "任何" "CONNECTING" "連線中…" - "INGAME_PLAYERS" "線上玩家:" - "TOTAL_SERVERS" "線上伺服器:" + "INGAME_PLAYERS" "線上玩家: ^6BA6C400%s1" + "TOTAL_SERVERS" "線上伺服器: ^C46C6C00%s1" // Mods menu diff --git a/Northstar.Client/mod/resource/ui/menus/server_browser.menu b/Northstar.Client/mod/resource/ui/menus/server_browser.menu index a02cac46..d7efaae8 100644 --- a/Northstar.Client/mod/resource/ui/menus/server_browser.menu +++ b/Northstar.Client/mod/resource/ui/menus/server_browser.menu @@ -2587,24 +2587,6 @@ resource/ui/menus/mods_browse.menu pin_corner_to_sibling TOP_LEFT pin_to_sibling_corner BOTTOM_LEFT } - InGamePlayerCount - { - ControlName Label - auto_wide_tocontents 1 - tall 40 - labelText "" - font Default_28_ShadowGlow - bgcolor_override "0 0 0 120" - fgcolor_override "107 166 196 200" - xpos 6 - visible 1 - zpos 101 - - pin_to_sibling InGamePlayerLabel - pin_corner_to_sibling TOP_LEFT - pin_to_sibling_corner TOP_RIGHT - } - TotalServerLabel { ControlName Label @@ -2620,29 +2602,10 @@ resource/ui/menus/mods_browse.menu fgcolor_override "255 255 255 175" visible 1 - pin_to_sibling InGamePlayerCount - pin_corner_to_sibling TOP_LEFT - pin_to_sibling_corner TOP_RIGHT - } - TotalServerCount - { - ControlName Label - auto_wide_tocontents 1 - tall 40 - labelText "" - font Default_28_ShadowGlow - bgcolor_override "0 0 0 120" - fgcolor_override "196 108 108 200" - xpos 6 - visible 1 - zpos 101 - - pin_to_sibling TotalServerLabel + pin_to_sibling InGamePlayerLabel pin_corner_to_sibling TOP_LEFT pin_to_sibling_corner TOP_RIGHT } - - FooterButtons { ControlName CNestedPanel diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut index 194c0831..b7c8c44b 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut @@ -405,6 +405,8 @@ void function OnCloseServerBrowserMenu() void function OnServerBrowserMenuOpened() { + Hud_SetText( Hud_GetChild( file.menu, "InGamePlayerLabel" ), Localize("#INGAME_PLAYERS", "0") ) + Hud_SetText( Hud_GetChild( file.menu, "TotalServerLabel" ), Localize("#TOTAL_SERVERS", "0") ) UpdatePrivateMatchModesAndMaps() Hud_SetText( Hud_GetChild( file.menu, "Title" ), "#MENU_TITLE_SERVER_BROWSER" ) UI_SetPresentationType( ePresentationType.KNOWLEDGEBASE_MAIN ) @@ -720,10 +722,9 @@ void function FilterServerList() } } } + Hud_SetText( Hud_GetChild( file.menu, "InGamePlayerLabel" ), Localize("#INGAME_PLAYERS", string(totalPlayers)) ) + Hud_SetText( Hud_GetChild( file.menu, "TotalServerLabel" ), Localize("#TOTAL_SERVERS", string( NSGetServerCount()) ) ) } - - Hud_SetText( Hud_GetChild( file.menu, "InGamePlayerCount" ), string( totalPlayers ) ) - Hud_SetText( Hud_GetChild( file.menu, "TotalServerCount" ), string( NSGetServerCount() ) ) } void function CheckGamemode( serverStruct t ) -- cgit v1.2.3