0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 02:10:44 -05:00

update locales per CWXs suggestion

This commit is contained in:
IsWaffle 2023-08-23 18:24:56 -04:00
parent 8f8e5ed6e7
commit f926ad9861
13 changed files with 58 additions and 58 deletions

View File

@ -125,9 +125,9 @@ namespace Aki.Launcher.Helpers
englishLocale.clear_game_settings = "Clear Game Settings"; englishLocale.clear_game_settings = "Clear Game Settings";
englishLocale.clear_game_settings_succeeded = "Game settings cleared."; englishLocale.clear_game_settings_succeeded = "Game settings cleared.";
englishLocale.clear_game_settings_failed = "An issue occurred while clearing game settings."; englishLocale.clear_game_settings_failed = "An issue occurred while clearing game settings.";
englishLocale.reset_game_settings = "Reset Game Settings"; englishLocale.load_live_settings = "Load Live Settings";
englishLocale.reset_game_settings_succeeded = "Game settings reset"; englishLocale.load_live_settings_succeeded = "Game settings copied from live";
englishLocale.reset_game_settings_failed = "Failed to reset game settings"; englishLocale.load_live_settings_failed = "Failed to copy live settings";
englishLocale.remove_registry_keys = "Remove Registry Keys"; englishLocale.remove_registry_keys = "Remove Registry Keys";
englishLocale.remove_registry_keys_succeeded = "Registry keys removed."; englishLocale.remove_registry_keys_succeeded = "Registry keys removed.";
englishLocale.remove_registry_keys_failed = "An issue occurred while removing registry keys."; englishLocale.remove_registry_keys_failed = "An issue occurred while removing registry keys.";
@ -772,49 +772,49 @@ namespace Aki.Launcher.Helpers
} }
#endregion #endregion
#region reset_game_settings #region load_live_settings
private string _reset_game_settings; private string _load_live_settings;
public string reset_game_settings public string load_live_settings
{ {
get => _reset_game_settings; get => _load_live_settings;
set set
{ {
if (_reset_game_settings != value) if (_load_live_settings != value)
{ {
_reset_game_settings = value; _load_live_settings = value;
RaisePropertyChanged(nameof(reset_game_settings)); RaisePropertyChanged(nameof(load_live_settings));
} }
} }
} }
#endregion #endregion
#region reset_game_settings_failed #region load_live_settings_failed
private string _reset_game_settings_failed; private string _load_live_settings_failed;
public string reset_game_settings_failed public string load_live_settings_failed
{ {
get => _reset_game_settings_failed; get => _load_live_settings_failed;
set set
{ {
if (_reset_game_settings_failed != value) if (_load_live_settings_failed != value)
{ {
_reset_game_settings_failed = value; _load_live_settings_failed = value;
RaisePropertyChanged(nameof(reset_game_settings_failed)); RaisePropertyChanged(nameof(load_live_settings_failed));
} }
} }
} }
#endregion #endregion
#region reset_game_settings_succeeded #region load_live_settings_succeeded
private string _reset_game_settings_succeeded; private string _load_live_settings_succeeded;
public string reset_game_settings_succeeded public string load_live_settings_succeeded
{ {
get => _reset_game_settings_succeeded; get => _load_live_settings_succeeded;
set set
{ {
if (_reset_game_settings_succeeded != value) if (_load_live_settings_succeeded != value)
{ {
_reset_game_settings_succeeded = value; _load_live_settings_succeeded = value;
RaisePropertyChanged(nameof(reset_game_settings_succeeded)); RaisePropertyChanged(nameof(load_live_settings_succeeded));
} }
} }
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -83,7 +83,7 @@
"server_mods": "Server Mods", "server_mods": "Server Mods",
"profile_mods": "Profile Mods", "profile_mods": "Profile Mods",
"author": "Author", "author": "Author",
"reset_game_settings": "Reset Game Settings", "load_live_settings": "Load Live Settings",
"reset_game_settings_failed": "Failed to reset game settings", "load_live_settings_succeeded": "Game settings copied from live",
"reset_game_settings_succeeded": "Game settings reset" "load_live_settings_failed": "Failed to copy live settings"
} }

View File

@ -82,7 +82,7 @@ namespace Aki.Launcher.ViewModels
if (!Directory.Exists(EFTSettingsFolder)) if (!Directory.Exists(EFTSettingsFolder))
{ {
LogManager.Instance.Warning($"EFT settings folder not found, can't reset :: Path: {EFTSettingsFolder}"); LogManager.Instance.Warning($"EFT settings folder not found, can't reset :: Path: {EFTSettingsFolder}");
SendNotification("", LocalizationProvider.Instance.reset_game_settings_failed, Avalonia.Controls.Notifications.NotificationType.Error); SendNotification("", LocalizationProvider.Instance.load_live_settings_failed, Avalonia.Controls.Notifications.NotificationType.Error);
return; return;
} }
@ -104,11 +104,11 @@ namespace Aki.Launcher.ViewModels
catch (Exception ex) catch (Exception ex)
{ {
LogManager.Instance.Exception(ex); LogManager.Instance.Exception(ex);
SendNotification("", LocalizationProvider.Instance.reset_game_settings_failed, Avalonia.Controls.Notifications.NotificationType.Error); SendNotification("", LocalizationProvider.Instance.load_live_settings_failed, Avalonia.Controls.Notifications.NotificationType.Error);
return; return;
} }
SendNotification("", LocalizationProvider.Instance.reset_game_settings_succeeded, Avalonia.Controls.Notifications.NotificationType.Success); SendNotification("", LocalizationProvider.Instance.load_live_settings_succeeded, Avalonia.Controls.Notifications.NotificationType.Success);
} }
public async Task ClearGameSettingsCommand() public async Task ClearGameSettingsCommand()

View File

@ -31,7 +31,7 @@
Classes="borderedlink" Classes="borderedlink"
Margin="0 0 10 5" Margin="0 0 10 5"
/> />
<Button Content="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=reset_game_settings}" <Button Content="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=load_live_settings}"
Command="{Binding ResetGameSettingsCommand}" Command="{Binding ResetGameSettingsCommand}"
Classes="borderedlink" Classes="borderedlink"
Margin="0 0 10 5" Margin="0 0 10 5"