]> granicus.if.org Git - handbrake/commitdiff
WinGui: Moving the bulk of the view model strings to resources.
authorsr55 <sr55.hb@outlook.com>
Thu, 11 Jun 2015 19:33:30 +0000 (19:33 +0000)
committersr55 <sr55.hb@outlook.com>
Thu, 11 Jun 2015 19:33:30 +0000 (19:33 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7292 b64f7644-9d1e-0410-96f1-a4d463321fa5

16 files changed:
win/CS/HandBrakeWPF/Properties/Resources.Designer.cs
win/CS/HandBrakeWPF/Properties/Resources.resx
win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs
win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs [deleted file]
win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs
win/CS/HandBrakeWPF/ViewModels/CountdownAlertViewModel.cs
win/CS/HandBrakeWPF/ViewModels/ErrorViewModel.cs
win/CS/HandBrakeWPF/ViewModels/LogViewModel.cs
win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
win/CS/HandBrakeWPF/ViewModels/QueueSelectionViewModel.cs
win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
win/CS/HandBrakeWPF/ViewModels/ShellViewModel.cs
win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs

index 1cfcd6914e17ad07b814546a692ac6bdd74c65f9..71227771fea8856950774aeb9982ecc76c371914 100644 (file)
@@ -94,6 +94,51 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to The Custom Width or Height fields must be filled in for the &apos;Custom&apos; option..\r
+        /// </summary>\r
+        public static string AddPresetViewModel_CustomWidthHeightFieldsRequired {\r
+            get {\r
+                return ResourceManager.GetString("AddPresetViewModel_CustomWidthHeightFieldsRequired", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to A Preset must have a Name. Please fill out the Preset Name field..\r
+        /// </summary>\r
+        public static string AddPresetViewModel_PresetMustProvideName {\r
+            get {\r
+                return ResourceManager.GetString("AddPresetViewModel_PresetMustProvideName", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to A Preset with this name already exists. Would you like to overwrite it?.\r
+        /// </summary>\r
+        public static string AddPresetViewModel_PresetWithSameNameOverwriteWarning {\r
+            get {\r
+                return ResourceManager.GetString("AddPresetViewModel_PresetWithSameNameOverwriteWarning", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Unable to add preset.\r
+        /// </summary>\r
+        public static string AddPresetViewModel_UnableToAddPreset {\r
+            get {\r
+                return ResourceManager.GetString("AddPresetViewModel_UnableToAddPreset", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to You must first scan a source to use the &apos;Source Maximum&apos; Option..\r
+        /// </summary>\r
+        public static string AddPresetViewModel_YouMustFirstScanSource {\r
+            get {\r
+                return ResourceManager.GetString("AddPresetViewModel_YouMustFirstScanSource", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to x264 has a variety of algorithms to decide when to use B-frames and how many to use.\r
         ///\r
@@ -357,6 +402,78 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Audio Defaults.\r
+        /// </summary>\r
+        public static string AudioViewModel_AudioDefaults {\r
+            get {\r
+                return ResourceManager.GetString("AudioViewModel_AudioDefaults", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Audio Tracks.\r
+        /// </summary>\r
+        public static string AudioViewModel_AudioTracks {\r
+            get {\r
+                return ResourceManager.GetString("AudioViewModel_AudioTracks", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Configure Defaults.\r
+        /// </summary>\r
+        public static string AudioViewModel_ConfigureDefaults {\r
+            get {\r
+                return ResourceManager.GetString("AudioViewModel_ConfigureDefaults", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Switch Back To Tracks.\r
+        /// </summary>\r
+        public static string AudioViewModel_SwitchBackToTracks {\r
+            get {\r
+                return ResourceManager.GetString("AudioViewModel_SwitchBackToTracks", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Chapter marker names will NOT be saved in your encode..\r
+        /// </summary>\r
+        public static string ChaptersViewModel_UnableToExportChaptersMsg {\r
+            get {\r
+                return ResourceManager.GetString("ChaptersViewModel_UnableToExportChaptersMsg", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Unable to save Chapter Makrers file! .\r
+        /// </summary>\r
+        public static string ChaptersViewModel_UnableToExportChaptersWarning {\r
+            get {\r
+                return ResourceManager.GetString("ChaptersViewModel_UnableToExportChaptersWarning", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Confirm.\r
+        /// </summary>\r
+        public static string Confirm {\r
+            get {\r
+                return ResourceManager.GetString("Confirm", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to The following action &apos;{0}&apos; will occur in {1} seconds..\r
+        /// </summary>\r
+        public static string CountdownAlertViewModel_NoticeMessage {\r
+            get {\r
+                return ResourceManager.GetString("CountdownAlertViewModel_NoticeMessage", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Error.\r
         /// </summary>\r
@@ -366,6 +483,33 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to If the problem presists, please try restarting HandBrake..\r
+        /// </summary>\r
+        public static string ErrorViewModel_IfTheProblemPersists {\r
+            get {\r
+                return ResourceManager.GetString("ErrorViewModel_IfTheProblemPersists", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to There is no further information available about this error..\r
+        /// </summary>\r
+        public static string ErrorViewModel_NoFurtherInformation {\r
+            get {\r
+                return ResourceManager.GetString("ErrorViewModel_NoFurtherInformation", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to An Unknown Error has occured..\r
+        /// </summary>\r
+        public static string ErrorViewModel_UnknownError {\r
+            get {\r
+                return ResourceManager.GetString("ErrorViewModel_UnknownError", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to HandBrake.\r
         /// </summary>\r
@@ -839,6 +983,60 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Your system supports the 64bit version of HandBrake! This offers performance and stability improvements over this 32bit version..\r
+        /// </summary>\r
+        public static string OptionsViewModel_64bitAvailable {\r
+            get {\r
+                return ResourceManager.GetString("OptionsViewModel_64bitAvailable", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to A New Update is Available!.\r
+        /// </summary>\r
+        public static string OptionsViewModel_NewUpdate {\r
+            get {\r
+                return ResourceManager.GetString("OptionsViewModel_NewUpdate", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to There are no new updates at this time..\r
+        /// </summary>\r
+        public static string OptionsViewModel_NoNewUpdates {\r
+            get {\r
+                return ResourceManager.GetString("OptionsViewModel_NoNewUpdates", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Update Downloaded.\r
+        /// </summary>\r
+        public static string OptionsViewModel_UpdateDownloaded {\r
+            get {\r
+                return ResourceManager.GetString("OptionsViewModel_UpdateDownloaded", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Update Failed. You can try downloading the update from https://handbrake.fr.\r
+        /// </summary>\r
+        public static string OptionsViewModel_UpdateFailed {\r
+            get {\r
+                return ResourceManager.GetString("OptionsViewModel_UpdateFailed", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Update Service Unavailable. You can try downloading the update from https://handbrake.fr.\r
+        /// </summary>\r
+        public static string OptionsViewModel_UpdateServiceUnavailable {\r
+            get {\r
+                return ResourceManager.GetString("OptionsViewModel_UpdateServiceUnavailable", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Overwrite?.\r
         /// </summary>\r
@@ -857,6 +1055,15 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Storage: {0}x{1}, Display: {2}x{3}.\r
+        /// </summary>\r
+        public static string PictureSettingsViewModel_StorageDisplayLabel {\r
+            get {\r
+                return ResourceManager.GetString("PictureSettingsViewModel_StorageDisplayLabel", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Preset Version.\r
         /// </summary>\r
@@ -959,6 +1166,178 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Add to Queue.\r
+        /// </summary>\r
+        public static string QueueSelectionViewModel_AddToQueue {\r
+            get {\r
+                return ResourceManager.GetString("QueueSelectionViewModel_AddToQueue", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Are you sure you wish to clear the queue?.\r
+        /// </summary>\r
+        public static string QueueViewModel_ClearQueueConfrimation {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_ClearQueueConfrimation", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Are you sure you want to delete the selected jobs?.\r
+        /// </summary>\r
+        public static string QueueViewModel_DelSelectedJobConfirmation {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_DelSelectedJobConfirmation", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Are you sure you wish to edit this job? It will be removed from the queue and sent to the main window..\r
+        /// </summary>\r
+        public static string QueueViewModel_EditConfrimation {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_EditConfrimation", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to This encode is currently in progress. If you delete it, the encode will be stopped. Are you sure you wish to proceed?.\r
+        /// </summary>\r
+        public static string QueueViewModel_JobCurrentlyRunningWarning {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_JobCurrentlyRunningWarning", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to {0} jobs pending.\r
+        /// </summary>\r
+        public static string QueueViewModel_JobsPending {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_JobsPending", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Last Queued Job Finished.\r
+        /// </summary>\r
+        public static string QueueViewModel_LastJobFinished {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_LastJobFinished", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to No encodes pending.\r
+        /// </summary>\r
+        public static string QueueViewModel_NoEncodesPending {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_NoEncodesPending", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to There are no jobs currently encoding.\r
+        /// </summary>\r
+        public static string QueueViewModel_NoJobsPending {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_NoJobsPending", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to There are no pending jobs..\r
+        /// </summary>\r
+        public static string QueueViewModel_NoPendingJobs {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_NoPendingJobs", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Queue.\r
+        /// </summary>\r
+        public static string QueueViewModel_Queue {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_Queue", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Queue Completed.\r
+        /// </summary>\r
+        public static string QueueViewModel_QueueCompleted {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_QueueCompleted", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Queue Not Running.\r
+        /// </summary>\r
+        public static string QueueViewModel_QueueNotRunning {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_QueueNotRunning", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to The Queue has been paused. The currently running job will run to completion and no further jobs will start..\r
+        /// </summary>\r
+        public static string QueueViewModel_QueuePauseNotice {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_QueuePauseNotice", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Queue Paused.\r
+        /// </summary>\r
+        public static string QueueViewModel_QueuePending {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_QueuePending", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Queue Ready.\r
+        /// </summary>\r
+        public static string QueueViewModel_QueueReady {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_QueueReady", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Queue Started.\r
+        /// </summary>\r
+        public static string QueueViewModel_QueueStarted {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_QueueStarted", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Encoding: Pass {0} of {1},  {2:00.00}%, FPS: {3:000.0},  Avg FPS: {4:000.0},  Time Remaining: {5},  Elapsed: {6:hh\:mm\:ss}.\r
+        /// </summary>\r
+        public static string QueueViewModel_QueueStatusDisplay {\r
+            get {\r
+                return ResourceManager.GetString("QueueViewModel_QueueStatusDisplay", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to An Encode is currently running. Exiting HandBrake will stop this encode.\r
+        ///Are you sure you wish to exit HandBrake?.\r
+        /// </summary>\r
+        public static string ShellViewModel_CanClose {\r
+            get {\r
+                return ResourceManager.GetString("ShellViewModel_CanClose", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Ready.\r
         /// </summary>\r
@@ -968,6 +1347,61 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Unable to delete previous preview file. You may need to restart the application..\r
+        /// </summary>\r
+        public static string StaticPreview_UnableToDeletePreview {\r
+            get {\r
+                return ResourceManager.GetString("StaticPreview_UnableToDeletePreview", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Handbrake is already encoding a video! Only one file can be encoded at any one time..\r
+        /// </summary>\r
+        public static string StaticPreviewViewModel_AlreadyEncoding {\r
+            get {\r
+                return ResourceManager.GetString("StaticPreviewViewModel_AlreadyEncoding", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to You must first scan a source and setup your encode before creating a preview..\r
+        /// </summary>\r
+        public static string StaticPreviewViewModel_ScanFirst {\r
+            get {\r
+                return ResourceManager.GetString("StaticPreviewViewModel_ScanFirst", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Picture Preview.\r
+        /// </summary>\r
+        public static string StaticPreviewViewModel_Title {\r
+            get {\r
+                return ResourceManager.GetString("StaticPreviewViewModel_Title", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Unable to detect VLC Player. \r
+        ///Please make sure VLC is installed and the directory specified in HandBrake&apos;s options is correct. (See: &quot;Tools Menu &gt; Options &gt; Picture Tab&quot;).\r
+        /// </summary>\r
+        public static string StaticPreviewViewModel_UnableToFindVLC {\r
+            get {\r
+                return ResourceManager.GetString("StaticPreviewViewModel_UnableToFindVLC", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details..\r
+        /// </summary>\r
+        public static string StaticPreviewViewModel_UnableToPlayFile {\r
+            get {\r
+                return ResourceManager.GetString("StaticPreviewViewModel_UnableToPlayFile", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to None - Only tracks where the container does not support the format will be burned in.\r
         ///Foreign Audio Track - The Foreign Audio track will be burned in if available. \r
@@ -980,6 +1414,51 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Configure Defaults.\r
+        /// </summary>\r
+        public static string SubtitlesViewModel_ConfigureDefaults {\r
+            get {\r
+                return ResourceManager.GetString("SubtitlesViewModel_ConfigureDefaults", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Subtitle Defaults.\r
+        /// </summary>\r
+        public static string SubtitlesViewModel_SubDefaults {\r
+            get {\r
+                return ResourceManager.GetString("SubtitlesViewModel_SubDefaults", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Subtitle Tracks.\r
+        /// </summary>\r
+        public static string SubtitlesViewModel_SubTracks {\r
+            get {\r
+                return ResourceManager.GetString("SubtitlesViewModel_SubTracks", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Switch Back To Tracks.\r
+        /// </summary>\r
+        public static string SubtitlesViewModel_SwitchToTracks {\r
+            get {\r
+                return ResourceManager.GetString("SubtitlesViewModel_SwitchToTracks", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Unknown Error.\r
+        /// </summary>\r
+        public static string UnknownError {\r
+            get {\r
+                return ResourceManager.GetString("UnknownError", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Updated.\r
         /// </summary>\r
index 175695ae1725eb37f821fceb921616162acf07ad..22ad582b7d639a04b0dd6aa47afc15114a62a735 100644 (file)
@@ -587,4 +587,165 @@ The Activity log may have further information.</value>
   <data name="MainViewModel_EncodeStatusChanged_StatusLabel" xml:space="preserve">\r
     <value>{0:00.00}%   FPS: {1:000.0}   Avg FPS: {2:000.0}   Time Remaining: {3}   Elapsed: {4:hh\:mm\:ss}</value>\r
   </data>\r
+  <data name="AddPresetViewModel_PresetMustProvideName" xml:space="preserve">\r
+    <value>A Preset must have a Name. Please fill out the Preset Name field.</value>\r
+  </data>\r
+  <data name="AddPresetViewModel_PresetWithSameNameOverwriteWarning" xml:space="preserve">\r
+    <value>A Preset with this name already exists. Would you like to overwrite it?</value>\r
+  </data>\r
+  <data name="AddPresetViewModel_YouMustFirstScanSource" xml:space="preserve">\r
+    <value>You must first scan a source to use the 'Source Maximum' Option.</value>\r
+  </data>\r
+  <data name="AddPresetViewModel_CustomWidthHeightFieldsRequired" xml:space="preserve">\r
+    <value>The Custom Width or Height fields must be filled in for the 'Custom' option.</value>\r
+  </data>\r
+  <data name="AddPresetViewModel_UnableToAddPreset" xml:space="preserve">\r
+    <value>Unable to add preset</value>\r
+  </data>\r
+  <data name="UnknownError" xml:space="preserve">\r
+    <value>Unknown Error</value>\r
+  </data>\r
+  <data name="AudioViewModel_AudioDefaults" xml:space="preserve">\r
+    <value>Audio Defaults</value>\r
+  </data>\r
+  <data name="AudioViewModel_AudioTracks" xml:space="preserve">\r
+    <value>Audio Tracks</value>\r
+  </data>\r
+  <data name="AudioViewModel_ConfigureDefaults" xml:space="preserve">\r
+    <value>Configure Defaults</value>\r
+  </data>\r
+  <data name="AudioViewModel_SwitchBackToTracks" xml:space="preserve">\r
+    <value>Switch Back To Tracks</value>\r
+  </data>\r
+  <data name="ChaptersViewModel_UnableToExportChaptersWarning" xml:space="preserve">\r
+    <value>Unable to save Chapter Makrers file! </value>\r
+  </data>\r
+  <data name="ChaptersViewModel_UnableToExportChaptersMsg" xml:space="preserve">\r
+    <value>Chapter marker names will NOT be saved in your encode.</value>\r
+  </data>\r
+  <data name="CountdownAlertViewModel_NoticeMessage" xml:space="preserve">\r
+    <value>The following action '{0}' will occur in {1} seconds.</value>\r
+  </data>\r
+  <data name="ErrorViewModel_IfTheProblemPersists" xml:space="preserve">\r
+    <value>If the problem presists, please try restarting HandBrake.</value>\r
+  </data>\r
+  <data name="ErrorViewModel_NoFurtherInformation" xml:space="preserve">\r
+    <value>There is no further information available about this error.</value>\r
+  </data>\r
+  <data name="ErrorViewModel_UnknownError" xml:space="preserve">\r
+    <value>An Unknown Error has occured.</value>\r
+  </data>\r
+  <data name="OptionsViewModel_NewUpdate" xml:space="preserve">\r
+    <value>A New Update is Available!</value>\r
+  </data>\r
+  <data name="OptionsViewModel_64bitAvailable" xml:space="preserve">\r
+    <value>Your system supports the 64bit version of HandBrake! This offers performance and stability improvements over this 32bit version.</value>\r
+  </data>\r
+  <data name="OptionsViewModel_NoNewUpdates" xml:space="preserve">\r
+    <value>There are no new updates at this time.</value>\r
+  </data>\r
+  <data name="OptionsViewModel_UpdateDownloaded" xml:space="preserve">\r
+    <value>Update Downloaded</value>\r
+  </data>\r
+  <data name="OptionsViewModel_UpdateServiceUnavailable" xml:space="preserve">\r
+    <value>Update Service Unavailable. You can try downloading the update from https://handbrake.fr</value>\r
+  </data>\r
+  <data name="OptionsViewModel_UpdateFailed" xml:space="preserve">\r
+    <value>Update Failed. You can try downloading the update from https://handbrake.fr</value>\r
+  </data>\r
+  <data name="PictureSettingsViewModel_StorageDisplayLabel" xml:space="preserve">\r
+    <value>Storage: {0}x{1}, Display: {2}x{3}</value>\r
+  </data>\r
+  <data name="QueueSelectionViewModel_AddToQueue" xml:space="preserve">\r
+    <value>Add to Queue</value>\r
+  </data>\r
+  <data name="QueueViewModel_NoEncodesPending" xml:space="preserve">\r
+    <value>No encodes pending</value>\r
+  </data>\r
+  <data name="QueueViewModel_NoJobsPending" xml:space="preserve">\r
+    <value>There are no jobs currently encoding</value>\r
+  </data>\r
+  <data name="QueueViewModel_Queue" xml:space="preserve">\r
+    <value>Queue</value>\r
+  </data>\r
+  <data name="QueueViewModel_ClearQueueConfrimation" xml:space="preserve">\r
+    <value>Are you sure you wish to clear the queue?</value>\r
+  </data>\r
+  <data name="Confirm" xml:space="preserve">\r
+    <value>Confirm</value>\r
+  </data>\r
+  <data name="QueueViewModel_JobsPending" xml:space="preserve">\r
+    <value>{0} jobs pending</value>\r
+  </data>\r
+  <data name="QueueViewModel_QueuePending" xml:space="preserve">\r
+    <value>Queue Paused</value>\r
+  </data>\r
+  <data name="QueueViewModel_QueuePauseNotice" xml:space="preserve">\r
+    <value>The Queue has been paused. The currently running job will run to completion and no further jobs will start.</value>\r
+  </data>\r
+  <data name="QueueViewModel_DelSelectedJobConfirmation" xml:space="preserve">\r
+    <value>Are you sure you want to delete the selected jobs?</value>\r
+  </data>\r
+  <data name="QueueViewModel_JobCurrentlyRunningWarning" xml:space="preserve">\r
+    <value>This encode is currently in progress. If you delete it, the encode will be stopped. Are you sure you wish to proceed?</value>\r
+  </data>\r
+  <data name="QueueViewModel_NoPendingJobs" xml:space="preserve">\r
+    <value>There are no pending jobs.</value>\r
+  </data>\r
+  <data name="QueueViewModel_EditConfrimation" xml:space="preserve">\r
+    <value>Are you sure you wish to edit this job? It will be removed from the queue and sent to the main window.</value>\r
+  </data>\r
+  <data name="QueueViewModel_QueueReady" xml:space="preserve">\r
+    <value>Queue Ready</value>\r
+  </data>\r
+  <data name="QueueViewModel_QueueNotRunning" xml:space="preserve">\r
+    <value>Queue Not Running</value>\r
+  </data>\r
+  <data name="QueueViewModel_QueueCompleted" xml:space="preserve">\r
+    <value>Queue Completed</value>\r
+  </data>\r
+  <data name="QueueViewModel_LastJobFinished" xml:space="preserve">\r
+    <value>Last Queued Job Finished</value>\r
+  </data>\r
+  <data name="QueueViewModel_QueueStarted" xml:space="preserve">\r
+    <value>Queue Started</value>\r
+  </data>\r
+  <data name="QueueViewModel_QueueStatusDisplay" xml:space="preserve">\r
+    <value>Encoding: Pass {0} of {1},  {2:00.00}%, FPS: {3:000.0},  Avg FPS: {4:000.0},  Time Remaining: {5},  Elapsed: {6:hh\:mm\:ss}</value>\r
+  </data>\r
+  <data name="ShellViewModel_CanClose" xml:space="preserve">\r
+    <value>An Encode is currently running. Exiting HandBrake will stop this encode.\r
+Are you sure you wish to exit HandBrake?</value>\r
+  </data>\r
+  <data name="StaticPreviewViewModel_Title" xml:space="preserve">\r
+    <value>Picture Preview</value>\r
+  </data>\r
+  <data name="StaticPreview_UnableToDeletePreview" xml:space="preserve">\r
+    <value>Unable to delete previous preview file. You may need to restart the application.</value>\r
+  </data>\r
+  <data name="StaticPreviewViewModel_ScanFirst" xml:space="preserve">\r
+    <value>You must first scan a source and setup your encode before creating a preview.</value>\r
+  </data>\r
+  <data name="StaticPreviewViewModel_UnableToFindVLC" xml:space="preserve">\r
+    <value>Unable to detect VLC Player. \r
+Please make sure VLC is installed and the directory specified in HandBrake's options is correct. (See: "Tools Menu &gt; Options &gt; Picture Tab")</value>\r
+  </data>\r
+  <data name="StaticPreviewViewModel_UnableToPlayFile" xml:space="preserve">\r
+    <value>Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details.</value>\r
+  </data>\r
+  <data name="StaticPreviewViewModel_AlreadyEncoding" xml:space="preserve">\r
+    <value>Handbrake is already encoding a video! Only one file can be encoded at any one time.</value>\r
+  </data>\r
+  <data name="SubtitlesViewModel_SubDefaults" xml:space="preserve">\r
+    <value>Subtitle Defaults</value>\r
+  </data>\r
+  <data name="SubtitlesViewModel_SubTracks" xml:space="preserve">\r
+    <value>Subtitle Tracks</value>\r
+  </data>\r
+  <data name="SubtitlesViewModel_SwitchToTracks" xml:space="preserve">\r
+    <value>Switch Back To Tracks</value>\r
+  </data>\r
+  <data name="SubtitlesViewModel_ConfigureDefaults" xml:space="preserve">\r
+    <value>Configure Defaults</value>\r
+  </data>\r
 </root>
\ No newline at end of file
index 189472949cfc8c1611ef8d0213374f308d199cf1..4a3b42dc59dd9e16fe9e659fa0fc963e3b64a827 100644 (file)
@@ -173,13 +173,13 @@ namespace HandBrakeWPF.ViewModels
         {\r
             if (string.IsNullOrEmpty(this.Preset.Name))\r
             {\r
-                this.errorService.ShowMessageBox("A Preset must have a Name. Please fill out the Preset Name field.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.AddPresetViewModel_PresetMustProvideName, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
             if (this.presetService.CheckIfPresetExists(this.Preset.Name))\r
             {\r
-                MessageBoxResult result = this.errorService.ShowMessageBox("A Preset with this name already exists. Would you like to overwrite it?", Resources.Error, MessageBoxButton.YesNo, MessageBoxImage.Error);\r
+                MessageBoxResult result = this.errorService.ShowMessageBox(Resources.AddPresetViewModel_PresetWithSameNameOverwriteWarning, Resources.Error, MessageBoxButton.YesNo, MessageBoxImage.Error);\r
                 if (result == MessageBoxResult.No)\r
                 {\r
                     return;\r
@@ -188,13 +188,13 @@ namespace HandBrakeWPF.ViewModels
 \r
             if (this.SelectedPictureSettingMode == PresetPictureSettingsMode.SourceMaximum && this.selectedTitle == null)\r
             {\r
-                this.errorService.ShowMessageBox("You must first scan a source to use the 'Source Maximum' Option.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.AddPresetViewModel_YouMustFirstScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
             if (this.CustomWidth == null && this.CustomHeight == null && this.SelectedPictureSettingMode == PresetPictureSettingsMode.Custom)\r
             {\r
-                this.errorService.ShowMessageBox("The Custom Width or Height fields must be filled in for the 'Custom' option.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.AddPresetViewModel_CustomWidthHeightFieldsRequired, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
@@ -226,7 +226,7 @@ namespace HandBrakeWPF.ViewModels
             bool added = this.presetService.Add(this.Preset);\r
             if (!added)\r
             {\r
-                this.errorService.ShowMessageBox("Unable to add preset", "Unknown Error", MessageBoxButton.OK,\r
+                this.errorService.ShowMessageBox(Resources.AddPresetViewModel_UnableToAddPreset, Resources.UnknownError, MessageBoxButton.OK,\r
                                                  MessageBoxImage.Error);\r
             }\r
             else\r
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs
deleted file mode 100644 (file)
index 18fee19..0000000
+++ /dev/null
@@ -1,237 +0,0 @@
-// --------------------------------------------------------------------------------------------------------------------\r
-// <copyright file="AudioDefaultsViewModel.cs" company="HandBrake Project (http://handbrake.fr)">\r
-//   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
-// </copyright>\r
-// <summary>\r
-//   The Audio Defaults View Model\r
-// </summary>\r
-// --------------------------------------------------------------------------------------------------------------------\r
-\r
-namespace HandBrakeWPF.ViewModels\r
-{\r
-    using System.Collections.Generic;\r
-    using System.ComponentModel;\r
-    using System.Linq;\r
-\r
-    using Caliburn.Micro;\r
-\r
-    using HandBrake.ApplicationServices.Interop.Model.Encoding;\r
-    using HandBrake.ApplicationServices.Utilities;\r
-\r
-    using HandBrakeWPF.Commands;\r
-    using HandBrakeWPF.Model.Audio;\r
-    using HandBrakeWPF.Services.Interfaces;\r
-    using HandBrakeWPF.Services.Presets.Model;\r
-    using HandBrakeWPF.ViewModels.Interfaces;\r
-\r
-    /// <summary>\r
-    /// The Audio View Model\r
-    /// </summary>\r
-    public class AudioDefaultsViewModel : ViewModelBase, IAudioDefaultsViewModel\r
-    {\r
-        /// <summary>\r
-        /// The available languages.\r
-        /// </summary>\r
-        private BindingList<string> availableLanguages;\r
-\r
-        /// <summary>\r
-        /// The audio behaviours.\r
-        /// </summary>\r
-        private AudioBehaviours audioBehaviours;\r
-\r
-        #region Constructors and Destructors\r
-\r
-        /// <summary>\r
-        /// Initializes a new instance of the <see cref="AudioDefaultsViewModel"/> class. \r
-        /// </summary>\r
-        /// <param name="windowManager">\r
-        /// The window manager.\r
-        /// </param>\r
-        /// <param name="userSettingService">\r
-        /// The user Setting Service.\r
-        /// </param>\r
-        public AudioDefaultsViewModel(IWindowManager windowManager, IUserSettingService userSettingService)\r
-        {\r
-            this.AudioEncoders = EnumHelper<AudioEncoder>.GetEnumList();\r
-\r
-            this.AudioBehaviours = new AudioBehaviours();\r
-            this.SelectedAvailableToMove = new BindingList<string>();\r
-            this.SelectedLangaugesToMove = new BindingList<string>();\r
-            this.AvailableLanguages = new BindingList<string>();\r
-            this.SetupLanguages(null);\r
-        }\r
-\r
-        #endregion\r
-\r
-        #region Properties\r
-\r
-        /// <summary>\r
-        /// Gets or sets the audio behaviours.\r
-        /// </summary>\r
-        public AudioBehaviours AudioBehaviours\r
-        {\r
-            get\r
-            {\r
-                return this.audioBehaviours;\r
-            }\r
-            set\r
-            {\r
-                if (Equals(value, this.audioBehaviours))\r
-                {\r
-                    return;\r
-                }\r
-                this.audioBehaviours = value;\r
-                this.NotifyOfPropertyChange(() => this.AudioBehaviours);\r
-            }\r
-        }\r
-\r
-        /// <summary>\r
-        /// Gets the audio behaviour modes.\r
-        /// </summary>\r
-        public BindingList<AudioBehaviourModes> AudioBehaviourModeList\r
-        {\r
-            get\r
-            {\r
-                return new BindingList<AudioBehaviourModes>(EnumHelper<AudioBehaviourModes>.GetEnumList().ToList());\r
-            }\r
-        }\r
-\r
-        /// <summary>\r
-        /// Gets or sets AudioEncoders.\r
-        /// </summary>\r
-        public IEnumerable<AudioEncoder> AudioEncoders { get; set; }\r
-\r
-\r
-        /// <summary>\r
-        /// Gets or sets AvailableLanguages.\r
-        /// </summary>\r
-        public BindingList<string> AvailableLanguages\r
-        {\r
-            get\r
-            {\r
-                return this.availableLanguages;\r
-            }\r
-\r
-            set\r
-            {\r
-                this.availableLanguages = value;\r
-                this.NotifyOfPropertyChange("AvailableLanguages");\r
-            }\r
-        }\r
-\r
-        /// <summary>\r
-        /// Gets or sets SelectedLangauges.\r
-        /// </summary>\r
-        public BindingList<string> SelectedAvailableToMove { get; set; }\r
-\r
-        /// <summary>\r
-        /// Gets or sets SelectedLangauges.\r
-        /// </summary>\r
-        public BindingList<string> SelectedLangaugesToMove { get; set; }\r
-\r
-        #endregion\r
-\r
-        #region Public Methods\r
-\r
-        /// <summary>\r
-        /// Audio List Move Left\r
-        /// </summary>\r
-        public void LanguageMoveRight()\r
-        {\r
-            if (this.SelectedAvailableToMove.Count > 0)\r
-            {\r
-                List<string> copiedList = SelectedAvailableToMove.ToList();\r
-                foreach (string item in copiedList)\r
-                {\r
-                    this.AvailableLanguages.Remove(item);\r
-                    this.AudioBehaviours.SelectedLangauges.Add(item);\r
-                }\r
-\r
-                this.AvailableLanguages = new BindingList<string>(this.AvailableLanguages.OrderBy(o => o).ToList());\r
-            }\r
-        }\r
-\r
-        /// <summary>\r
-        /// Audio List Move Right\r
-        /// </summary>\r
-        public void LanguageMoveLeft()\r
-        {\r
-            if (this.SelectedLangaugesToMove.Count > 0)\r
-            {\r
-                List<string> copiedList = SelectedLangaugesToMove.ToList();\r
-                foreach (string item in copiedList)\r
-                {\r
-                    this.AudioBehaviours.SelectedLangauges.Remove(item);\r
-                    this.AvailableLanguages.Add(item);\r
-                }\r
-            }\r
-\r
-            this.AvailableLanguages = new BindingList<string>(this.AvailableLanguages.OrderBy(o => o).ToList());\r
-        }\r
-\r
-        /// <summary>\r
-        /// Audio List Clear all selected languages\r
-        /// </summary>\r
-        public void LanguageClearAll()\r
-        {\r
-            foreach (string item in this.AudioBehaviours.SelectedLangauges)\r
-            {\r
-                this.AvailableLanguages.Add(item);\r
-            }\r
-            this.AvailableLanguages = new BindingList<string>(this.AvailableLanguages.OrderBy(o => o).ToList());\r
-\r
-            this.AudioBehaviours.SelectedLangauges.Clear();\r
-        }\r
-\r
-        /// <summary>\r
-        /// The close.\r
-        /// </summary>\r
-        public void Close()\r
-        {\r
-            CloseOverlayPanelCommand command = new CloseOverlayPanelCommand();\r
-            command.Execute(null);\r
-        }\r
-\r
-        #endregion\r
-\r
-        #region Methods\r
-\r
-        /// <summary>\r
-        /// The setup languages.\r
-        /// </summary>\r
-        /// <param name="preset">\r
-        /// The preset.\r
-        /// </param>\r
-        private void SetupLanguages(Preset preset)\r
-        {\r
-            // Step 1, Set the behaviour mode\r
-            this.AudioBehaviours.SelectedBehaviour = AudioBehaviourModes.None;\r
-            this.AudioBehaviours.SelectedLangauges.Clear();\r
-\r
-            // Step 2, Get all the languages\r
-            IDictionary<string, string> langList = LanguageUtilities.MapLanguages();\r
-            langList = (from entry in langList orderby entry.Key ascending select entry).ToDictionary(pair => pair.Key, pair => pair.Value);\r
-\r
-            // Step 3, Setup Available Languages\r
-            this.AvailableLanguages.Clear();\r
-            foreach (string item in langList.Keys)\r
-            {\r
-                this.AvailableLanguages.Add(item);\r
-            }\r
-\r
-            // Step 4, Set the Selected Languages          \r
-            if (preset != null && preset.AudioTrackBehaviours != null)\r
-            {\r
-                this.AudioBehaviours.SelectedBehaviour = preset.AudioTrackBehaviours.SelectedBehaviour;\r
-\r
-                foreach (string selectedItem in preset.AudioTrackBehaviours.SelectedLangauges)\r
-                {\r
-                    this.AvailableLanguages.Remove(selectedItem);\r
-                    this.AudioBehaviours.SelectedLangauges.Add(selectedItem);\r
-                }\r
-            }\r
-        }\r
-\r
-        #endregion\r
-    }\r
-}
\ No newline at end of file
index 3424b4c0980f7543699d4c0b82a7ee795d544b06..75adf94be32d31c1b0709a9e2eed7708428529bd 100644 (file)
@@ -23,6 +23,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Utilities;\r
 \r
     using HandBrakeWPF.Model.Audio;\r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.Services.Presets.Model;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
@@ -199,7 +200,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return this.ShowAudioDefaultsPanel ? "Audio Defaults" : "Audio Tracks";\r
+                return this.ShowAudioDefaultsPanel ? Resources.AudioViewModel_AudioDefaults : Resources.AudioViewModel_AudioTracks;\r
             }\r
         }\r
 \r
@@ -210,7 +211,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return this.ShowAudioDefaultsPanel ? "Switch Back To Tracks" : "Configure Defaults";\r
+                return this.ShowAudioDefaultsPanel ? Resources.AudioViewModel_SwitchBackToTracks : Resources.AudioViewModel_ConfigureDefaults;\r
             }\r
         }\r
 \r
index 881d3db6eabb4755761dc3c96dd7fc373efb0212..cca7b2334e22bd1eb29c570e5e82b49708673020 100644 (file)
@@ -21,6 +21,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Services.Encode.Model.Models;\r
     using HandBrake.ApplicationServices.Services.Scan.Model;\r
 \r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.Services.Presets.Model;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
@@ -140,8 +141,8 @@ namespace HandBrakeWPF.ViewModels
             catch (Exception exc)\r
             {\r
                 throw new GeneralApplicationException(\r
-                    "Unable to save Chapter Makrers file! ",\r
-                    "Chapter marker names will NOT be saved in your encode.",\r
+                    Resources.ChaptersViewModel_UnableToExportChaptersWarning,\r
+                    Resources.ChaptersViewModel_UnableToExportChaptersMsg,\r
                     exc);\r
             }\r
         }\r
index 0f92c18b898ade496cf262b8362b32c19802fa7f..703f9a5af9edaeec063048ee764334adfd7bd73f 100644 (file)
@@ -12,6 +12,7 @@ namespace HandBrakeWPF.ViewModels
     using System;\r
     using System.Windows.Threading;\r
 \r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
     /// <summary>\r
@@ -73,7 +74,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.Format("The following action '{0}' will occur in {1} seconds.", action, CountdownTime - this.Ticks);\r
+                return string.Format(Resources.CountdownAlertViewModel_NoticeMessage, action, CountdownTime - this.Ticks);\r
             }\r
         }\r
 \r
index 78e4867eaca190c0af2f3ab169487b9f1319972d..be57cd8042464ab24a424c09532834a2719a4b3a 100644 (file)
@@ -12,6 +12,7 @@ namespace HandBrakeWPF.ViewModels
     using System;\r
     using System.Windows;\r
 \r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
     /// <summary>\r
@@ -45,9 +46,9 @@ namespace HandBrakeWPF.ViewModels
         /// </summary>\r
         public ErrorViewModel()\r
         {\r
-            this.Title = "Error";\r
-            this.ErrorMessage = "An Unknown Error has occured.";\r
-            this.Details = "There is no further information available about this error.";\r
+            this.Title = Resources.Error;\r
+            this.ErrorMessage = Resources.ErrorViewModel_UnknownError;\r
+            this.Details = Resources.ErrorViewModel_NoFurtherInformation;\r
         }\r
 \r
         #endregion\r
@@ -61,7 +62,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.IsNullOrEmpty(this.details) ? "There is no further information available about this error." : this.details;\r
+                return string.IsNullOrEmpty(this.details) ? Resources.ErrorViewModel_NoFurtherInformation : this.details;\r
             }\r
 \r
             set\r
@@ -95,7 +96,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.IsNullOrEmpty(this.solution) ? "If the problem presists, please try restarting HandBrake." : this.solution;\r
+                return string.IsNullOrEmpty(this.solution) ? Resources.ErrorViewModel_IfTheProblemPersists : this.solution;\r
             }\r
 \r
             set\r
index d369728a7e47d25d40798ee8ea584205f19aba4f..99ab912a62d5a3231e9dab932e0c3015f33007c8 100644 (file)
@@ -129,13 +129,13 @@ namespace HandBrakeWPF.ViewModels
         protected override void OnActivate()\r
         {\r
             this.scanService.ScanCompleted += ScanServiceScanCompleted;\r
-            this.encodeService.EncodeCompleted += EncodeServiceEncodeCompleted;
-            this.encodeService.EncodeStatusChanged += this.EncodeServiceEncodeStatusChanged;
-            this.scanService.ScanStatusChanged += this.ScanServiceScanStatusChanged;
-            this.scanService.ScanStarted += this.scanService_ScanStared;
-            this.encodeService.EncodeStarted += this.encodeService_EncodeStarted;
-            base.OnActivate();
-
+            this.encodeService.EncodeCompleted += EncodeServiceEncodeCompleted;\r
+            this.encodeService.EncodeStatusChanged += this.EncodeServiceEncodeStatusChanged;\r
+            this.scanService.ScanStatusChanged += this.ScanServiceScanStatusChanged;\r
+            this.scanService.ScanStarted += this.scanService_ScanStared;\r
+            this.encodeService.EncodeStarted += this.encodeService_EncodeStarted;\r
+            base.OnActivate();\r
+\r
             this.NotifyOfPropertyChange(() => this.ScanLog);\r
             this.NotifyOfPropertyChange(() => this.EncodeLog);\r
         }\r
@@ -182,13 +182,13 @@ namespace HandBrakeWPF.ViewModels
         protected override void OnDeactivate(bool close)\r
         {\r
             this.scanService.ScanCompleted -= ScanServiceScanCompleted;\r
-            this.encodeService.EncodeCompleted -= EncodeServiceEncodeCompleted;
-            this.encodeService.EncodeStatusChanged -= this.EncodeServiceEncodeStatusChanged;
-            this.scanService.ScanStatusChanged -= this.ScanServiceScanStatusChanged;
-            this.scanService.ScanStarted -= this.scanService_ScanStared;
-            this.encodeService.EncodeStarted -= this.encodeService_EncodeStarted;
-
-            base.OnDeactivate(close);
+            this.encodeService.EncodeCompleted -= EncodeServiceEncodeCompleted;\r
+            this.encodeService.EncodeStatusChanged -= this.EncodeServiceEncodeStatusChanged;\r
+            this.scanService.ScanStatusChanged -= this.ScanServiceScanStatusChanged;\r
+            this.scanService.ScanStarted -= this.scanService_ScanStared;\r
+            this.encodeService.EncodeStarted -= this.encodeService_EncodeStarted;\r
+\r
+            base.OnDeactivate(close);\r
         }\r
 \r
         /// <summary>\r
index be12f2010fc4369b1cdacc370decc90256bebf52..b233dc449a8ba4ec6e0e0f2b1dbb8443826615f5 100644 (file)
@@ -23,6 +23,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Utilities;\r
 \r
     using HandBrakeWPF.Model;\r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
@@ -1528,17 +1529,17 @@ namespace HandBrakeWPF.ViewModels
             this.updateInfo = info;\r
             if (info.NewVersionAvailable)\r
             {\r
-                this.UpdateMessage = "A New Update is Available!";\r
+                this.UpdateMessage = Resources.OptionsViewModel_NewUpdate;\r
                 this.UpdateAvailable = true;\r
             }\r
             else if (Environment.Is64BitOperatingSystem && !System.Environment.Is64BitProcess)\r
             {\r
-                this.UpdateMessage = "Your system supports the 64bit version of HandBrake! This offers performance and stability improvements over this 32bit version.";\r
+                this.UpdateMessage = Resources.OptionsViewModel_64bitAvailable;\r
                 this.UpdateAvailable = true;\r
             }\r
             else\r
             {\r
-                this.UpdateMessage = "There are no new updates at this time.";\r
+                this.UpdateMessage = Resources.OptionsViewModel_NoNewUpdates;\r
                 this.UpdateAvailable = false;\r
             }\r
         }\r
@@ -1554,7 +1555,7 @@ namespace HandBrakeWPF.ViewModels
             if (info.TotalBytes == 0 || info.BytesRead == 0)\r
             {\r
                 this.UpdateAvailable = false;\r
-                this.UpdateMessage = info.WasSuccessful ? "Update Downloaded" : "Update Service Unavailable. You can try downloading the update from https://handbrake.fr";\r
+                this.UpdateMessage = info.WasSuccessful ? Resources.OptionsViewModel_UpdateDownloaded : Resources.OptionsViewModel_UpdateServiceUnavailable;\r
                 return;\r
             }\r
 \r
@@ -1575,7 +1576,7 @@ namespace HandBrakeWPF.ViewModels
         private void DownloadComplete(DownloadStatus info)\r
         {\r
             this.UpdateAvailable = false;\r
-            this.UpdateMessage = info.WasSuccessful ? "Update Downloaded" : "Update Failed. You can try downloading the update from https://handbrake.fr";\r
+            this.UpdateMessage = info.WasSuccessful ? Resources.OptionsViewModel_UpdateDownloaded : Resources.OptionsViewModel_UpdateFailed;\r
 \r
             Process.Start(Path.Combine(Path.GetTempPath(), "handbrake-setup.exe"));\r
             Execute.OnUIThread(() => Application.Current.Shutdown());\r
index 1dd0ad93c2568af0e459e12b017416ecad62c144..90fd2b3ff25ab57a09638296e8d3303e04661bed 100644 (file)
@@ -19,6 +19,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Interop.Model.Encoding;\r
 \r
     using HandBrakeWPF.Helpers;\r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Presets.Model;\r
     using HandBrakeWPF.Utilities;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
@@ -932,7 +933,7 @@ namespace HandBrakeWPF.ViewModels
             double dispWidth = Math.Round((result.OutputWidth * result.OutputParWidth / result.OutputParHeight), 0);\r
             this.DisplaySize = this.sourceResolution == null || this.sourceResolution.IsEmpty\r
                            ? string.Empty\r
-                           : string.Format("Storage: {0}x{1}, Display: {2}x{3}", result.OutputWidth, result.OutputHeight, dispWidth, result.OutputHeight);\r
+                           : string.Format(Resources.PictureSettingsViewModel_StorageDisplayLabel, result.OutputWidth, result.OutputHeight, dispWidth, result.OutputHeight);\r
 \r
             // Step 4, Force an update on all the UI elements.\r
             this.NotifyOfPropertyChange(() => this.Width);\r
index c175056a4c95a6efbd5870fd5bf75096506a56f2..0c99ceeae3657167ac71b09809dc1befdea74981 100644 (file)
@@ -17,6 +17,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Services.Scan.Model;\r
 \r
     using HandBrakeWPF.Model;\r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
@@ -54,7 +55,7 @@ namespace HandBrakeWPF.ViewModels
         public QueueSelectionViewModel(IErrorService errorService)\r
         {\r
             this.errorService = errorService;\r
-            this.Title = "Add to Queue";\r
+            this.Title = Resources.QueueSelectionViewModel_AddToQueue;\r
             this.TitleList = new BindingList<SelectionTitle>();\r
             this.OrderedByTitle = true;\r
         }\r
index a5d33aa42bb6a4bbd6f7184f0eaf9dc7dea0a07c..305b1c4664dac614d0c2b8edd8857c0c08c52f2b 100644 (file)
@@ -93,9 +93,9 @@ namespace HandBrakeWPF.ViewModels
             this.userSettingService = userSettingService;\r
             this.queueProcessor = queueProcessor;\r
             this.errorService = errorService;\r
-            this.Title = "Queue";\r
-            this.JobsPending = "No encodes pending";\r
-            this.JobStatus = "There are no jobs currently encoding";\r
+            this.Title = Resources.QueueViewModel_Queue;\r
+            this.JobsPending = Resources.QueueViewModel_NoEncodesPending;\r
+            this.JobStatus = Resources.QueueViewModel_NoJobsPending;\r
             this.SelectedItems = new BindingList<QueueTask>();\r
         }\r
 \r
@@ -208,7 +208,7 @@ namespace HandBrakeWPF.ViewModels
         public void Clear()\r
         {\r
             MessageBoxResult result = this.errorService.ShowMessageBox(\r
-                "Are you sure you wish to clear the queue?", "Confirm", MessageBoxButton.YesNo, MessageBoxImage.Warning);\r
+                Resources.QueueViewModel_ClearQueueConfrimation, Resources.Confirm, MessageBoxButton.YesNo, MessageBoxImage.Warning);\r
             if (result == MessageBoxResult.Yes)\r
             {\r
                 this.queueProcessor.Clear();\r
@@ -238,7 +238,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             // Setup the window to the correct state.\r
             this.IsEncoding = this.queueProcessor.EncodeService.IsEncoding;\r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
 \r
             base.OnLoad();\r
         }\r
@@ -250,11 +250,11 @@ namespace HandBrakeWPF.ViewModels
         {\r
             this.queueProcessor.Pause();\r
 \r
-            this.JobStatus = "Queue Paused";\r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
+            this.JobStatus = Resources.QueueViewModel_QueuePending;\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
             this.IsEncoding = false;\r
 \r
-            MessageBox.Show("The Queue has been paused. The currently running job will run to completion and no further jobs will start.", "Queue"\r
+            MessageBox.Show(Resources.QueueViewModel_QueuePauseNotice, Resources.QueueViewModel_Queue\r
                 MessageBoxButton.OK, MessageBoxImage.Information);\r
         }\r
 \r
@@ -265,7 +265,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             MessageBoxResult result =\r
                   this.errorService.ShowMessageBox(\r
-                      "Are you sure you want to delete the selected jobs?",\r
+                      Resources.QueueViewModel_DelSelectedJobConfirmation,\r
                       Resources.Question,\r
                       MessageBoxButton.YesNo,\r
                       MessageBoxImage.Question);\r
@@ -300,7 +300,7 @@ namespace HandBrakeWPF.ViewModels
             {\r
                 MessageBoxResult result =\r
                     this.errorService.ShowMessageBox(\r
-                        "This encode is currently in progress. If you delete it, the encode will be stopped. Are you sure you wish to proceed?"\r
+                        Resources.QueueViewModel_JobCurrentlyRunningWarning\r
                         Resources.Warning, \r
                         MessageBoxButton.YesNo, \r
                         MessageBoxImage.Question);\r
@@ -327,7 +327,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             task.Status = QueueItemStatus.Waiting;\r
             this.queueProcessor.BackupQueue(null);\r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
         }\r
 \r
         /// <summary>\r
@@ -338,12 +338,12 @@ namespace HandBrakeWPF.ViewModels
             if (this.queueProcessor.Count == 0)\r
             {\r
                 this.errorService.ShowMessageBox(\r
-                    "There are no pending jobs.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+                    Resources.QueueViewModel_NoPendingJobs, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
-            this.JobStatus = "Queue Started";\r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
+            this.JobStatus = Resources.QueueViewModel_QueueStarted;\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
             this.IsEncoding = true;\r
 \r
             this.queueProcessor.Start(UserSettingService.GetUserSetting<bool>(UserSettingConstants.ClearCompletedFromQueue));\r
@@ -388,7 +388,7 @@ namespace HandBrakeWPF.ViewModels
         public void EditJob(QueueTask task)\r
         {\r
             MessageBoxResult result = this.errorService.ShowMessageBox(\r
-                "Are you sure you wish to edit this job? It will be removed from the queue and sent to the main window."\r
+                Resources.QueueViewModel_EditConfrimation\r
                 "Modify Job?", \r
                 MessageBoxButton.YesNo, \r
                 MessageBoxImage.Question);\r
@@ -425,8 +425,8 @@ namespace HandBrakeWPF.ViewModels
             this.queueProcessor.EncodeService.EncodeCompleted += EncodeService_EncodeCompleted;\r
             this.queueProcessor.JobProcessingStarted += this.QueueProcessorJobProcessingStarted;\r
 \r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
-            this.JobStatus = "Queue Ready";\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
+            this.JobStatus = Resources.QueueViewModel_QueueReady;\r
 \r
             base.OnActivate();\r
         }\r
@@ -463,7 +463,7 @@ namespace HandBrakeWPF.ViewModels
             {\r
                 this.JobStatus =\r
                     string.Format(\r
-                        "Encoding: Pass {0} of {1},  {2:00.00}%, FPS: {3:000.0},  Avg FPS: {4:000.0},  Time Remaining: {5},  Elapsed: {6:hh\\:mm\\:ss}"\r
+                        Resources.QueueViewModel_QueueStatusDisplay\r
                         e.Task, \r
                         e.TaskCount, \r
                         e.PercentComplete, \r
@@ -485,11 +485,11 @@ namespace HandBrakeWPF.ViewModels
         /// </param>\r
         private void QueueManager_QueueChanged(object sender, EventArgs e)\r
         {\r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
 \r
             if (!queueProcessor.IsProcessing)\r
             {\r
-                this.JobStatus = "Queue Not Running";\r
+                this.JobStatus = Resources.QueueViewModel_QueueNotRunning;\r
             }\r
         }\r
 \r
@@ -504,8 +504,8 @@ namespace HandBrakeWPF.ViewModels
         /// </param>\r
         private void queueProcessor_QueueCompleted(object sender, EventArgs e)\r
         {\r
-            this.JobStatus = "Queue Completed";\r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
+            this.JobStatus = Resources.QueueViewModel_QueueCompleted;\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
             this.IsEncoding = false;\r
         }\r
 \r
@@ -522,7 +522,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             if (!this.queueProcessor.IsProcessing)\r
             {\r
-                this.JobStatus = "Last Queued Job Finished";\r
+                this.JobStatus = Resources.QueueViewModel_LastJobFinished;\r
             }\r
         }\r
 \r
@@ -537,8 +537,8 @@ namespace HandBrakeWPF.ViewModels
         /// </param>\r
         private void QueueProcessorJobProcessingStarted(object sender, QueueProgressEventArgs e)\r
         {\r
-            this.JobStatus = "Queue Started";\r
-            this.JobsPending = string.Format("{0} jobs pending", this.queueProcessor.Count);\r
+            this.JobStatus = Resources.QueueViewModel_QueueStarted;\r
+            this.JobsPending = string.Format(Resources.QueueViewModel_JobsPending, this.queueProcessor.Count);\r
             this.IsEncoding = true;\r
         }\r
 \r
index 11a9d8715739a049329bfbdedebeea6d55f86379..f21345f970c0e418363dae89a53be3d93646b333 100644 (file)
@@ -236,7 +236,7 @@ namespace HandBrakeWPF.ViewModels
             {\r
                 MessageBoxResult result =\r
                     errorService.ShowMessageBox(\r
-                        "An Encode is currently running. Exiting HandBrake will stop this encode.\nAre you sure you wish to exit HandBrake?",\r
+                        Resources.ShellViewModel_CanClose,\r
                         Resources.Warning,\r
                         MessageBoxButton.YesNo,\r
                         MessageBoxImage.Warning);\r
index 768c127d67f904747d3c2c0f95c59a531caedf7f..6aa7a305030f762b792ad07eb7e9e989f25f4bb4 100644 (file)
@@ -411,7 +411,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             this.Task = task;\r
             this.UpdatePreviewFrame();\r
-            this.DisplayName = "Picture Preview";\r
+            this.DisplayName = Resources.StaticPreviewViewModel_Title;\r
             this.Title = Resources.Preview;\r
             this.ScannedSource = scannedSource;\r
         }\r
@@ -517,13 +517,13 @@ namespace HandBrakeWPF.ViewModels
             catch (Exception)\r
             {\r
                 this.IsEncoding = false;\r
-                this.errorService.ShowMessageBox("Unable to delete previous preview file. You may need to restart the application."\r
+                this.errorService.ShowMessageBox(Resources.StaticPreview_UnableToDeletePreview\r
                                Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
             }\r
 \r
             if (this.Task == null || string.IsNullOrEmpty(Task.Source))\r
             {\r
-                this.errorService.ShowMessageBox("You must first scan a source and setup your encode before creating a preview."\r
+                this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_ScanFirst\r
                                Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
@@ -604,7 +604,7 @@ namespace HandBrakeWPF.ViewModels
                             }\r
                             else\r
                             {\r
-                                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\")"\r
+                                this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_UnableToFindVLC\r
                                                                  Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);\r
                             }\r
                         }\r
@@ -618,7 +618,7 @@ namespace HandBrakeWPF.ViewModels
                 }\r
                 else\r
                 {\r
-                    this.errorService.ShowMessageBox("Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details."\r
+                    this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_UnableToPlayFile\r
                                  Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);\r
                 }\r
             }\r
@@ -635,7 +635,7 @@ namespace HandBrakeWPF.ViewModels
             // Make sure we are not already encoding and if we are then display an error.\r
             if (encodeService.IsEncoding)\r
             {\r
-                this.errorService.ShowMessageBox("Handbrake is already encoding a video! Only one file can be encoded at any one time."\r
+                this.errorService.ShowMessageBox(Resources.StaticPreviewViewModel_AlreadyEncoding\r
                                Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
index 14c6a9899c67ae390b4b86532b82bec2fc56f336..751619c97e92f5ad26429e836bb8d9a46bc28514 100644 (file)
@@ -20,6 +20,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Utilities;\r
 \r
     using HandBrakeWPF.Model.Subtitles;\r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Presets.Model;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
@@ -146,7 +147,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return this.ShowDefaultsPanel ? "Subtitle Defaults" : "Subtitle Tracks";\r
+                return this.ShowDefaultsPanel ? Resources.SubtitlesViewModel_SubDefaults : Resources.SubtitlesViewModel_SubTracks;\r
             }\r
         }\r
 \r
@@ -157,7 +158,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return this.ShowDefaultsPanel ? "Switch Back To Tracks" : "Configure Defaults";\r
+                return this.ShowDefaultsPanel ? Resources.SubtitlesViewModel_SwitchToTracks : Resources.SubtitlesViewModel_ConfigureDefaults;\r
             }\r
         }\r
 \r