diff --git a/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs b/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs index 1e887f8bbf0..b60426ba4f0 100644 --- a/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs +++ b/src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs @@ -313,7 +313,7 @@ private static string GetDefaultValueFromDescription(string element) var stringArr = element.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None); foreach (var line in stringArr) { - if (line.ToLowerInvariant().Contains("default value")) + if (line.ToLowerInvariant().Contains(Resources.InputDefaultValue)) { return line.Remove(0, 16); } diff --git a/src/DocumentationBrowserViewExtension/Properties/Resources.Designer.cs b/src/DocumentationBrowserViewExtension/Properties/Resources.Designer.cs index d330d67c19b..cecfe9d909d 100644 --- a/src/DocumentationBrowserViewExtension/Properties/Resources.Designer.cs +++ b/src/DocumentationBrowserViewExtension/Properties/Resources.Designer.cs @@ -123,6 +123,15 @@ public static string ImageZoomOutToolTip { } } + /// + /// Looks up a localized string similar to default value. + /// + public static string InputDefaultValue { + get { + return ResourceManager.GetString("InputDefaultValue", resourceCulture); + } + } + /// /// Looks up a localized string similar to Inserted Dynamo graph. /// diff --git a/src/DocumentationBrowserViewExtension/Properties/Resources.en-US.resx b/src/DocumentationBrowserViewExtension/Properties/Resources.en-US.resx index 99659a5dd0b..2648d4f01a1 100644 --- a/src/DocumentationBrowserViewExtension/Properties/Resources.en-US.resx +++ b/src/DocumentationBrowserViewExtension/Properties/Resources.en-US.resx @@ -142,6 +142,9 @@ Zoom out Image Control ToolTip + + default value + Inserted Dynamo graph diff --git a/src/DocumentationBrowserViewExtension/Properties/Resources.resx b/src/DocumentationBrowserViewExtension/Properties/Resources.resx index bbb973c520b..df6a75258b8 100644 --- a/src/DocumentationBrowserViewExtension/Properties/Resources.resx +++ b/src/DocumentationBrowserViewExtension/Properties/Resources.resx @@ -216,4 +216,7 @@ Example file from {0} could not be found + + default value + \ No newline at end of file