diff --git a/src/AddIns/Misc/HelpViewer/HelpViewer.addin b/src/AddIns/Misc/HelpViewer/HelpViewer.addin
index 5f29de8d8c..615c1b1be4 100644
--- a/src/AddIns/Misc/HelpViewer/HelpViewer.addin
+++ b/src/AddIns/Misc/HelpViewer/HelpViewer.addin
@@ -17,17 +17,17 @@
-
+
-
+
@@ -36,7 +36,7 @@
diff --git a/src/AddIns/Misc/HelpViewer/Source/Controls/TocEntry.cs b/src/AddIns/Misc/HelpViewer/Source/Controls/TocEntry.cs
index 53e01aa65e..a5e07799c6 100644
--- a/src/AddIns/Misc/HelpViewer/Source/Controls/TocEntry.cs
+++ b/src/AddIns/Misc/HelpViewer/Source/Controls/TocEntry.cs
@@ -27,7 +27,7 @@ namespace MSHelpSystem.Controls
{
class TocEntry : INotifyPropertyChanged
{
- const string url = "ms-xhelp://?method=children&id={3}&format=xml&product={0}&productVersion={1}&locale={2}";
+ const string url = "ms-xhelp://?method=children&id={1}&format=xml&{0}";
string id;
WebClient client = new WebClient();
@@ -57,9 +57,11 @@ namespace MSHelpSystem.Controls
{
get
{
- Help3Catalog catalog = Help3Service.ActiveCatalog;
- if (children == null && !client.IsBusy)
- client.DownloadStringAsync(new Uri(Help3Environment.GetHttpFromMsXHelp(string.Format(url, catalog.ProductCode, catalog.ProductVersion, catalog.Locale, id))));
+ if (Help3Service.ActiveCatalog != null) {
+ if (children == null && !client.IsBusy && HelpLibraryAgent.PortIsReady) {
+ client.DownloadStringAsync(new Uri(Help3Environment.GetHttpFromMsXHelp(string.Format(url, Help3Service.ActiveCatalog.AsMsXHelpParam, id))));
+ }
+ }
return children ?? defaultChild;
}
private set
diff --git a/src/AddIns/Misc/HelpViewer/Source/Controls/TocPadControl.xaml.cs b/src/AddIns/Misc/HelpViewer/Source/Controls/TocPadControl.xaml.cs
index a8c68ee40c..c0ee8e6fe8 100644
--- a/src/AddIns/Misc/HelpViewer/Source/Controls/TocPadControl.xaml.cs
+++ b/src/AddIns/Misc/HelpViewer/Source/Controls/TocPadControl.xaml.cs
@@ -31,8 +31,7 @@ namespace MSHelpSystem.Controls
void LoadToc()
{
if (!Help3Environment.IsLocalHelp) DataContext = null;
- // TODO: Needs a localization
- else DataContext = new[] { new TocEntry("-1") { Title = "Help Library" } };
+ else DataContext = new[] { new TocEntry("-1") { Title = StringParser.Parse("${res:AddIns.HelpViewer.HelpLibraryRootTitle}") } };
}
void Help3TocItemChanged(object sender, RoutedPropertyChangedEventArgs