0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 04:50:44 -05:00
launcher/project/SPT.Launcher.Base/Helpers/LocalizationProvider.cs

1165 lines
38 KiB
C#
Raw Permalink Normal View History

2023-03-03 19:25:33 +00:00
/* LocalizationProvider.cs
* License: NCSA Open Source License
*
2024-05-21 20:15:19 +01:00
* Copyright: SPT
2023-03-03 19:25:33 +00:00
* AUTHORS:
* waffle.lord
*/
2024-05-21 20:15:19 +01:00
using SPT.Launcher.Extensions;
using SPT.Launcher.MiniCommon;
2023-03-03 19:25:33 +00:00
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Linq;
using SPT.Launcher.Utilities;
2024-05-21 20:15:19 +01:00
using SPT.Launcher.Controllers;
2023-03-03 19:25:33 +00:00
2024-05-21 20:15:19 +01:00
namespace SPT.Launcher.Helpers
2023-03-03 19:25:33 +00:00
{
public static class LocalizationProvider
{
2024-05-21 20:15:19 +01:00
public static string DefaultLocaleFolderPath = Path.Join(Environment.CurrentDirectory, "SPT_Data", "Launcher", "Locales");
2023-03-03 19:25:33 +00:00
public static Dictionary<string, string> LocaleNameDictionary = GetLocaleDictionary("native_name");
2023-03-03 19:25:33 +00:00
public static event EventHandler LocaleChanged = delegate { };
public static void LoadLocalByName(string localeName)
2023-03-03 19:25:33 +00:00
{
string localeRomanName = LocaleNameDictionary.GetKeyByValue(localeName);
if (String.IsNullOrEmpty(localeRomanName))
{
localeRomanName = localeName;
}
LoadLocaleFromFile(localeRomanName);
}
2023-03-03 19:25:33 +00:00
public static void LoadLocaleFromFile(string localeRomanName)
{
2024-02-05 16:06:28 -05:00
var localePath = Path.Join(DefaultLocaleFolderPath, $"{localeRomanName}.json");
LocaleData newLocale = Json.LoadClassWithoutSaving<LocaleData>(localePath);
2023-03-03 19:25:33 +00:00
if (newLocale != null)
{
foreach (var prop in Instance.GetType().GetProperties())
{
prop.SetValue(Instance, newLocale.GetType().GetProperty(prop.Name).GetValue(newLocale));
}
LauncherSettingsProvider.Instance.DefaultLocale = localeRomanName;
LauncherSettingsProvider.Instance.SaveSettings();
LocaleChanged(null, EventArgs.Empty);
2024-02-05 16:06:28 -05:00
return;
2023-03-03 19:25:33 +00:00
}
2024-02-05 16:06:28 -05:00
LogManager.Instance.Error($"Could not load locale: {localePath}");
2023-03-03 19:25:33 +00:00
}
public static void TryAutoSetLocale()
2023-03-03 19:25:33 +00:00
{
// get local dictionary based on ietf_tag property in locale files. like: ("English", "en")
// "English" being the file name
var localeTagDictionary = GetLocaleDictionary("ietf_tag");
2023-03-03 19:25:33 +00:00
// get system locale. Like: "en-US"
var tag = CultureInfo.CurrentUICulture.IetfLanguageTag;
2023-03-03 19:25:33 +00:00
// get the locale file name from the dictionary based on the input tag. If it matches, or starts with the value
var localeRomanName = localeTagDictionary.GetKeyByInput(tag);
if (String.IsNullOrEmpty(localeRomanName))
2023-03-03 19:25:33 +00:00
{
localeRomanName = "English";
2023-03-03 19:25:33 +00:00
}
LoadLocaleFromFile(localeRomanName);
2023-03-03 19:25:33 +00:00
}
public static LocaleData GenerateEnglishLocale()
{
//Create default english locale data and save if the default locale data file dosen't exist.
//This is to (hopefully) prevent the launcher from becoming 100% broken if no locale files exist or the locale files are outdated (missing data).
LocaleData englishLocale = new LocaleData();
#region Set All English Defaults
englishLocale.ietf_tag = "en";
2023-03-03 19:25:33 +00:00
englishLocale.native_name = "English";
englishLocale.retry = "Retry";
englishLocale.server_connecting = "Connecting";
englishLocale.server_unavailable_format_1 = "No server available at: '{0}' to connect to\nEnsure you have run 'SPT.Server.exe' first.";
englishLocale.no_servers_available = "No SPT Servers found. Ensure your SPT sever is running and check the server URL is correct in the settings page.";
2023-03-03 19:25:33 +00:00
englishLocale.settings_menu = "Settings";
englishLocale.back = "Back";
englishLocale.wipe_profile = "Wipe Profile";
englishLocale.username = "Username";
englishLocale.password = "Password";
englishLocale.update = "Update";
englishLocale.edit_account_update_error = "An issue occurred while updating your profile.";
englishLocale.register = "Register";
englishLocale.go_to_register = "Go to Register";
englishLocale.registration_failed = "Registration Failed.";
englishLocale.registration_question_format_1 = "Profile '{0}' does not exist.\n\nWould you like to create it?";
englishLocale.login_or_register = "Login / Register";
englishLocale.go_to_login = "Go to Login";
englishLocale.login_automatically = "Login Automatically";
englishLocale.incorrect_login = "Username or password is incorrect";
englishLocale.login_failed = "Login Failed";
englishLocale.edition = "Edition";
englishLocale.id = "ID";
englishLocale.logout = "Logout";
englishLocale.account = "Account";
englishLocale.edit_account = "Edit Account";
englishLocale.start_game = "Start Game";
2024-05-21 20:15:19 +01:00
englishLocale.installed_in_live_game_warning = "SPT shouldn't be installed into the live game directory. Please install SPT into a copy of the game directory elsewhere on your computer.";
englishLocale.no_official_game_warning = "Escape From Tarkov isn't installed on your computer. Ensure your BSG launcher can start EFT before starting SPT.";
englishLocale.eft_exe_not_found_warning = "EscapeFromTarkov.exe not found at game path. Ensure the folder you installed SPT into has this file.";
2023-03-03 19:25:33 +00:00
englishLocale.account_exist = "Account already exists";
englishLocale.url = "URL";
englishLocale.default_language = "Default Language";
englishLocale.game_path = "Game Path";
englishLocale.clear_game_settings = "Clear Game Settings";
englishLocale.clear_game_settings_succeeded = "Game settings cleared.";
englishLocale.clear_game_settings_failed = "An issue occurred while clearing game settings.";
2023-08-23 18:24:56 -04:00
englishLocale.load_live_settings = "Load Live Settings";
englishLocale.load_live_settings_succeeded = "Game settings copied from live";
englishLocale.load_live_settings_failed = "Failed to copy live settings";
2023-03-03 19:25:33 +00:00
englishLocale.remove_registry_keys = "Remove Registry Keys";
englishLocale.remove_registry_keys_succeeded = "Registry keys removed.";
englishLocale.remove_registry_keys_failed = "An issue occurred while removing registry keys.";
englishLocale.clean_temp_files = "Clean Temp Files";
englishLocale.clean_temp_files_succeeded = "Temp files cleaned";
englishLocale.clean_temp_files_failed = "Some issues occurred while cleaning temp files";
englishLocale.select_folder = "Select Folder";
englishLocale.minimize_action = "Minimize";
englishLocale.do_nothing_action = "Do nothing";
englishLocale.exit_action = "Close Launcher";
englishLocale.on_game_start = "On Game Start";
englishLocale.game = "Game";
englishLocale.new_password = "New Password";
englishLocale.wipe_warning = "Changing your account edition requires a profile wipe. This will reset your game prgrogess.";
englishLocale.cancel = "Cancel";
englishLocale.need_an_account = "Don't have an account yet?";
englishLocale.have_an_account = "Already have an account?";
englishLocale.reapply_patch = "Reapply Patch";
englishLocale.failed_to_receive_patches = "Failed to receive patches";
englishLocale.failed_core_patch = "Core patch failed";
englishLocale.failed_mod_patch = "Mod patch failed";
englishLocale.ok = "OK";
englishLocale.account_page_denied = "Account page denied. Either you are not logged in or the game is running.";
englishLocale.account_updated = "Your account has been updated";
englishLocale.nickname = "Nickname";
englishLocale.side = "Side";
englishLocale.level = "Level";
englishLocale.game_path = "Game Path";
englishLocale.patching = "Patching";
englishLocale.file_mismatch_dialog_message = "We noticed your EFT files do not match what we expected to see for SPT: {0}" +
"\nPlease check you have the latest version of live EFT installed" +
"\nIf not, delete SPT, update live EFT and run the Installer in an empty folder again" +
"\n\nAre you sure you want to proceed?";
2023-03-03 19:25:33 +00:00
englishLocale.yes = "Yes";
englishLocale.no = "No";
englishLocale.open_folder = "Open Folder";
englishLocale.select_edition = "Select Edition";
englishLocale.profile_created = "Profile Created";
englishLocale.next_level_in = "Next level in";
englishLocale.copied = "Copied";
englishLocale.no_profile_data = "No profile data";
2024-05-21 20:15:19 +01:00
englishLocale.profile_version_mismath = "Your profile was made using a different version of SPT and may have issues";
2023-03-03 19:25:33 +00:00
englishLocale.profile_removed = "Profile removed";
englishLocale.profile_removal_failed = "Failed to remove profile";
englishLocale.profile_remove_question_format_1 = "Permanently remove profile '{0}'?";
englishLocale.i_understand = "I Understand";
englishLocale.game_version_mismatch_format_2 = "SPT is unable to run, this is because SPT expected to find EFT version '{1}',\nbut instead found version '{0}'\n\nEnsure you've downgraded your EFT as described in the install guide\non the page you downloaded SPT from";
englishLocale.description = "Description";
2023-08-13 20:49:03 -04:00
englishLocale.author = "Author";
2023-09-12 10:12:01 -04:00
englishLocale.wipe_on_start = "Wipe profile on game start";
englishLocale.copy_live_settings_question = "Would you like to copy your live game settings to spt";
2023-10-11 09:44:36 -04:00
englishLocale.mod_not_in_server_warning = "This mod was found in your profile, but is not loaded on the server";
2024-01-26 21:39:52 -05:00
englishLocale.active_server_mods = "Active Server Mods";
englishLocale.active_server_mods_info_text = "These mods are currently running on the server";
englishLocale.inactive_server_mods = "Inactive Server Mods";
englishLocale.inactive_server_mods_info_text =
"These mods have not been loaded by the server, but your profile has used them in the past";
englishLocale.open_link_question_format_1 = "Are you sure you want to open the following link: \n{0}";
englishLocale.open_link = "Open Link";
2024-06-02 14:46:44 -04:00
englishLocale.dev_mode = "Developer Mode";
2024-06-04 19:09:30 -04:00
englishLocale.failed_to_save_settings = "Failed to save settings";
englishLocale.register_failed_name_limit = "name cannot exceed 15 characters";
2024-07-12 17:28:21 -04:00
englishLocale.copy_failed = "Failed to copy data to clipboard";
englishLocale.copy_logs_to_clipboard = "Copy logs to clipboard";
2023-03-03 19:25:33 +00:00
#endregion
Directory.CreateDirectory(LocalizationProvider.DefaultLocaleFolderPath);
LauncherSettingsProvider.Instance.DefaultLocale = "English";
LauncherSettingsProvider.Instance.SaveSettings();
Json.SaveWithFormatting(Path.Join(LocalizationProvider.DefaultLocaleFolderPath, "English.json"), englishLocale, Newtonsoft.Json.Formatting.Indented);
return englishLocale;
}
public static Dictionary<string, string> GetLocaleDictionary(string property)
2023-03-03 19:25:33 +00:00
{
List<FileInfo> localeFiles = new List<FileInfo>(Directory.GetFiles(DefaultLocaleFolderPath).Select(x => new FileInfo(x)).ToList());
Dictionary<string, string> localeDictionary = new Dictionary<string, string>();
foreach (FileInfo file in localeFiles)
{
localeDictionary.Add(file.Name.Replace(".json", ""), Json.GetPropertyByName<string>(file.FullName, property));
2023-03-03 19:25:33 +00:00
}
return localeDictionary;
}
public static ObservableCollection<string> GetAvailableLocales()
{
return new ObservableCollection<string>(LocaleNameDictionary.Values);
}
public static LocaleData Instance { get; private set; } = Json.LoadClassWithoutSaving<LocaleData>(Path.Join(DefaultLocaleFolderPath, $"{LauncherSettingsProvider.Instance.DefaultLocale}.json")) ?? GenerateEnglishLocale();
}
public class LocaleData : NotifyPropertyChangedBase
2023-03-03 19:25:33 +00:00
{
//this is going to be some pretty long boiler plate code. So I'm putting everything into regions.
#region All Properties
2024-06-02 14:46:44 -04:00
2024-07-12 17:28:21 -04:00
#region
private string _copy_logs_to_clipboard;
public string copy_logs_to_clipboard
{
get => _copy_logs_to_clipboard;
set => SetProperty(ref _copy_logs_to_clipboard, value);
2024-07-12 17:28:21 -04:00
}
#endregion
#region copy_failed
private string _copy_failed;
public string copy_failed
{
get => _copy_failed;
set => SetProperty(ref _copy_failed, value);
2024-07-12 17:28:21 -04:00
}
#endregion
#region register_failed_name_limit
private string _register_failed_name_limit;
public string register_failed_name_limit
{
get => _register_failed_name_limit;
set => SetProperty(ref _register_failed_name_limit, value);
}
#endregion
2024-06-04 19:09:30 -04:00
#region failed_to_save_settings
private string _failed_to_save_settings;
public string failed_to_save_settings
{
get => _failed_to_save_settings;
set => SetProperty(ref _failed_to_save_settings, value);
2024-06-04 19:09:30 -04:00
}
#endregion
2024-06-02 14:46:44 -04:00
#region dev_mode
private string _dev_mode;
public string dev_mode
{
get => _dev_mode;
set => SetProperty(ref _dev_mode, value);
2024-06-02 14:46:44 -04:00
}
#endregion
2023-03-03 19:25:33 +00:00
#region ietf_tag
private string _ietf_tag;
public string ietf_tag
{
get => _ietf_tag;
set => SetProperty(ref _ietf_tag, value);
}
#endregion
2023-03-03 19:25:33 +00:00
#region native_name
private string _native_name;
public string native_name
{
get => _native_name;
set => SetProperty(ref _native_name, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region retry
private string _retry;
public string retry
{
get => _retry;
set => SetProperty(ref _retry, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region server_connecting
private string _server_connecting;
public string server_connecting
{
get => _server_connecting;
set => SetProperty(ref _server_connecting, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region server_unavailable_format_1
private string _server_unavailable_format_1;
public string server_unavailable_format_1
{
get => _server_unavailable_format_1;
set => SetProperty(ref _server_unavailable_format_1, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region no_servers_available
private string _no_servers_available;
public string no_servers_available
{
get => _no_servers_available;
set => SetProperty(ref _no_servers_available, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region settings_menu
private string _settings_menu;
public string settings_menu
{
get => _settings_menu;
set => SetProperty(ref _settings_menu, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region back
private string _back;
public string back
{
get => _back;
set => SetProperty(ref _back, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region wipe_profile
private string _wipe_profile;
public string wipe_profile
{
get => _wipe_profile;
set => SetProperty(ref _wipe_profile, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region username
private string _username;
public string username
{
get => _username;
set => SetProperty(ref _username, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region password
private string _password;
public string password
{
get => _password;
set => SetProperty(ref _password, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region update
private string _update;
public string update
{
get => _update;
set => SetProperty(ref _update, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region edit_account_update_error
private string _edit_account_update_error;
public string edit_account_update_error
{
get => _edit_account_update_error;
set => SetProperty(ref _edit_account_update_error, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region register
private string _register;
public string register
{
get => _register;
set => SetProperty(ref _register, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region go_to_register
private string _go_to_register;
public string go_to_register
{
get => _go_to_register;
set => SetProperty(ref _go_to_register, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region login_or_register
private string _login_or_register;
public string login_or_register
{
get => _login_or_register;
set => SetProperty(ref _login_or_register, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region go_to_login
private string _go_to_login;
public string go_to_login
{
get => _go_to_login;
set => SetProperty(ref _go_to_login, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region login_automatically
private string _login_automatically;
public string login_automatically
{
get => _login_automatically;
set => SetProperty(ref _login_automatically, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region incorrect_login
private string _incorrect_login;
public string incorrect_login
{
get => _incorrect_login;
set => SetProperty(ref _incorrect_login, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region login_failed
private string _login_failed;
public string login_failed
{
get => _login_failed;
set => SetProperty(ref _login_failed, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region edition
private string _edition;
public string edition
{
get => _edition;
set => SetProperty(ref _edition, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region id
private string _id;
public string id
{
get => _id;
set => SetProperty(ref _id, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region logout
private string _logout;
public string logout
{
get => _logout;
set => SetProperty(ref _logout, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region account
private string _account;
public string account
{
get => _account;
set => SetProperty(ref _account, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region edit_account
private string _edit_account;
public string edit_account
{
get => _edit_account;
set => SetProperty(ref _edit_account, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region start_game
private string _start_game;
public string start_game
{
get => _start_game;
set => SetProperty(ref _start_game, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region installed_in_live_game_warning
private string _installed_in_live_game_warning;
public string installed_in_live_game_warning
{
get => _installed_in_live_game_warning;
set => SetProperty(ref _installed_in_live_game_warning, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region no_official_game_warning
private string _no_official_game_warning;
public string no_official_game_warning
{
get => _no_official_game_warning;
set => SetProperty(ref _no_official_game_warning, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region eft_exe_not_found_warning
private string _eft_exe_not_found_warning;
public string eft_exe_not_found_warning
{
get => _eft_exe_not_found_warning;
set => SetProperty(ref _eft_exe_not_found_warning, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region account_exist
private string _account_exist;
public string account_exist
{
get => _account_exist;
set => SetProperty(ref _account_exist, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region url
private string _url;
public string url
{
get => _url;
set => SetProperty(ref _url, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region default_language
private string _default_language;
public string default_language
{
get => _default_language;
set => SetProperty(ref _default_language, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region game_path
private string _game_path;
public string game_path
{
get => _game_path;
set => SetProperty(ref _game_path, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region clear_game_settings
private string _clear_game_settings;
public string clear_game_settings
{
get => _clear_game_settings;
set => SetProperty(ref _clear_game_settings, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region clear_game_settings_succeeded
private string _clear_game_settings_succeeded;
public string clear_game_settings_succeeded
{
get => _clear_game_settings_succeeded;
set => SetProperty(ref _clear_game_settings_succeeded, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region clear_game_settings_failed
private string _clear_game_settings_failed;
public string clear_game_settings_failed
{
get => _clear_game_settings_failed;
set => SetProperty(ref _clear_game_settings_failed, value);
2023-03-03 19:25:33 +00:00
}
#endregion
2023-08-23 18:24:56 -04:00
#region load_live_settings
private string _load_live_settings;
public string load_live_settings
2023-08-22 19:03:39 -04:00
{
2023-08-23 18:24:56 -04:00
get => _load_live_settings;
set => SetProperty(ref _load_live_settings, value);
2023-08-22 19:03:39 -04:00
}
#endregion
2023-08-23 18:24:56 -04:00
#region load_live_settings_failed
private string _load_live_settings_failed;
public string load_live_settings_failed
2023-08-22 19:03:39 -04:00
{
2023-08-23 18:24:56 -04:00
get => _load_live_settings_failed;
set => SetProperty(ref _load_live_settings_failed, value);
2023-08-22 19:03:39 -04:00
}
#endregion
2023-08-23 18:24:56 -04:00
#region load_live_settings_succeeded
private string _load_live_settings_succeeded;
public string load_live_settings_succeeded
2023-08-22 19:03:39 -04:00
{
2023-08-23 18:24:56 -04:00
get => _load_live_settings_succeeded;
set => SetProperty(ref _load_live_settings_succeeded, value);
2023-08-22 19:03:39 -04:00
}
#endregion
2023-03-03 19:25:33 +00:00
#region remove_registry_keys
private string _remove_registry_keys;
public string remove_registry_keys
{
get => _remove_registry_keys;
set => SetProperty(ref _remove_registry_keys, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region remove_registry_keys_succeeded
private string _remove_registry_keys_succeeded;
public string remove_registry_keys_succeeded
{
get => _remove_registry_keys_succeeded;
set => SetProperty(ref _remove_registry_keys_succeeded, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region remove_registry_keys_failed
private string _remove_registry_keys_failed;
public string remove_registry_keys_failed
{
get => _remove_registry_keys_failed;
set => SetProperty(ref _remove_registry_keys_failed, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region clean_temp_files
private string _clean_temp_files;
public string clean_temp_files
{
get => _clean_temp_files;
set => SetProperty(ref _clean_temp_files, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region clean_temp_files_succeeded
private string _clean_temp_files_succeeded;
public string clean_temp_files_succeeded
{
get => _clean_temp_files_succeeded;
set => SetProperty(ref _clean_temp_files_succeeded, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region clean_temp_files_failed
private string _clean_temp_files_failed;
public string clean_temp_files_failed
{
get => _clean_temp_files_failed;
set => SetProperty(ref _clean_temp_files_failed, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region select_folder
private string _select_folder;
public string select_folder
{
get => _select_folder;
set => SetProperty(ref _select_folder, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region registration_failed
private string _registration_failed;
public string registration_failed
{
get => _registration_failed;
set => SetProperty(ref _registration_failed, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region registration_question_format_1
private string _registration_question_format_1;
public string registration_question_format_1
{
get => _registration_question_format_1;
set => SetProperty(ref _registration_question_format_1, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region minimize_action
private string _minimize_action;
public string minimize_action
{
get => _minimize_action;
set => SetProperty(ref _minimize_action, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region do_nothing_action
private string _do_nothing_action;
public string do_nothing_action
{
get => _do_nothing_action;
set => SetProperty(ref _do_nothing_action, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region exit_action
private string _exit_action;
public string exit_action
{
get => _exit_action;
set => SetProperty(ref _exit_action, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region on_game_start
private string _on_game_start;
public string on_game_start
{
get => _on_game_start;
set => SetProperty(ref _on_game_start, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region game
private string _game;
public string game
{
get => _game;
set => SetProperty(ref _game, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region new_password
private string _new_password;
public string new_password
{
get => _new_password;
set => SetProperty(ref _new_password, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region wipe_warning
private string _wipe_warning;
public string wipe_warning
{
get => _wipe_warning;
set => SetProperty(ref _wipe_warning, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region cancel
private string _cancel;
public string cancel
{
get => _cancel;
set => SetProperty(ref _cancel, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region need_an_account
private string _need_an_account;
public string need_an_account
{
get => _need_an_account;
set => SetProperty(ref _need_an_account, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region have_an_account
private string _have_an_account;
public string have_an_account
{
get => _have_an_account;
set => SetProperty(ref _have_an_account, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region reapply_patch
private string _reapply_patch;
public string reapply_patch
{
get => _reapply_patch;
set => SetProperty(ref _reapply_patch, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region failed_to_receive_patches
private string _failed_to_receive_patches;
public string failed_to_receive_patches
{
get => _failed_to_receive_patches;
set => SetProperty(ref _failed_to_receive_patches, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region failed_core_patch
private string _failed_core_patch;
public string failed_core_patch
{
get => _failed_core_patch;
set => SetProperty(ref _failed_core_patch, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region failed_mod_patch
private string _failed_mod_patch;
public string failed_mod_patch
{
get => _failed_mod_patch;
set => SetProperty(ref _failed_mod_patch, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region OK
private string _ok;
public string ok
{
get => _ok;
set => SetProperty(ref _ok, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region account_page_denied
private string _account_page_denied;
public string account_page_denied
{
get => _account_page_denied;
set => SetProperty(ref _account_page_denied, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region account_updated
private string _account_updated;
public string account_updated
{
get => _account_updated;
set => SetProperty(ref _account_updated, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region nickname
private string _nickname;
public string nickname
{
get => _nickname;
set => SetProperty(ref _nickname, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region side
private string _side;
public string side
{
get => _side;
set => SetProperty(ref _side, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region level
private string _level;
public string level
{
get => _level;
set => SetProperty(ref _level, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region patching
private string _patching;
public string patching
{
get => _patching;
set => SetProperty(ref _patching, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region file_mismatch_dialog_message
private string _file_mismatch_dialog_message;
public string file_mismatch_dialog_message
{
get => _file_mismatch_dialog_message;
set => SetProperty(ref _file_mismatch_dialog_message, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region yes
private string _yes;
public string yes
{
get => _yes;
set => SetProperty(ref _yes, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region no
private string _no;
public string no
{
get => _no;
set => SetProperty(ref _no, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region profile_created
private string _profile_created;
public string profile_created
{
get => _profile_created;
set => SetProperty(ref _profile_created, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region open_folder
private string _open_folder;
public string open_folder
{
get => _open_folder;
set => SetProperty(ref _open_folder, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region select_edition
private string _select_edition;
public string select_edition
{
get => _select_edition;
set => SetProperty(ref _select_edition, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region copied
private string _copied;
public string copied
{
get => _copied;
set => SetProperty(ref _copied, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region next_level_in
private string _next_level_in;
public string next_level_in
{
get => _next_level_in;
set => SetProperty(ref _next_level_in, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region no_profile_data
private string _no_profile_data;
public string no_profile_data
{
get => _no_profile_data;
set => SetProperty(ref _no_profile_data, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region profile_version_mismatch
private string _profile_version_mismath;
public string profile_version_mismath
{
get => _profile_version_mismath;
set => SetProperty(ref _profile_version_mismath, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region profile_removed
private string _profile_removed;
public string profile_removed
{
get => _profile_removed;
set => SetProperty(ref _profile_removed, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region profile_removal_failed
private string _profile_removal_failed;
public string profile_removal_failed
{
get => _profile_removal_failed;
set => SetProperty(ref _profile_removal_failed, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region profile_remove_question_format_1
private string _profile_remove_question_format_1;
public string profile_remove_question_format_1
{
get => _profile_remove_question_format_1;
set => SetProperty(ref _profile_remove_question_format_1, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region i_understand
private string _i_understand;
public string i_understand
{
get => _i_understand;
set => SetProperty(ref _i_understand, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region game_version_mismatch_format_2
private string _game_version_mismatch_format_2;
public string game_version_mismatch_format_2
{
get => _game_version_mismatch_format_2;
set => SetProperty(ref _game_version_mismatch_format_2, value);
2023-03-03 19:25:33 +00:00
}
#endregion
#region description
private string _description;
public string description
{
get => _description;
set => SetProperty(ref _description, value);
}
#endregion
2023-08-13 20:49:03 -04:00
#region author
private string _author;
public string author
{
get => _author;
set => SetProperty(ref _author, value);
2023-08-13 20:49:03 -04:00
}
#endregion
2023-09-12 10:12:01 -04:00
#region wipe_on_start
private string _wipe_on_start;
public string wipe_on_start
{
get => _wipe_on_start;
set => SetProperty(ref _wipe_on_start, value);
2023-09-12 10:12:01 -04:00
}
#endregion
#region copy_live_settings_question
private string _copy_live_settings_question;
public string copy_live_settings_question
{
get => _copy_live_settings_question;
set => SetProperty(ref _copy_live_settings_question, value);
}
#endregion
2023-10-11 09:44:36 -04:00
#region mod_not_in_server_warning
private string _mod_not_in_server_warning;
public string mod_not_in_server_warning
{
get => _mod_not_in_server_warning;
set => SetProperty(ref _mod_not_in_server_warning, value);
2023-10-11 09:44:36 -04:00
}
#endregion
2024-01-26 21:39:52 -05:00
#region active_server_mods
private string _active_server_mods;
public string active_server_mods
{
get => _active_server_mods;
set => SetProperty(ref _active_server_mods, value);
2024-01-26 21:39:52 -05:00
}
#endregion
#region active_server_mods_info_text
private string _active_server_mods_info_text;
public string active_server_mods_info_text
{
get => _active_server_mods_info_text;
set => SetProperty(ref _active_server_mods_info_text, value);
2024-01-26 21:39:52 -05:00
}
#endregion
#region inactive_server_mods
private string _inactive_server_mods;
public string inactive_server_mods
{
get => _inactive_server_mods;
set => SetProperty(ref _inactive_server_mods, value);
2024-01-26 21:39:52 -05:00
}
#endregion
#region inactive_server_mods_info_text
private string _inactive_server_mods_info_text;
public string inactive_server_mods_info_text
{
get => _inactive_server_mods_info_text;
set => SetProperty(ref _inactive_server_mods_info_text, value);
2024-01-26 21:39:52 -05:00
}
#endregion
#region open_link_question_format_1
private string _open_link_question_format_1;
public string open_link_question_format_1
{
get => _open_link_question_format_1;
set => SetProperty(ref _open_link_question_format_1, value);
2024-01-26 21:39:52 -05:00
}
#endregion
#region open_link
private string _open_link;
public string open_link
{
get => _open_link;
set => SetProperty(ref _open_link, value);
2024-01-26 21:39:52 -05:00
}
#endregion
#region core_dll_file_version_mismatch
private string _core_dll_file_version_mismatch;
public string core_dll_file_version_mismatch
{
get => _core_dll_file_version_mismatch;
set => SetProperty(ref _core_dll_file_version_mismatch, value);
}
#endregion
2023-03-03 19:25:33 +00:00
#endregion
}
}