summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-06-11 19:33:30 +0000
committersr55 <[email protected]>2015-06-11 19:33:30 +0000
commita74ccc5f0241e5039ba66613496cd904f0b7756e (patch)
tree60779d9ef138ce2e877e792cf5c5777d86b66bd0 /win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
parentc06630cad4d274c4e1110df02f2909d40704e2bd (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/StaticPreviewViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
index 768c127d6..6aa7a3050 100644
--- a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
@@ -411,7 +411,7 @@ namespace HandBrakeWPF.ViewModels
{
this.Task = task;
this.UpdatePreviewFrame();
- this.DisplayName = "Picture Preview";
+ this.DisplayName = Resources.StaticPreviewViewModel_Title;
this.Title = Resources.Preview;
this.ScannedSource = scannedSource;
}
@@ -517,13 +517,13 @@ namespace HandBrakeWPF.ViewModels
catch (Exception)
{
this.IsEncoding = false;
- this.errorService.ShowMessageBox("Unable to delete previous preview file. You may need to restart the application.",
+ this.errorService.ShowMessageBox(Resources.StaticPreview_UnableToDeletePreview,
Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
}
if (this.Task == null || string.IsNullOrEmpty(Task.Source))
{
- this.errorService.ShowMessageBox("You must first scan a source and setup your encode before creating a preview.",
+ this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_ScanFirst,
Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}
@@ -604,7 +604,7 @@ namespace HandBrakeWPF.ViewModels
}
else
{
- this.errorService.ShowMessageBox("Unable to detect VLC Player. \nPlease make sure VLC is installed and the directory specified in HandBrake's options is correct. (See: \"Tools Menu > Options > Picture Tab\")",
+ this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_UnableToFindVLC,
Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);
}
}
@@ -618,7 +618,7 @@ namespace HandBrakeWPF.ViewModels
}
else
{
- this.errorService.ShowMessageBox("Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details.",
+ this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_UnableToPlayFile,
Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);
}
}
@@ -635,7 +635,7 @@ namespace HandBrakeWPF.ViewModels
// Make sure we are not already encoding and if we are then display an error.
if (encodeService.IsEncoding)
{
- this.errorService.ShowMessageBox("Handbrake is already encoding a video! Only one file can be encoded at any one time.",
+ this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_AlreadyEncoding,
Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}