aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-12-20 21:14:57 +0000
committerGitHub <noreply@github.com>2023-12-20 22:14:57 +0100
commitfeee261dd2269a9f2e13f30d890bc38c6e50351c (patch)
tree4444a1d086f2ebfcba0644205782bf18b48f48f7
parentd90a9867f02d2860742f30f75ea05c965c92825c (diff)
downloadNorthstarMods-feee261dd2269a9f2e13f30d890bc38c6e50351c.tar.gz
NorthstarMods-feee261dd2269a9f2e13f30d890bc38c6e50351c.zip
Add missing server browser localisation for `WRONG_MOD_VERSION` (#710)v1.21.2-rc3v1.21.2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_english.txt1
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut2
2 files changed, 2 insertions, 1 deletions
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt
index 98d5bfc7c..e6518febb 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt
@@ -370,6 +370,7 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a
// Mod downloading
"MISSING_MOD" "Missing mod \"%s1\" v%s2"
+ "WRONG_MOD_VERSION" "Server has mod \"%s1\" v%s2 while you have v%s3"
"MOD_NOT_VERIFIED" "(mod is not verified, and couldn't be downloaded automatically)"
"MOD_DL_DISABLED" "(automatic mod downloading is disabled)"
"DOWNLOADING_MOD_TITLE" "Downloading mod"
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 29c7621c2..1bc8e405b 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
@@ -1033,7 +1033,7 @@ void function OnServerSelected_Threaded( var button )
{
DialogData dialogData
dialogData.header = "#ERROR"
- dialogData.message = format( "Server has mod \"%s\" v%s while we have v%s", mod.name, mod.version, NSGetModVersionByModName( mod.name ) )
+ dialogData.message = Localize( "#WRONG_MOD_VERSION", mod.name, mod.version, NSGetModVersionByModName( mod.name ) )
dialogData.image = $"ui/menu/common/dialog_error"
#if PC_PROG