]> granicus.if.org Git - handbrake/commitdiff
WinGui: Move a bunch of strings out to the resources file.
authorsr55 <sr55.hb@outlook.com>
Sun, 29 Dec 2013 21:06:41 +0000 (21:06 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 29 Dec 2013 21:06:41 +0000 (21:06 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5946 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/Properties/Resources.Designer.cs
win/CS/HandBrakeWPF/Properties/Resources.resx
win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs
win/CS/HandBrakeWPF/ViewModels/InstantViewModel.cs
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs
win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
win/CS/HandBrakeWPF/ViewModels/ShellViewModel.cs

index b3f489a54d0d26f55369db1bb808804dcd5f7a72..51cf2af22d4fc72c46e7b5c530b4dad2e93cbce1 100644 (file)
@@ -337,6 +337,15 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Are you sure?.\r
+        /// </summary>\r
+        public static string AreYouSure {\r
+            get {\r
+                return ResourceManager.GetString("AreYouSure", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Error.\r
         /// </summary>\r
@@ -346,6 +355,24 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to HandBrake.\r
+        /// </summary>\r
+        public static string HandBrake_Title {\r
+            get {\r
+                return ResourceManager.GetString("HandBrake_Title", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to HandBrake is already encoding..\r
+        /// </summary>\r
+        public static string Main_AlreadyEncoding {\r
+            get {\r
+                return ResourceManager.GetString("Main_AlreadyEncoding", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Warning: It is not currently possible to use this feature if you require specific subtitle or audio tracks that the automatic selection feature (see options) doesn&apos;t support! Tracks are reset with every new source / title selected..\r
         /// </summary>\r
@@ -355,6 +382,232 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Please choose a destination for the file..\r
+        /// </summary>\r
+        public static string Main_ChooseDestination {\r
+            get {\r
+                return ResourceManager.GetString("Main_ChooseDestination", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to The current file already exists, do you wish to overwrite it?.\r
+        /// </summary>\r
+        public static string Main_DestinationOverwrite {\r
+            get {\r
+                return ResourceManager.GetString("Main_DestinationOverwrite", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to There are jobs on the queue with the same destination path. Please choose a different path for this job..\r
+        /// </summary>\r
+        public static string Main_DuplicateDestinationOnQueue {\r
+            get {\r
+                return ResourceManager.GetString("Main_DuplicateDestinationOnQueue", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to {0:00.00}%,  FPS: {1:000.0},  Avg FPS: {2:000.0},  Time Remaining: {3},  Elapsed: {4:hh\\:mm\\:ss}.\r
+        /// </summary>\r
+        public static string Main_EncodeStatusDisplay {\r
+            get {\r
+                return ResourceManager.GetString("Main_EncodeStatusDisplay", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to ,  Pending Jobs {5}.\r
+        /// </summary>\r
+        public static string Main_JobsPending_addon {\r
+            get {\r
+                return ResourceManager.GetString("Main_JobsPending_addon", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to New Default Preset Set: {0}.\r
+        /// </summary>\r
+        public static string Main_NewDefaultPreset {\r
+            get {\r
+                return ResourceManager.GetString("Main_NewDefaultPreset", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to A New Update is Available. Goto Tools Menu &gt; Options to Install.\r
+        /// </summary>\r
+        public static string Main_NewUpdate {\r
+            get {\r
+                return ResourceManager.GetString("Main_NewUpdate", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to No Preset selected..\r
+        /// </summary>\r
+        public static string Main_NoPresetSelected {\r
+            get {\r
+                return ResourceManager.GetString("Main_NoPresetSelected", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to You can not modify built in presets. Please select one of your own presets..\r
+        /// </summary>\r
+        public static string Main_NoUpdateOfBuiltInPresets {\r
+            get {\r
+                return ResourceManager.GetString("Main_NoUpdateOfBuiltInPresets", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Please select a folder..\r
+        /// </summary>\r
+        public static string Main_PleaseSelectFolder {\r
+            get {\r
+                return ResourceManager.GetString("Main_PleaseSelectFolder", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Preparing to encode ....\r
+        /// </summary>\r
+        public static string Main_PreparingToEncode {\r
+            get {\r
+                return ResourceManager.GetString("Main_PreparingToEncode", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to You can not import a preset with the same name as a built-in preset..\r
+        /// </summary>\r
+        public static string Main_PresetErrorBuiltInName {\r
+            get {\r
+                return ResourceManager.GetString("Main_PresetErrorBuiltInName", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to This preset appears to already exist. Would you like to overwrite it?.\r
+        /// </summary>\r
+        public static string Main_PresetOverwriteWarning {\r
+            get {\r
+                return ResourceManager.GetString("Main_PresetOverwriteWarning", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Presets.\r
+        /// </summary>\r
+        public static string Main_Presets {\r
+            get {\r
+                return ResourceManager.GetString("Main_Presets", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Are you sure you wish to update the selected preset?.\r
+        /// </summary>\r
+        public static string Main_PresetUpdateConfrimation {\r
+            get {\r
+                return ResourceManager.GetString("Main_PresetUpdateConfrimation", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to The Preset has now been updated with your current settings..\r
+        /// </summary>\r
+        public static string Main_PresetUpdated {\r
+            get {\r
+                return ResourceManager.GetString("Main_PresetUpdated", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to HandBrake has determined your built-in presets are out of date... These presets will now be updated.\r
+        ///Your custom presets have not been updated so you may have to re-create these by deleting and re-adding them..\r
+        /// </summary>\r
+        public static string Main_PresetUpdateNotification {\r
+            get {\r
+                return ResourceManager.GetString("Main_PresetUpdateNotification", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Queue Finished.\r
+        /// </summary>\r
+        public static string Main_QueueFinished {\r
+            get {\r
+                return ResourceManager.GetString("Main_QueueFinished", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Scan Cancelled..\r
+        /// </summary>\r
+        public static string Main_ScanCancelled {\r
+            get {\r
+                return ResourceManager.GetString("Main_ScanCancelled", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Scan Completed.\r
+        /// </summary>\r
+        public static string Main_ScanCompleted {\r
+            get {\r
+                return ResourceManager.GetString("Main_ScanCompleted", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Scan failed: .\r
+        /// </summary>\r
+        public static string Main_ScanFailed_NoReason {\r
+            get {\r
+                return ResourceManager.GetString("Main_ScanFailed_NoReason", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Scan Failed... See Activity Log for details..\r
+        /// </summary>\r
+        public static string Main_ScanFailled_CheckLog {\r
+            get {\r
+                return ResourceManager.GetString("Main_ScanFailled_CheckLog", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Scanning source, please wait....\r
+        /// </summary>\r
+        public static string Main_ScanningPleaseWait {\r
+            get {\r
+                return ResourceManager.GetString("Main_ScanningPleaseWait", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Scanning Title {0} of {1} ({2}%).\r
+        /// </summary>\r
+        public static string Main_ScanningTitleXOfY {\r
+            get {\r
+                return ResourceManager.GetString("Main_ScanningTitleXOfY", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to You must first scan a source and setup your job before starting an encode..\r
+        /// </summary>\r
+        public static string Main_ScanSource {\r
+            get {\r
+                return ResourceManager.GetString("Main_ScanSource", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to You must first scan a source and setup your job before adding to the queue..\r
         /// </summary>\r
@@ -364,6 +617,33 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Please select a preset..\r
+        /// </summary>\r
+        public static string Main_SelectPreset {\r
+            get {\r
+                return ResourceManager.GetString("Main_SelectPreset", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Please select a preset to update..\r
+        /// </summary>\r
+        public static string Main_SelectPresetForUpdate {\r
+            get {\r
+                return ResourceManager.GetString("Main_SelectPresetForUpdate", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Select &apos;Source&apos; to continue.\r
+        /// </summary>\r
+        public static string Main_SelectSource {\r
+            get {\r
+                return ResourceManager.GetString("Main_SelectSource", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to You must turn on automatic file naming AND set a default path in preferences before you can add to the queue..\r
         /// </summary>\r
@@ -373,6 +653,33 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to {0} Encodes Pending.\r
+        /// </summary>\r
+        public static string Main_XEncodesPending {\r
+            get {\r
+                return ResourceManager.GetString("Main_XEncodesPending", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Notice.\r
+        /// </summary>\r
+        public static string Notice {\r
+            get {\r
+                return ResourceManager.GetString("Notice", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Overwrite?.\r
+        /// </summary>\r
+        public static string Overwrite {\r
+            get {\r
+                return ResourceManager.GetString("Overwrite", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to The Built-in presets have been reset..\r
         /// </summary>\r
@@ -391,6 +698,15 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Question.\r
+        /// </summary>\r
+        public static string Question {\r
+            get {\r
+                return ResourceManager.GetString("Question", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to WARNING: You do not have automatic file naming turned on. Please enable this in options..\r
         /// </summary>\r
@@ -409,6 +725,24 @@ namespace HandBrakeWPF.Properties {
             }\r
         }\r
         \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Read.\r
+        /// </summary>\r
+        public static string State_Ready {\r
+            get {\r
+                return ResourceManager.GetString("State_Ready", resourceCulture);\r
+            }\r
+        }\r
+        \r
+        /// <summary>\r
+        ///   Looks up a localized string similar to Updated.\r
+        /// </summary>\r
+        public static string Updated {\r
+            get {\r
+                return ResourceManager.GetString("Updated", resourceCulture);\r
+            }\r
+        }\r
+        \r
         /// <summary>\r
         ///   Looks up a localized string similar to Accelerates H.264, MPEG-4, VC1 and WMV3 only.  \r
         ///This can provide a small to modest improvement on slow hardware..\r
index 530bedfd68c0496b84c0c32f94ef37e755f6ae76..4ecd0daa9a20db00e8a28458673c6e22524463a3 100644 (file)
@@ -377,4 +377,116 @@ In order to use the QuickSync encoder, you must:
   <data name="Warning" xml:space="preserve">\r
     <value>Warning</value>\r
   </data>\r
+  <data name="AreYouSure" xml:space="preserve">\r
+    <value>Are you sure?</value>\r
+  </data>\r
+  <data name="HandBrake_Title" xml:space="preserve">\r
+    <value>HandBrake</value>\r
+  </data>\r
+  <data name="Main_AlreadyEncoding" xml:space="preserve">\r
+    <value>HandBrake is already encoding.</value>\r
+  </data>\r
+  <data name="Main_ChooseDestination" xml:space="preserve">\r
+    <value>Please choose a destination for the file.</value>\r
+  </data>\r
+  <data name="Main_DestinationOverwrite" xml:space="preserve">\r
+    <value>The current file already exists, do you wish to overwrite it?</value>\r
+  </data>\r
+  <data name="Main_DuplicateDestinationOnQueue" xml:space="preserve">\r
+    <value>There are jobs on the queue with the same destination path. Please choose a different path for this job.</value>\r
+  </data>\r
+  <data name="Main_EncodeStatusDisplay" 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="Main_JobsPending_addon" xml:space="preserve">\r
+    <value>,  Pending Jobs {5}</value>\r
+  </data>\r
+  <data name="Main_NewDefaultPreset" xml:space="preserve">\r
+    <value>New Default Preset Set: {0}</value>\r
+  </data>\r
+  <data name="Main_NewUpdate" xml:space="preserve">\r
+    <value>A New Update is Available. Goto Tools Menu &gt; Options to Install</value>\r
+  </data>\r
+  <data name="Main_NoPresetSelected" xml:space="preserve">\r
+    <value>No Preset selected.</value>\r
+  </data>\r
+  <data name="Main_NoUpdateOfBuiltInPresets" xml:space="preserve">\r
+    <value>You can not modify built in presets. Please select one of your own presets.</value>\r
+  </data>\r
+  <data name="Main_PleaseSelectFolder" xml:space="preserve">\r
+    <value>Please select a folder.</value>\r
+  </data>\r
+  <data name="Main_PreparingToEncode" xml:space="preserve">\r
+    <value>Preparing to encode ...</value>\r
+  </data>\r
+  <data name="Main_PresetErrorBuiltInName" xml:space="preserve">\r
+    <value>You can not import a preset with the same name as a built-in preset.</value>\r
+  </data>\r
+  <data name="Main_PresetOverwriteWarning" xml:space="preserve">\r
+    <value>This preset appears to already exist. Would you like to overwrite it?</value>\r
+  </data>\r
+  <data name="Main_Presets" xml:space="preserve">\r
+    <value>Presets</value>\r
+  </data>\r
+  <data name="Main_PresetUpdateConfrimation" xml:space="preserve">\r
+    <value>Are you sure you wish to update the selected preset?</value>\r
+  </data>\r
+  <data name="Main_PresetUpdated" xml:space="preserve">\r
+    <value>The Preset has now been updated with your current settings.</value>\r
+  </data>\r
+  <data name="Main_PresetUpdateNotification" xml:space="preserve">\r
+    <value>HandBrake has determined your built-in presets are out of date... These presets will now be updated.\r
+Your custom presets have not been updated so you may have to re-create these by deleting and re-adding them.</value>\r
+  </data>\r
+  <data name="Main_QueueFinished" xml:space="preserve">\r
+    <value>Queue Finished</value>\r
+  </data>\r
+  <data name="Main_ScanCancelled" xml:space="preserve">\r
+    <value>Scan Cancelled.</value>\r
+  </data>\r
+  <data name="Main_ScanCompleted" xml:space="preserve">\r
+    <value>Scan Completed</value>\r
+  </data>\r
+  <data name="Main_ScanFailed_NoReason" xml:space="preserve">\r
+    <value>Scan failed: </value>\r
+  </data>\r
+  <data name="Main_ScanFailled_CheckLog" xml:space="preserve">\r
+    <value>Scan Failed... See Activity Log for details.</value>\r
+  </data>\r
+  <data name="Main_ScanningPleaseWait" xml:space="preserve">\r
+    <value>Scanning source, please wait...</value>\r
+  </data>\r
+  <data name="Main_ScanningTitleXOfY" xml:space="preserve">\r
+    <value>Scanning Title {0} of {1} ({2}%)</value>\r
+  </data>\r
+  <data name="Main_ScanSource" xml:space="preserve">\r
+    <value>You must first scan a source and setup your job before starting an encode.</value>\r
+  </data>\r
+  <data name="Main_SelectPreset" xml:space="preserve">\r
+    <value>Please select a preset.</value>\r
+  </data>\r
+  <data name="Main_SelectPresetForUpdate" xml:space="preserve">\r
+    <value>Please select a preset to update.</value>\r
+  </data>\r
+  <data name="Main_SelectSource" xml:space="preserve">\r
+    <value>Select 'Source' to continue</value>\r
+  </data>\r
+  <data name="Main_XEncodesPending" xml:space="preserve">\r
+    <value>{0} Encodes Pending</value>\r
+  </data>\r
+  <data name="Notice" xml:space="preserve">\r
+    <value>Notice</value>\r
+  </data>\r
+  <data name="Overwrite" xml:space="preserve">\r
+    <value>Overwrite?</value>\r
+  </data>\r
+  <data name="Question" xml:space="preserve">\r
+    <value>Question</value>\r
+  </data>\r
+  <data name="State_Ready" xml:space="preserve">\r
+    <value>Read</value>\r
+  </data>\r
+  <data name="Updated" xml:space="preserve">\r
+    <value>Updated</value>\r
+  </data>\r
 </root>
\ No newline at end of file
index 858f9cbda28417df164dd5ebf4f7db5e3759fd64..4235a67dca6c8417c1917568263643298a7380d8 100644 (file)
@@ -19,6 +19,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Utilities;\r
     using HandBrake.Interop.Model.Encoding;\r
 \r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
@@ -154,13 +155,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.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox("A Preset must have a Name. Please fill out the Preset Name field.", 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?", "Error", MessageBoxButton.YesNo, MessageBoxImage.Error);\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
                 if (result == MessageBoxResult.No)\r
                 {\r
                     return;\r
@@ -169,7 +170,7 @@ 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.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox("You must first scan a source to use the 'Source Maximum' Option.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
index d27ef6694a59dc3ca90a1959e9b6ebf9e81400c3..dcaf1a7f4a989cfaaf9af49d2bb2dacf8492b7c4 100644 (file)
@@ -717,7 +717,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             // if (this.queueProcessor.IsProcessing)\r
             // {\r
-            // this.errorService.ShowMessageBox("HandBrake is already encoding.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+            // this.errorService.ShowMessageBox("HandBrake is already encoding.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
             // return;\r
             // }\r
 \r
@@ -731,13 +731,13 @@ namespace HandBrakeWPF.ViewModels
             //// Otherwise, perform Santiy Checking then add to the queue and start if everything is ok.\r
             // if (this.SelectedTitle == null)\r
             // {\r
-            // this.errorService.ShowMessageBox("You must first scan a source.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+            // this.errorService.ShowMessageBox("You must first scan a source.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
             // return;\r
             // }\r
 \r
             // if (string.IsNullOrEmpty(this.Destination))\r
             // {\r
-            // this.errorService.ShowMessageBox("The Destination field was empty.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+            // this.errorService.ShowMessageBox("The Destination field was empty.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
             // return;\r
             // }\r
 \r
index d15fe931af3af46a031f5e7cb227fec1b5704a1a..5b5b95324d08a224d640dd185718d4d751a519bb 100644 (file)
@@ -227,7 +227,7 @@ namespace HandBrakeWPF.ViewModels
             this.queueProcessor = IoC.Get<IQueueProcessor>();\r
 \r
             // Setup Properties\r
-            this.WindowTitle = "HandBrake";\r
+            this.WindowTitle = Resources.HandBrake_Title;\r
             this.CurrentTask = new EncodeTask();\r
             this.CurrentTask.PropertyChanged += this.CurrentTask_PropertyChanged;\r
             this.ScannedSource = new Source();\r
@@ -313,7 +313,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.IsNullOrEmpty(this.programStatusLabel) ? "Ready" : this.programStatusLabel;\r
+                return string.IsNullOrEmpty(this.programStatusLabel) ? Resources.State_Ready : this.programStatusLabel;\r
             }\r
 \r
             set\r
@@ -334,7 +334,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.IsNullOrEmpty(this.statusLabel) ? "Ready" : this.statusLabel;\r
+                return string.IsNullOrEmpty(this.statusLabel) ? Resources.State_Ready : this.statusLabel;\r
             }\r
 \r
             set\r
@@ -408,7 +408,7 @@ namespace HandBrakeWPF.ViewModels
             set\r
             {\r
                 this.scannedSource = value;\r
-                this.NotifyOfPropertyChange("ScannedSource");\r
+                this.NotifyOfPropertyChange(() => ScannedSource);\r
             }\r
         }\r
 \r
@@ -425,7 +425,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return string.IsNullOrEmpty(this.sourceLabel) ? "Select 'Source' to continue" : this.sourceLabel;\r
+                return string.IsNullOrEmpty(this.sourceLabel) ? Resources.Main_SelectSource : this.sourceLabel;\r
             }\r
 \r
             set\r
@@ -433,7 +433,7 @@ namespace HandBrakeWPF.ViewModels
                 if (!Equals(this.sourceLabel, value))\r
                 {\r
                     this.sourceLabel = value;\r
-                    this.NotifyOfPropertyChange("SourceLabel");\r
+                    this.NotifyOfPropertyChange(() => SourceLabel);\r
                 }\r
             }\r
         }\r
@@ -550,7 +550,7 @@ namespace HandBrakeWPF.ViewModels
             set\r
             {\r
                 duration = value;\r
-                this.NotifyOfPropertyChange("Duration");\r
+                this.NotifyOfPropertyChange(() => Duration);\r
             }\r
         }\r
 \r
@@ -858,7 +858,7 @@ namespace HandBrakeWPF.ViewModels
                 this.NotifyOfPropertyChange(() => SelectedOutputFormat);\r
                 this.NotifyOfPropertyChange(() => this.CurrentTask.OutputFormat);\r
                 this.NotifyOfPropertyChange(() => IsMkv);\r
-                this.SetExtension(string.Format(".{0}", this.selectedOutputFormat.ToString().Replace("av_", string.Empty).ToLower())); // TODO, tidy up\r
+                this.SetExtension(string.Format(".{0}", this.selectedOutputFormat.ToString().ToLower()));\r
 \r
                 this.VideoViewModel.RefreshTask();\r
                 this.AudioViewModel.RefreshTask();\r
@@ -989,9 +989,8 @@ namespace HandBrakeWPF.ViewModels
             this.presetService.Load();\r
             if (this.presetService.CheckIfPresetsAreOutOfDate())\r
                 if (!this.userSettingService.GetUserSetting<bool>(UserSettingConstants.PresetNotification))\r
-                    this.errorService.ShowMessageBox("HandBrake has determined your built-in presets are out of date... These presets will now be updated." + Environment.NewLine +\r
-             "Your custom presets have not been updated so you may have to re-create these by deleting and re-adding them.",\r
-                                    "Preset Update", MessageBoxButton.OK, MessageBoxImage.Information);\r
+                    this.errorService.ShowMessageBox(Resources.Main_PresetUpdateNotification,\r
+                                    Resources.Notice, MessageBoxButton.OK, MessageBoxImage.Information);\r
 \r
             // Queue Recovery\r
             if (!AppArguments.IsInstantHandBrake)\r
@@ -1132,7 +1131,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             if (this.ScannedSource == null || string.IsNullOrEmpty(this.ScannedSource.ScanPath) || this.ScannedSource.Titles.Count == 0)\r
             {\r
-                this.errorService.ShowMessageBox("You must first scan a source and setup your job before adding to the queue.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
@@ -1143,12 +1142,12 @@ namespace HandBrakeWPF.ViewModels
             }\r
             else\r
             {\r
-                this.errorService.ShowMessageBox("There are jobs on the queue with the same destination path. Please choose a different path for this job.", "Error", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                this.errorService.ShowMessageBox(Resources.Main_DuplicateDestinationOnQueue, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);\r
             }\r
 \r
             if (!this.IsEncoding)\r
             {\r
-                this.ProgramStatusLabel = string.Format("{0} Encodes Pending", this.queueProcessor.Count);\r
+                this.ProgramStatusLabel = string.Format(Resources.Main_XEncodesPending, this.queueProcessor.Count);\r
             }\r
         }\r
 \r
@@ -1188,13 +1187,13 @@ namespace HandBrakeWPF.ViewModels
         {\r
             if (this.ScannedSource == null || this.ScannedSource.Titles == null || this.ScannedSource.Titles.Count == 0)\r
             {\r
-                this.errorService.ShowMessageBox("You must first scan a source and setup your job before adding to the queue.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
             if (!AutoNameHelper.IsAutonamingEnabled())\r
             {\r
-                this.errorService.ShowMessageBox("You must turn on automatic file naming in preferences before you can add to the queue.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.Main_TurnOnAutoFileNaming, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
@@ -1225,7 +1224,7 @@ namespace HandBrakeWPF.ViewModels
         /// </summary>\r
         public void FolderScan()\r
         {\r
-            VistaFolderBrowserDialog dialog = new VistaFolderBrowserDialog { Description = "Please select a folder.", UseDescriptionForTitle = true };\r
+            VistaFolderBrowserDialog dialog = new VistaFolderBrowserDialog { Description = Resources.Main_PleaseSelectFolder, UseDescriptionForTitle = true };\r
             dialog.ShowDialog();\r
 \r
             ShowSourceSelection = false;\r
@@ -1261,7 +1260,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             if (this.queueProcessor.IsProcessing)\r
             {\r
-                this.errorService.ShowMessageBox("HandBrake is already encoding.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.Main_AlreadyEncoding, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
@@ -1275,19 +1274,19 @@ namespace HandBrakeWPF.ViewModels
             // Otherwise, perform Santiy Checking then add to the queue and start if everything is ok.\r
             if (this.SelectedTitle == null)\r
             {\r
-                this.errorService.ShowMessageBox("You must first scan a source.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.Main_ScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
             if (string.IsNullOrEmpty(this.Destination))\r
             {\r
-                this.errorService.ShowMessageBox("The Destination field was empty.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                this.errorService.ShowMessageBox(Resources.Main_ChooseDestination, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
             if (File.Exists(this.Destination))\r
             {\r
-                MessageBoxResult result = this.errorService.ShowMessageBox("The current file already exists, do you wish to overwrite it?", "Question", MessageBoxButton.YesNo, MessageBoxImage.Question);\r
+                MessageBoxResult result = this.errorService.ShowMessageBox(Resources.Main_DestinationOverwrite, Resources.Question, MessageBoxButton.YesNo, MessageBoxImage.Question);\r
                 if (result == MessageBoxResult.No)\r
                 {\r
                     return;\r
@@ -1475,7 +1474,7 @@ namespace HandBrakeWPF.ViewModels
             if (this.SelectedPreset == null)\r
             {\r
                 this.errorService.ShowMessageBox(\r
-                    "Please select a preset to update.", "No Preset selected", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                    Resources.Main_SelectPresetForUpdate, Resources.Main_NoPresetSelected, MessageBoxButton.OK, MessageBoxImage.Warning);\r
 \r
                 return;\r
             }\r
@@ -1483,17 +1482,17 @@ namespace HandBrakeWPF.ViewModels
             if (this.SelectedPreset.IsBuildIn)\r
             {\r
                 this.errorService.ShowMessageBox(\r
-                    "You can not modify built in presets. Please select one of your own presets.", "No Preset selected", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                    Resources.Main_NoUpdateOfBuiltInPresets, Resources.Main_NoPresetSelected, MessageBoxButton.OK, MessageBoxImage.Warning);\r
                 return;\r
             }\r
 \r
-            if (this.errorService.ShowMessageBox("Are you sure you wish to update the selected preset?", "Are you sure?", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)\r
+            if (this.errorService.ShowMessageBox(Resources.Main_PresetUpdateConfrimation, Resources.AreYouSure, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)\r
             {\r
                 this.SelectedPreset.Task = new EncodeTask(this.CurrentTask);\r
                 this.presetService.Update(this.SelectedPreset);\r
 \r
                 this.errorService.ShowMessageBox(\r
-                        "The Preset has now been updated with your current settings.", "Preset Updated", MessageBoxButton.OK, MessageBoxImage.Information);\r
+                        Resources.Main_PresetUpdated, Resources.Updated, MessageBoxButton.OK, MessageBoxImage.Information);\r
             }\r
         }\r
 \r
@@ -1508,7 +1507,7 @@ namespace HandBrakeWPF.ViewModels
             }\r
             else\r
             {\r
-                MessageBox.Show("Please select a preset.", "Presets", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                MessageBox.Show(Resources.Main_SelectPreset, Resources.Warning, MessageBoxButton.OK, MessageBoxImage.Warning);\r
             }\r
         }\r
 \r
@@ -1520,11 +1519,11 @@ namespace HandBrakeWPF.ViewModels
             if (this.selectedPreset != null)\r
             {\r
                 this.presetService.SetDefault(this.selectedPreset);\r
-                MessageBox.Show(string.Format("New Default Preset Set: {0}", this.selectedPreset.Name), "Presets", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                MessageBox.Show(string.Format(Resources.Main_NewDefaultPreset, this.selectedPreset.Name), Resources.Main_Presets, MessageBoxButton.OK, MessageBoxImage.Information);\r
             }\r
             else\r
             {\r
-                MessageBox.Show("Please select a preset.", "Presets", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                MessageBox.Show(Resources.Main_SelectPreset, Resources.Warning, MessageBoxButton.OK, MessageBoxImage.Warning);\r
             }\r
         }\r
 \r
@@ -1547,8 +1546,8 @@ namespace HandBrakeWPF.ViewModels
                     if (!presetService.CanUpdatePreset(preset.Name))\r
                     {\r
                         MessageBox.Show(\r
-                            "You can not import a preset with the same name as a built-in preset.",\r
-                            "Error",\r
+                            Resources.Main_PresetErrorBuiltInName,\r
+                            Resources.Error,\r
                             MessageBoxButton.OK,\r
                             MessageBoxImage.Error);\r
                         return;\r
@@ -1556,8 +1555,8 @@ namespace HandBrakeWPF.ViewModels
 \r
                     MessageBoxResult result =\r
                         MessageBox.Show(\r
-                            "This preset appears to already exist. Would you like to overwrite it?",\r
-                            "Overwrite preset?",\r
+                            Resources.Main_PresetOverwriteWarning,\r
+                            Resources.Overwrite,\r
                             MessageBoxButton.YesNo,\r
                             MessageBoxImage.Warning);\r
                     if (result == MessageBoxResult.Yes)\r
@@ -1603,7 +1602,7 @@ namespace HandBrakeWPF.ViewModels
             }\r
             else\r
             {\r
-                MessageBox.Show("Please select a preset.", "Presets", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                MessageBox.Show(Resources.Main_SelectPreset, Resources.Warning, MessageBoxButton.OK, MessageBoxImage.Warning);\r
             }\r
         }\r
 \r
@@ -1613,7 +1612,7 @@ namespace HandBrakeWPF.ViewModels
         public void PresetReset()\r
         {\r
             this.presetService.UpdateBuiltInPresets();\r
-            this.NotifyOfPropertyChange("Presets");\r
+            this.NotifyOfPropertyChange(() => this.Presets);\r
             this.SelectedPreset = this.presetService.DefaultPreset;\r
             this.errorService.ShowMessageBox(Resources.Presets_ResetComplete, Resources.Presets_ResetHeader, MessageBoxButton.OK, MessageBoxImage.Information);\r
         }\r
@@ -1699,7 +1698,7 @@ namespace HandBrakeWPF.ViewModels
                     // Cleanup\r
                     this.ShowStatusWindow = false;\r
                     this.SourceLabel = this.SourceName;\r
-                    this.StatusLabel = "Scan Completed";\r
+                    this.StatusLabel = Resources.Main_ScanCompleted;\r
                 });\r
         }\r
 \r
@@ -1804,7 +1803,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             if (information.NewVersionAvailable)\r
             {\r
-                this.ProgramStatusLabel = "A New Update is Available. Goto Tools Menu > Options to Install";\r
+                this.ProgramStatusLabel = Resources.Main_NewUpdate;\r
             }\r
         }\r
 \r
@@ -1822,8 +1821,8 @@ namespace HandBrakeWPF.ViewModels
         /// </param>\r
         private void ScanStatusChanged(object sender, HandBrake.ApplicationServices.EventArgs.ScanProgressEventArgs e)\r
         {\r
-            this.SourceLabel = string.Format("Scanning Title {0} of {1} ({2}%)", e.CurrentTitle, e.Titles, e.Percentage);\r
-            this.StatusLabel = string.Format("Scanning Title {0} of {1} ({2}%)", e.CurrentTitle, e.Titles, e.Percentage);\r
+            this.SourceLabel = string.Format(Resources.Main_ScanningTitleXOfY, e.CurrentTitle, e.Titles, e.Percentage);\r
+            this.StatusLabel = string.Format(Resources.Main_ScanningTitleXOfY, e.CurrentTitle, e.Titles, e.Percentage);\r
         }\r
 \r
         /// <summary>\r
@@ -1852,21 +1851,22 @@ namespace HandBrakeWPF.ViewModels
                     if (e.Successful)\r
                     {\r
                         this.SourceLabel = this.SourceName;\r
-                        this.StatusLabel = "Scan Completed";\r
+                        this.StatusLabel = Resources.Main_ScanCompleted;\r
                     }\r
                     else if (e.Cancelled)\r
                     {\r
-                        this.SourceLabel = "Scan Cancelled.";\r
-                        this.StatusLabel = "Scan Cancelled.";\r
+                        this.SourceLabel = Resources.Main_ScanCancelled;\r
+                        this.StatusLabel = Resources.Main_ScanCancelled;\r
                     }\r
                     else if (e.Exception == null && e.ErrorInformation != null)\r
                     {\r
-                        this.SourceLabel = "Scan failed: " + e.ErrorInformation;\r
-                        this.StatusLabel = "Scan failed: " + e.ErrorInformation;\r
+                        this.SourceLabel = Resources.Main_ScanFailed_NoReason + e.ErrorInformation;\r
+                        this.StatusLabel = Resources.Main_ScanFailed_NoReason + e.ErrorInformation;\r
                     }\r
                     else\r
                     {\r
-                        this.SourceLabel = "Scan Failed... See Activity Log for details."; this.StatusLabel = "Scan Failed... See Activity Log for details.";\r
+                        this.SourceLabel = Resources.Main_ScanFailled_CheckLog;\r
+                        this.StatusLabel = Resources.Main_ScanFailled_CheckLog;\r
                     }\r
                 });\r
         }\r
@@ -1885,7 +1885,7 @@ namespace HandBrakeWPF.ViewModels
             Execute.OnUIThread(\r
                 () =>\r
                 {\r
-                    this.StatusLabel = "Scanning source, please wait...";\r
+                    this.StatusLabel = Resources.Main_ScanningPleaseWait;\r
                     this.ShowStatusWindow = true;\r
                 });\r
         }\r
@@ -1914,12 +1914,12 @@ namespace HandBrakeWPF.ViewModels
                         string josPending = string.Empty;\r
                         if (!AppArguments.IsInstantHandBrake)\r
                         {\r
-                            josPending = ",  Pending Jobs {5}";\r
+                            josPending = Resources.Main_JobsPending_addon;\r
                         }\r
 \r
                         this.ProgramStatusLabel =\r
                             string.Format(\r
-                                "{0:00.00}%,  FPS: {1:000.0},  Avg FPS: {2:000.0},  Time Remaining: {3},  Elapsed: {4:hh\\:mm\\:ss}" + josPending,\r
+                                Resources.Main_EncodeStatusDisplay + josPending,\r
                                 e.PercentComplete,\r
                                 e.CurrentFrameRate,\r
                                 e.AverageFrameRate,\r
@@ -1938,7 +1938,7 @@ namespace HandBrakeWPF.ViewModels
                     }\r
                     else\r
                     {\r
-                        this.ProgramStatusLabel = "Queue Finished";\r
+                        this.ProgramStatusLabel = Resources.Main_QueueFinished;\r
                         this.IsEncoding = false;\r
 \r
                         if (this.windowsSeven.IsWindowsSeven)\r
@@ -1963,7 +1963,7 @@ namespace HandBrakeWPF.ViewModels
             Execute.OnUIThread(\r
                () =>\r
                {\r
-                   this.ProgramStatusLabel = "Preparing to encode ...";\r
+                   this.ProgramStatusLabel = Resources.Main_PreparingToEncode;\r
                    this.IsEncoding = true;\r
                });\r
         }\r
@@ -1984,7 +1984,7 @@ namespace HandBrakeWPF.ViewModels
             Execute.OnUIThread(\r
                 () =>\r
                 {\r
-                    this.ProgramStatusLabel = "Queue Finished";\r
+                    this.ProgramStatusLabel = Resources.Main_QueueFinished;\r
                     this.IsEncoding = false;\r
 \r
                     if (this.windowsSeven.IsWindowsSeven)\r
@@ -2008,7 +2008,7 @@ namespace HandBrakeWPF.ViewModels
             Execute.OnUIThread(\r
               () =>\r
               {\r
-                  this.ProgramStatusLabel = string.Format("{0} Encodes Pending", this.queueProcessor.Count);\r
+                  this.ProgramStatusLabel = string.Format(Resources.Main_XEncodesPending, this.queueProcessor.Count);\r
               });\r
         }\r
 \r
index 5c0913a37749cc27eda3d83e98234e596a84e912..b398a1b5c542106743c7c0f82fa680d6a305906b 100644 (file)
@@ -23,6 +23,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Services.Interfaces;\r
 \r
     using HandBrakeWPF.Factories;\r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
@@ -85,7 +86,7 @@ namespace HandBrakeWPF.ViewModels
         public PreviewViewModel(IErrorService errorService, IUserSettingService userSettingService)\r
         {\r
             // Preview needs a seperate instance rather than the shared singleton. This could maybe do with being refactored at some point\r
-            this.encodeService = new EncodeServiceWrapper(userSettingService); \r
+            this.encodeService = new EncodeServiceWrapper(userSettingService);\r
 \r
             this.errorService = errorService;\r
             this.userSettingService = userSettingService;\r
@@ -262,13 +263,13 @@ namespace HandBrakeWPF.ViewModels
             {\r
                 this.IsEncoding = false;\r
                 this.errorService.ShowMessageBox("Unable to delete previous preview file. You may need to restart the application.",\r
-                                "Error", MessageBoxButton.OK, MessageBoxImage.Error);\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 perview.",\r
-                               "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                               Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
@@ -348,7 +349,7 @@ namespace HandBrakeWPF.ViewModels
                             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
-                                                                 "Error", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                                                                 Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);\r
                             }\r
                         }\r
 \r
@@ -362,7 +363,7 @@ namespace HandBrakeWPF.ViewModels
                 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
-                                 "Error", MessageBoxButton.OK, MessageBoxImage.Warning);\r
+                                 Resources.Error, MessageBoxButton.OK, MessageBoxImage.Warning);\r
                 }\r
             }\r
         }\r
@@ -379,7 +380,7 @@ namespace HandBrakeWPF.ViewModels
             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
-                                "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                               Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
index 3347cfddd469abc7a22c9f0b3cdca8a4867b4e86..c7ddac82c13941eef1a120cb9f02bb8ac6f97953 100644 (file)
@@ -19,6 +19,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Model;\r
     using HandBrake.ApplicationServices.Services.Interfaces;\r
 \r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
@@ -259,7 +260,7 @@ namespace HandBrakeWPF.ViewModels
                 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
-                        "Warning",\r
+                        Resources.Warning,\r
                         MessageBoxButton.YesNo,\r
                         MessageBoxImage.Question);\r
 \r
@@ -296,7 +297,7 @@ namespace HandBrakeWPF.ViewModels
             if (this.queueProcessor.Count == 0)\r
             {\r
                 this.errorService.ShowMessageBox(\r
-                    "There are no pending jobs.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);\r
+                    "There are no pending jobs.", Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
                 return;\r
             }\r
 \r
index 162898f68249dfeba6326cf5a84547f1124bd97d..d933a6afb511aa76fdab185efb1e9d5943e67916 100644 (file)
@@ -16,6 +16,7 @@ namespace HandBrakeWPF.ViewModels
     using HandBrake.ApplicationServices.Services.Interfaces;\r
 \r
     using HandBrakeWPF.Model;\r
+    using HandBrakeWPF.Properties;\r
     using HandBrakeWPF.Services.Interfaces;\r
     using HandBrakeWPF.ViewModels.Interfaces;\r
 \r
@@ -198,7 +199,7 @@ namespace HandBrakeWPF.ViewModels
                 MessageBoxResult result =\r
                     errorService.ShowMessageBox(\r
                         "An Encode is currently running. Exiting HandBrake will stop this encode.\nAre you sure you wish to continue?",\r
-                        "Warning",\r
+                        Resources.Warning,\r
                         MessageBoxButton.YesNo,\r
                         MessageBoxImage.Warning);\r
 \r