diff options
author | sr55 <[email protected]> | 2015-06-11 19:33:30 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-06-11 19:33:30 +0000 |
commit | a74ccc5f0241e5039ba66613496cd904f0b7756e (patch) | |
tree | 60779d9ef138ce2e877e792cf5c5777d86b66bd0 /win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | |
parent | c06630cad4d274c4e1110df02f2909d40704e2bd (diff) |
WinGui: Moving the bulk of the view model strings to resources.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7292 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index be12f2010..b233dc449 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -23,6 +23,7 @@ namespace HandBrakeWPF.ViewModels using HandBrake.ApplicationServices.Utilities;
using HandBrakeWPF.Model;
+ using HandBrakeWPF.Properties;
using HandBrakeWPF.Services.Interfaces;
using HandBrakeWPF.ViewModels.Interfaces;
@@ -1528,17 +1529,17 @@ namespace HandBrakeWPF.ViewModels this.updateInfo = info;
if (info.NewVersionAvailable)
{
- this.UpdateMessage = "A New Update is Available!";
+ this.UpdateMessage = Resources.OptionsViewModel_NewUpdate;
this.UpdateAvailable = true;
}
else if (Environment.Is64BitOperatingSystem && !System.Environment.Is64BitProcess)
{
- this.UpdateMessage = "Your system supports the 64bit version of HandBrake! This offers performance and stability improvements over this 32bit version.";
+ this.UpdateMessage = Resources.OptionsViewModel_64bitAvailable;
this.UpdateAvailable = true;
}
else
{
- this.UpdateMessage = "There are no new updates at this time.";
+ this.UpdateMessage = Resources.OptionsViewModel_NoNewUpdates;
this.UpdateAvailable = false;
}
}
@@ -1554,7 +1555,7 @@ namespace HandBrakeWPF.ViewModels if (info.TotalBytes == 0 || info.BytesRead == 0)
{
this.UpdateAvailable = false;
- this.UpdateMessage = info.WasSuccessful ? "Update Downloaded" : "Update Service Unavailable. You can try downloading the update from https://handbrake.fr";
+ this.UpdateMessage = info.WasSuccessful ? Resources.OptionsViewModel_UpdateDownloaded : Resources.OptionsViewModel_UpdateServiceUnavailable;
return;
}
@@ -1575,7 +1576,7 @@ namespace HandBrakeWPF.ViewModels private void DownloadComplete(DownloadStatus info)
{
this.UpdateAvailable = false;
- this.UpdateMessage = info.WasSuccessful ? "Update Downloaded" : "Update Failed. You can try downloading the update from https://handbrake.fr";
+ this.UpdateMessage = info.WasSuccessful ? Resources.OptionsViewModel_UpdateDownloaded : Resources.OptionsViewModel_UpdateFailed;
Process.Start(Path.Combine(Path.GetTempPath(), "handbrake-setup.exe"));
Execute.OnUIThread(() => Application.Current.Shutdown());
|