add localization
This commit is contained in:
parent
864a07c75c
commit
ab49284f2f
10 changed files with 475 additions and 50 deletions
|
|
@ -23,9 +23,9 @@ public partial class NewInstallationDialog : Window
|
|||
public NewInstallationDialog(IStorageService storageService)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
_storageService = storageService;
|
||||
|
||||
|
||||
RefreshCheckboxes();
|
||||
CancelButton.Click += OnCancelClick;
|
||||
ChooseZip.Click += OnChooseZipClick;
|
||||
|
|
@ -39,13 +39,13 @@ public partial class NewInstallationDialog : Window
|
|||
var pcAdminCheckbox = PcAdminCheckBox;
|
||||
var androidAdminCheckbox = AndroidAdminCheckbox;
|
||||
var vrClientCheckbox = VrClientCheckbox;
|
||||
serverCheckbox.Content = TextDefaults.InstallServer;
|
||||
serverCheckbox.Content = Lang.Resources.InstallServerCheckbox;
|
||||
serverCheckbox.IsEnabled = true;
|
||||
pcAdminCheckbox.Content = TextDefaults.InstallAdmin;
|
||||
pcAdminCheckbox.Content = Lang.Resources.InstallAdminCheckbox;
|
||||
pcAdminCheckbox.IsEnabled = true;
|
||||
androidAdminCheckbox.Content = TextDefaults.SaveAndroidAdmin;
|
||||
androidAdminCheckbox.Content = Lang.Resources.SaveAndroidAdminCheckbox;
|
||||
androidAdminCheckbox.IsEnabled = true;
|
||||
vrClientCheckbox.Content = TextDefaults.SaveVRClient;
|
||||
vrClientCheckbox.Content = Lang.Resources.SaveVRClientCheckbox;
|
||||
vrClientCheckbox.IsEnabled = true;
|
||||
}
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ public partial class NewInstallationDialog : Window
|
|||
});
|
||||
|
||||
InstallButton.IsEnabled = false;
|
||||
|
||||
|
||||
var appData = _storageService.Load();
|
||||
|
||||
var updatedParts = ZipScrapper.UpdatePathsAfterExtraction(_installationParts, extractedPath);
|
||||
|
|
@ -123,34 +123,34 @@ public partial class NewInstallationDialog : Window
|
|||
if (string.IsNullOrEmpty(_installationParts.WindowsServerPath))
|
||||
{
|
||||
serverCheckbox.IsEnabled = false;
|
||||
serverCheckbox.Content += "\nCouldn't find directory with server";
|
||||
serverCheckbox.Content += $"\n{Lang.Resources.NoServerError}";
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(_installationParts.WindowsAdminPath))
|
||||
{
|
||||
pcAdminCheckbox.IsEnabled = false;
|
||||
pcAdminCheckbox.Content += "\nCouldn't find directory with PC admin";
|
||||
pcAdminCheckbox.Content += $"\n{Lang.Resources.NoPCAdminError}";
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(_installationParts.WindowsContentPath))
|
||||
{
|
||||
pcAdminCheckbox.IsEnabled = false;
|
||||
pcAdminCheckbox.Content += "\nCouldn't find windows content";
|
||||
pcAdminCheckbox.Content += $"\n{Lang.Resources.NoWindowsContentError}";
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(_installationParts.AndroidContentPath))
|
||||
{
|
||||
vrClientCheckbox.IsEnabled = false;
|
||||
vrClientCheckbox.Content += "\nCouldn't find android content";
|
||||
vrClientCheckbox.Content += $"\n{Lang.Resources.NoAndroidContentError}";
|
||||
androidAdminCheckbox.IsEnabled = false;
|
||||
androidAdminCheckbox.Content += "\nCouldn't find android content";
|
||||
androidAdminCheckbox.Content += $"\n{Lang.Resources.NoAndroidContentError}";
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(_installationParts.PicoClientPath) &&
|
||||
string.IsNullOrEmpty(_installationParts.OculusClientPath))
|
||||
{
|
||||
vrClientCheckbox.IsEnabled = false;
|
||||
vrClientCheckbox.Content += "\nCouldn't find any VR clients";
|
||||
vrClientCheckbox.Content += $"\n{Lang.Resources.NoVRClientsError}";
|
||||
}
|
||||
|
||||
InstallButton.IsEnabled = new List<CheckBox?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue