}\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
}\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't support! Tracks are reset with every new source / title selected..\r
/// </summary>\r
}\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 > 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
}\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 'Source' 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
}\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
}\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
}\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
<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 > 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
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
{\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
\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
{\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
//// 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
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
{\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
{\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
set\r
{\r
this.scannedSource = value;\r
- this.NotifyOfPropertyChange("ScannedSource");\r
+ this.NotifyOfPropertyChange(() => ScannedSource);\r
}\r
}\r
\r
{\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
if (!Equals(this.sourceLabel, value))\r
{\r
this.sourceLabel = value;\r
- this.NotifyOfPropertyChange("SourceLabel");\r
+ this.NotifyOfPropertyChange(() => SourceLabel);\r
}\r
}\r
}\r
set\r
{\r
duration = value;\r
- this.NotifyOfPropertyChange("Duration");\r
+ this.NotifyOfPropertyChange(() => Duration);\r
}\r
}\r
\r
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
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
{\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
}\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
{\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
/// </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
{\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
// 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
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
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
}\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
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
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
\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
}\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
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
// 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
{\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
/// </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
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
Execute.OnUIThread(\r
() =>\r
{\r
- this.StatusLabel = "Scanning source, please wait...";\r
+ this.StatusLabel = Resources.Main_ScanningPleaseWait;\r
this.ShowStatusWindow = true;\r
});\r
}\r
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
}\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
Execute.OnUIThread(\r
() =>\r
{\r
- this.ProgramStatusLabel = "Preparing to encode ...";\r
+ this.ProgramStatusLabel = Resources.Main_PreparingToEncode;\r
this.IsEncoding = true;\r
});\r
}\r
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
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
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
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
{\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
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
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
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
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
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
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
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
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