aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-01-29 00:07:15 +0100
committerGitHub <noreply@github.com>2022-01-28 20:07:15 -0300
commite91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba (patch)
tree08a01dff7c8d4033b14c22d3ab6fbc3ed74d69d2 /Northstar.Client
parentbb1f8b19c7e8a4369bd29196049c65e1330afe58 (diff)
downloadNorthstarMods-e91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba.tar.gz
NorthstarMods-e91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba.zip
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.
Diffstat (limited to 'Northstar.Client')
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_english.txt8
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_french.txt4
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_german.txtbin23164 -> 11331 bytes
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_italian.txt4
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_japanese.txtbin17396 -> 13207 bytes
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt4
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_russian.txtbin21152 -> 14523 bytes
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt4
-rw-r--r--Northstar.Client/mod/resource/ui/menus/server_browser.menu39
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut7
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
--- a/Northstar.Client/mod/resource/northstar_client_localisation_german.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_german.txt
Binary files 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
--- a/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt
Binary files 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
--- a/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt
Binary files 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 )