diff --git a/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs b/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs
index 6816b02..9b62269 100644
--- a/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs
+++ b/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs
@@ -943,6 +943,37 @@ internal static string WSInitOpcode_GamePluginOutdated {
}
}
+ ///
+ /// Looks up a localized string similar to Plugin Update Available.
+ ///
+ internal static string WSInitOpcode_PluginUpdateAvailableNotificationTitle {
+ get {
+ return ResourceManager.GetString("WSInitOpcode_PluginUpdateAvailableNotificationTitle", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Some features may not be available or work properly.
+ ///
+ ///Click this notification to .
+ ///
+ internal static string WSInitOpcode_SDPluginUpdateBody {
+ get {
+ return ResourceManager.GetString("WSInitOpcode_SDPluginUpdateBody", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Version {0} of the XIVDeck Stream Deck Plugin is currently outdated. Some features may not be available or work properly.
+ ///
+ ///Click this notification to go to the version {1} download page..
+ ///
+ internal static string WSInitOpcode_SDPluginUpdateNotificationBody {
+ get {
+ return ResourceManager.GetString("WSInitOpcode_SDPluginUpdateNotificationBody", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Thank you for installing the Stream Deck plugin. XIVDeck is now ready to go!.
///
diff --git a/FFXIVPlugin/Resources/Localization/UIStrings.resx b/FFXIVPlugin/Resources/Localization/UIStrings.resx
index e9790ac..da56d65 100644
--- a/FFXIVPlugin/Resources/Localization/UIStrings.resx
+++ b/FFXIVPlugin/Resources/Localization/UIStrings.resx
@@ -357,4 +357,17 @@ This will not re-enable the plugin.
Don't care? Hold CTRL to bypass this dialog!
+
+ Plugin Update Available
+
+
+ Some features may not be available or work properly.
+
+Click this notification to
+
+
+ Version {0} of the XIVDeck Stream Deck Plugin is currently outdated. Some features may not be available or work properly.
+
+Click this notification to go to the version {1} download page.
+
\ No newline at end of file
diff --git a/FFXIVPlugin/Server/Messages/Inbound/WSInitOpcode.cs b/FFXIVPlugin/Server/Messages/Inbound/WSInitOpcode.cs
index 25f648a..17ca8e7 100644
--- a/FFXIVPlugin/Server/Messages/Inbound/WSInitOpcode.cs
+++ b/FFXIVPlugin/Server/Messages/Inbound/WSInitOpcode.cs
@@ -8,6 +8,7 @@
using XIVDeck.FFXIVPlugin.Base;
using XIVDeck.FFXIVPlugin.Game.Chat;
using XIVDeck.FFXIVPlugin.Resources.Localization;
+using XIVDeck.FFXIVPlugin.Resources.Localization;
using XIVDeck.FFXIVPlugin.Server.Helpers;
using XIVDeck.FFXIVPlugin.Server.Messages.Outbound;
using XIVDeck.FFXIVPlugin.UI.Windows;
@@ -52,14 +53,12 @@ await context.WebSocket.CloseAsync(CloseStatusCode.ProtocolError,
// version check behavior
if (this.Mode is PluginMode.Plugin) {
if (Injections.PluginInterface is {IsTesting: true, IsDev: false} && sdPluginVersion < xivPluginVersion) {
- TestingUpdateNag.Show();
+ TestingUpdateNag.Show();
} else if (sdPluginVersion < xivPluginVersion) {
var n = Injections.NotificationManager.AddNotification(new Notification
{
- Title = "Plugin Update Available",
- Content = $"Version {sdPluginVersion} of the XIVDeck Stream Deck Plugin is currently outdated. " +
- $"Some features may not be available or work properly.\n\nClick this notification to " +
- $"go to the version {xivPluginVersion} download page.",
+ Title = UIStrings.WSInitOpcode_PluginUpdateAvailableNotificationTitle,
+ Content = string.Format(UIStrings.WSInitOpcode_SDPluginUpdateNotificationBody, sdPluginVersion, xivPluginVersion),
Type = NotificationType.Warning,
Minimized = false,
RespectUiHidden = false,
@@ -74,7 +73,7 @@ await context.WebSocket.CloseAsync(CloseStatusCode.ProtocolError,
} else if (sdPluginVersion > xivPluginVersion) {
var n = Injections.NotificationManager.AddNotification(new Notification
{
- Title = "Plugin Update Available",
+ Title = UIStrings.WSInitOpcode_PluginUpdateAvailableNotificationTitle,
Content = UIStrings.WSInitOpcode_GamePluginOutdated,
Type = NotificationType.Warning,
Minimized = false,
@@ -96,4 +95,4 @@ await context.WebSocket.CloseAsync(CloseStatusCode.ProtocolError,
XIVDeckPlugin.Instance.Configuration.Save();
}
}
-}
\ No newline at end of file
+}