diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
8 files changed, 37 insertions, 37 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs index 824b808ae..70138d8c6 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs @@ -47,7 +47,7 @@ namespace HandBrakeWPF.ViewModels private ISubtitlesDefaultsViewModel subtitlesDefaultsViewModel;
private PresetDisplayCategory selectedPresetCategory;
- private readonly PresetDisplayCategory addNewCategory = new PresetDisplayCategory(ResourcesUI.AddPresetView_AddNewCategory, true, null);
+ private readonly PresetDisplayCategory addNewCategory = new PresetDisplayCategory(Resources.AddPresetView_AddNewCategory, true, null);
private bool canAddNewPresetCategory;
/// <summary>
@@ -67,7 +67,7 @@ namespace HandBrakeWPF.ViewModels this.presetService = presetService;
this.errorService = errorService;
this.windowManager = windowManager;
- this.Title = ResourcesUI.AddPresetView_AddPreset;
+ this.Title = Resources.AddPresetView_AddPreset;
this.Preset = new Preset { IsBuildIn = false, IsDefault = false, Category = PresetService.UserPresetCatgoryName };
this.PictureSettingsModes = EnumHelper<PresetPictureSettingsMode>.GetEnumList();
this.PresetCategories = presetService.GetPresetCategories(true).Union(new List<PresetDisplayCategory> { addNewCategory }).ToList();
@@ -306,7 +306,7 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void EditAudioDefaults()
{
- IPopupWindowViewModel popup = new PopupWindowViewModel(this.audioDefaultsViewModel, ResourcesUI.Preset_AudioDefaults_Title, ResourcesUI.Preset_AudioDefaults_SubText);
+ IPopupWindowViewModel popup = new PopupWindowViewModel(this.audioDefaultsViewModel, Resources.Preset_AudioDefaults_Title, Resources.Preset_AudioDefaults_SubText);
if (this.windowManager.ShowDialog(popup) == true)
{
this.Preset.AudioTrackBehaviours = this.audioDefaultsViewModel.AudioBehaviours.Clone();
@@ -322,7 +322,7 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void EditSubtitleDefaults()
{
- IPopupWindowViewModel popup = new PopupWindowViewModel(this.subtitlesDefaultsViewModel, ResourcesUI.Preset_SubtitleDefaults_Title, ResourcesUI.Preset_SubtitleDefaults_SubText);
+ IPopupWindowViewModel popup = new PopupWindowViewModel(this.subtitlesDefaultsViewModel, Resources.Preset_SubtitleDefaults_Title, Resources.Preset_SubtitleDefaults_SubText);
if (this.windowManager.ShowDialog(popup) == true)
{
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index e63e75dae..d5b7840ff 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -217,7 +217,7 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void ShowAudioDefaults()
{
- IPopupWindowViewModel popup = new PopupWindowViewModel(this.AudioDefaultsViewModel, ResourcesUI.Preset_AudioDefaults_Title, ResourcesUI.AudioView_AudioDefaultsDescription);
+ IPopupWindowViewModel popup = new PopupWindowViewModel(this.AudioDefaultsViewModel, Resources.Preset_AudioDefaults_Title, Resources.AudioView_AudioDefaultsDescription);
if (this.windowManager.ShowDialog(popup) == true)
{
this.OnTabStatusChanged(null);
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 35235e27a..7cd66fb76 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1221,9 +1221,9 @@ namespace HandBrakeWPF.ViewModels this.SelectedTitle.Resolution.Height,
Math.Round(this.SelectedTitle.Fps, 2),
this.SelectedTitle.AudioTracks.Count,
- ResourcesUI.MainView_AudioTrackCount,
+ Resources.MainView_AudioTrackCount,
this.SelectedTitle.Subtitles.Count,
- ResourcesUI.MainView_SubtitleTracksCount);
+ Resources.MainView_SubtitleTracksCount);
}
return string.Empty;
@@ -1792,8 +1792,8 @@ namespace HandBrakeWPF.ViewModels public void StopEncode()
{
MessageBoxResult result = this.errorService.ShowMessageBox(
- ResourcesUI.MainView_StopEncodeConfirm,
- ResourcesUI.MainView_StopEncode,
+ Resources.MainView_StopEncodeConfirm,
+ Resources.MainView_StopEncode,
MessageBoxButton.YesNo,
MessageBoxImage.Question);
@@ -1873,7 +1873,7 @@ namespace HandBrakeWPF.ViewModels if (this.SelectedTitle == null)
{
MessageBox.Show(
- ResourcesUI.MainView_SubtitleBeforeScanError,
+ Resources.MainView_SubtitleBeforeScanError,
Resources.Error,
MessageBoxButton.OK,
MessageBoxImage.Error);
@@ -2644,11 +2644,11 @@ namespace HandBrakeWPF.ViewModels }
else if (e.IsMuxing)
{
- this.ProgramStatusLabel = ResourcesUI.MainView_Muxing;
+ this.ProgramStatusLabel = Resources.MainView_Muxing;
}
else if (e.IsSearching)
{
- this.ProgramStatusLabel = string.Format(ResourcesUI.MainView_ProgressStatusWithTask, ResourcesUI.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, jobsPending);
+ this.ProgramStatusLabel = string.Format(Resources.MainView_ProgressStatusWithTask, Resources.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, jobsPending);
}
else
{
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index fb9cf5228..e915663c8 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -1669,7 +1669,7 @@ namespace HandBrakeWPF.ViewModels if (!isSilent)
{
this.errorService.ShowMessageBox(
- ResourcesUI.OptionsView_InvalidFileFormatChars,
+ Resources.OptionsView_InvalidFileFormatChars,
Resources.Error,
MessageBoxButton.OK,
MessageBoxImage.Error);
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueSelectionViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueSelectionViewModel.cs index 6705670d5..95c276639 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueSelectionViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueSelectionViewModel.cs @@ -264,7 +264,7 @@ namespace HandBrakeWPF.ViewModels if (preset != null)
{
- this.CurrentPreset = string.Format(ResourcesUI.QueueSelection_UsingPreset, preset.Name);
+ this.CurrentPreset = string.Format(Resources.QueueSelection_UsingPreset, preset.Name);
}
this.NotifyOfPropertyChange(() => this.IsAutoNamingEnabled);
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index 0edc63822..556f741f1 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -693,7 +693,7 @@ namespace HandBrakeWPF.ViewModels {
if (this.SelectedTask == null || this.SelectedTask.Status == QueueItemStatus.InProgress || this.SelectedTask.Status == QueueItemStatus.Waiting)
{
- this.ActivityLog = ResourcesUI.QueueView_LogNotAvailableYet;
+ this.ActivityLog = Resources.QueueView_LogNotAvailableYet;
}
else
{
@@ -754,12 +754,12 @@ namespace HandBrakeWPF.ViewModels }
else if (e.IsMuxing)
{
- this.JobStatus = ResourcesUI.MainView_Muxing;
+ this.JobStatus = Resources.MainView_Muxing;
this.IntermediateProgress = true;
}
else if (e.IsSearching)
{
- this.JobStatus = string.Format(ResourcesUI.MainView_ProgressStatusWithTask, ResourcesUI.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, null);
+ this.JobStatus = string.Format(Resources.MainView_ProgressStatusWithTask, Resources.MainView_Searching, e.PercentComplete, e.EstimatedTimeLeft, null);
this.ProgressValue = e.PercentComplete;
}
else
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index 0af10cd0e..3d26296fd 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -429,7 +429,7 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void ShowSubtitleDefaultsPanel()
{
- IPopupWindowViewModel popup = new PopupWindowViewModel(this.SubtitleDefaultsViewModel, ResourcesUI.Preset_SubtitleDefaults_Title, ResourcesUI.SubtitleView_SubtitleDefaultsDescription);
+ IPopupWindowViewModel popup = new PopupWindowViewModel(this.SubtitleDefaultsViewModel, Resources.Preset_SubtitleDefaults_Title, Resources.SubtitleView_SubtitleDefaultsDescription);
if (this.windowManager.ShowDialog(popup) == true)
{
this.OnTabStatusChanged(null);
diff --git a/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs index ddd7a17d7..eb165713e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs @@ -376,7 +376,7 @@ namespace HandBrakeWPF.ViewModels this.selectedPreview = this.selectedPreview + 1; this.UpdatePreviewFrame(); - this.PreviewInfo = string.Format(ResourcesUI.SummaryView_PreviewInfo, this.selectedPreview, maxPreview); + this.PreviewInfo = string.Format(Resources.SummaryView_PreviewInfo, this.selectedPreview, maxPreview); this.NotifyOfPropertyChange(() => this.PreviewInfo); this.SetPreviewControlVisibility(); @@ -392,7 +392,7 @@ namespace HandBrakeWPF.ViewModels this.selectedPreview = this.selectedPreview - 1; this.UpdatePreviewFrame(); - this.PreviewInfo = string.Format(ResourcesUI.SummaryView_PreviewInfo, this.selectedPreview, maxPreview); + this.PreviewInfo = string.Format(Resources.SummaryView_PreviewInfo, this.selectedPreview, maxPreview); this.NotifyOfPropertyChange(() => this.PreviewInfo); this.SetPreviewControlVisibility(); @@ -492,21 +492,21 @@ namespace HandBrakeWPF.ViewModels this.SubtitleTrackInfo = this.GetSubtitleDescription(); this.NotifyOfPropertyChange(() => this.SubtitleTrackInfo); - this.ChapterInfo = this.Task.IncludeChapterMarkers ? ResourcesUI.SummaryView_Chapters : ResourcesUI.SummaryView_NoChapters; + this.ChapterInfo = this.Task.IncludeChapterMarkers ? Resources.SummaryView_Chapters : Resources.SummaryView_NoChapters; this.NotifyOfPropertyChange(() => this.ChapterInfo); this.FiltersInfo = this.GetFilterDescription(); this.NotifyOfPropertyChange(() => this.FiltersInfo); // Picutre Section - this.DimensionInfo = string.Format("{0}x{1} {2}, {3}x{4} {5}", this.Task.Width, this.Task.Height, ResourcesUI.SummaryView_storage, this.Task.DisplayWidth, this.Task.Height, ResourcesUI.SummaryView_display); + this.DimensionInfo = string.Format("{0}x{1} {2}, {3}x{4} {5}", this.Task.Width, this.Task.Height, Resources.SummaryView_storage, this.Task.DisplayWidth, this.Task.Height, Resources.SummaryView_display); this.NotifyOfPropertyChange(() => this.DimensionInfo); this.AspectInfo = string.Empty; this.NotifyOfPropertyChange(() => this.AspectInfo); // Preview - this.PreviewInfo = string.Format(ResourcesUI.SummaryView_PreviewInfo, this.selectedPreview, this.userSettingService.GetUserSetting<int>(UserSettingConstants.PreviewScanCount, typeof(int))); + this.PreviewInfo = string.Format(Resources.SummaryView_PreviewInfo, this.selectedPreview, this.userSettingService.GetUserSetting<int>(UserSettingConstants.PreviewScanCount, typeof(int))); this.NotifyOfPropertyChange(() => this.PreviewInfo); this.ShowPreview = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ShowPreviewOnSummaryTab); @@ -516,14 +516,14 @@ namespace HandBrakeWPF.ViewModels { if (this.Task == null) { - return ResourcesUI.SummaryView_NoFilters; + return Resources.SummaryView_NoFilters; } List<string> filters = new List<string>(); if (this.Task.Detelecine != Detelecine.Off) { - filters.Add(ResourcesUI.SummaryView_Detelecine); + filters.Add(Resources.SummaryView_Detelecine); } if (this.Task.DeinterlaceFilter != DeinterlaceFilter.Off) @@ -543,17 +543,17 @@ namespace HandBrakeWPF.ViewModels if (this.Task.Deblock > 4) { - filters.Add(ResourcesUI.SummaryView_Deblock); + filters.Add(Resources.SummaryView_Deblock); } if (this.Task.Grayscale) { - filters.Add(ResourcesUI.SummaryView_Grayscale); + filters.Add(Resources.SummaryView_Grayscale); } if (this.Task.Rotation != 0 || this.task.FlipVideo) { - filters.Add(ResourcesUI.SummaryView_Rotation); + filters.Add(Resources.SummaryView_Rotation); } return string.Join(", ", filters).TrimEnd(',').Trim(); @@ -563,7 +563,7 @@ namespace HandBrakeWPF.ViewModels { if (this.Task.AudioTracks.Count == 0) { - return ResourcesUI.SummaryView_NoAudioTracks; + return Resources.SummaryView_NoAudioTracks; } StringBuilder desc = new StringBuilder(); @@ -586,7 +586,7 @@ namespace HandBrakeWPF.ViewModels if (this.Task.AudioTracks.Count > 2) { - desc.AppendLine(string.Format("+ {0} {1}", this.Task.AudioTracks.Count - 2, ResourcesUI.SummaryView_AdditionalAudioTracks)); + desc.AppendLine(string.Format("+ {0} {1}", this.Task.AudioTracks.Count - 2, Resources.SummaryView_AdditionalAudioTracks)); } return desc.ToString().Trim(); @@ -596,7 +596,7 @@ namespace HandBrakeWPF.ViewModels { if (this.Task.AudioTracks.Count == 0) { - return ResourcesUI.SummaryView_NoSubtitleTracks; + return Resources.SummaryView_NoSubtitleTracks; } StringBuilder desc = new StringBuilder(); @@ -605,7 +605,7 @@ namespace HandBrakeWPF.ViewModels { SubtitleTrack track1 = this.Task.SubtitleTracks[0]; string subtitleName = track1.IsSrtSubtitle ? track1.SrtFileName : track1.SourceTrack.ToString(); - string burned = track1.Burned ? ", " + ResourcesUI.SummaryView_Burned : string.Empty; + string burned = track1.Burned ? ", " + Resources.SummaryView_Burned : string.Empty; desc.AppendLine(string.Format("{0}{1}", subtitleName, burned)); } @@ -613,13 +613,13 @@ namespace HandBrakeWPF.ViewModels { SubtitleTrack track2 = this.Task.SubtitleTracks[1]; string subtitleName = track2.IsSrtSubtitle ? track2.SrtFileName : track2.SourceTrack.ToString(); - string burned = track2.Burned ? ", " + ResourcesUI.SummaryView_Burned : string.Empty; + string burned = track2.Burned ? ", " + Resources.SummaryView_Burned : string.Empty; desc.AppendLine(string.Format("{0}{1}", subtitleName, burned)); } if (this.Task.SubtitleTracks.Count > 2) { - desc.AppendLine(string.Format("+ {0} {1}", this.Task.SubtitleTracks.Count - 2, ResourcesUI.SummaryView_AdditionalSubtitleTracks)); + desc.AppendLine(string.Format("+ {0} {1}", this.Task.SubtitleTracks.Count - 2, Resources.SummaryView_AdditionalSubtitleTracks)); } return desc.ToString().Trim(); @@ -627,7 +627,7 @@ namespace HandBrakeWPF.ViewModels private void ClearDisplay() { - this.VideoTrackInfo = ResourcesUI.SummaryView_NoTracks; + this.VideoTrackInfo = Resources.SummaryView_NoTracks; this.NotifyOfPropertyChange(() => this.VideoTrackInfo); this.AudioTrackInfo = string.Empty; @@ -639,10 +639,10 @@ namespace HandBrakeWPF.ViewModels this.ChapterInfo = string.Empty; this.NotifyOfPropertyChange(() => this.ChapterInfo); - this.FiltersInfo = ResourcesUI.SummaryView_NoFilters; + this.FiltersInfo = Resources.SummaryView_NoFilters; this.NotifyOfPropertyChange(() => this.FiltersInfo); - this.DimensionInfo = ResourcesUI.SummaryView_NoSource; + this.DimensionInfo = Resources.SummaryView_NoSource; this.NotifyOfPropertyChange(() => this.ChapterInfo); this.AspectInfo = string.Empty; |