diff options
author | sr55 <[email protected]> | 2014-11-08 16:16:59 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-11-08 16:16:59 +0000 |
commit | 685d6946a503f1db65a0ffdef7c613939e1cd913 (patch) | |
tree | dddd10bb49a5a41440e32631fc854b3a431a85bb /win/CS | |
parent | ae9bfd9b905296f18de701de1edab59c40ea4476 (diff) |
WinGui: Improve Error message for the help menu item.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6509 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/Resources.Designer.cs | 18 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/Resources.resx | 6 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 9 |
3 files changed, 32 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs index 7f787b97f..3759f9eae 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs @@ -672,6 +672,24 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
+ /// Looks up a localized string similar to Your system prevented HandBrake from launching a web browser..
+ /// </summary>
+ public static string Main_UnableToLoadHelpMessage {
+ get {
+ return ResourceManager.GetString("Main_UnableToLoadHelpMessage", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to You can still access the help pages by visiting the website directly at: https://handbrake.fr.
+ /// </summary>
+ public static string Main_UnableToLoadHelpSolution {
+ get {
+ return ResourceManager.GetString("Main_UnableToLoadHelpSolution", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to {0} Encodes Pending.
/// </summary>
public static string Main_XEncodesPending {
diff --git a/win/CS/HandBrakeWPF/Properties/Resources.resx b/win/CS/HandBrakeWPF/Properties/Resources.resx index 9a406c92c..8e4c82d29 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.resx +++ b/win/CS/HandBrakeWPF/Properties/Resources.resx @@ -530,4 +530,10 @@ Not both at the same time!</value> <data name="Main_MatchingFileOverwriteWarning" xml:space="preserve">
<value>You cannot encode to a file with the same path and name as the source file. Please update the destination filename so that it does not match the source file.</value>
</data>
+ <data name="Main_UnableToLoadHelpMessage" xml:space="preserve">
+ <value>Your system prevented HandBrake from launching a web browser.</value>
+ </data>
+ <data name="Main_UnableToLoadHelpSolution" xml:space="preserve">
+ <value>You can still access the help pages by visiting the website directly at: https://handbrake.fr</value>
+ </data>
</root>
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 81558c78d..cf57289d2 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1172,7 +1172,14 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void LaunchHelp()
{
- Process.Start("https://trac.handbrake.fr/wiki/HandBrakeGuide");
+ try
+ {
+ Process.Start("https://trac.handbrake.fr/wiki/HandBrakeGuide");
+ }
+ catch (Exception exc)
+ {
+ this.errorService.ShowError(Resources.Main_UnableToLoadHelpMessage, Resources.Main_UnableToLoadHelpSolution, exc);
+ }
}
/// <summary>
|