Even more translation strings

This commit is contained in:
D1GQ committed 2024-09-20 00:10:41 -05:00
1 parent 27ed1ce4f8
commit 52fcd15c1a
3 files changed
+20 -12

No files matched your search

+8 -8
View File
@@ -155,28 +155,28 @@ class GameDataShowNotificationPatch
switch (reason)
{
case DisconnectReasons.ExitGame:
ReasonText = $"{playerName} Left the game!";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Left"), playerName);
break;
case DisconnectReasons.ClientTimeout:
ReasonText = $"{playerName} Disconnected!";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Disconnect"), playerName);
break;
case DisconnectReasons.Kicked:
ReasonText = $"{playerName} Was kicked by {AmongUsClient.Instance.GetHost().Character.Data.PlayerName}!";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Kicked"), playerName, AmongUsClient.Instance.GetHost().Character.Data.PlayerName);
break;
case DisconnectReasons.Banned:
ReasonText = $"{playerName} Was banned by {AmongUsClient.Instance.GetHost().Character.Data.PlayerName}!";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Banned"), playerName, AmongUsClient.Instance.GetHost().Character.Data.PlayerName);
break;
case DisconnectReasons.Hacking:
ReasonText = $"{playerName} Was banned by Innersloth Anti-Cheat!";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Disconnect"), playerName);
break;
case DisconnectReasons.Error:
ReasonText = $"{playerName} Was kicked due to an error!";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Error"), playerName);
break;
case DisconnectReasons.Unknown:
ReasonText = $"{playerName} Left the game due to unknown reason?";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Unknown"), playerName);
break;
default:
ReasonText = $"{playerName} Left the game!";
ReasonText = string.Format(Translator.GetString("DisconnectReason.Left"), playerName);
break;
}
+8
View File
@@ -26,6 +26,14 @@
"Player.AUMUser": "AUM User",
"Player.KnownCheater": "Known Cheater",
"DisconnectReason.Left": "{0} Left the game!",
"DisconnectReason.Disconnect": "{0} Disconnected!",
"DisconnectReason.Kicked": "{0} Was kicked by {1}!",
"DisconnectReason.Banned": "{0} Was banned by {1}!",
"DisconnectReason.Cheater": "{0} Was banned by Innersloth Anti-Cheat!",
"DisconnectReason.Error": "{0} Was kicked due to an error!",
"DisconnectReason.Unknown": "{0} Left the game due to unknown reason?",
"WelcomeMsg.WelcomeToBAU": "Welcome To {0}",
"WelcomeMsg.ThanksForDownloading": "Thanks for downloading!",
"WelcomeMsg.BAUDescription1": "<color=#0dff00>{0}</color> Is a mod for improving the vanilla Among Us experience with a built-in {1} and other futures, <color=#0dff00>{0}</color> is a client-sided mod so it can be used with other vanilla Among Us players.",
+4 -4
View File
@@ -25,11 +25,11 @@ public class Main : BasePlugin
{
public static readonly ReleaseTypes ReleaseBuildType = ReleaseTypes.Release;
public const string BetaNum = "0";
public const string HotfixNum = "2";
public const bool IsHotFix = true;
public const string HotfixNum = "0";
public const bool IsHotFix = false;
public const string PluginGuid = "com.ten.betteramongus";
public const string PluginVersion = "1.1.3";
public const string ReleaseDate = "09.17.2024"; // mm/dd/yyyy
public const string PluginVersion = "1.1.4";
public const string ReleaseDate = "09.20.2024"; // mm/dd/yyyy
public const string Github = "https://github.com/EnhancedNetwork/BetterAmongUs-Public";
public const string Discord = "https://discord.gg/ten";
public static BetterAccountInfo myAccountInfo = new BetterAccountInfo();