Skip to content

Commit c7cea26

Browse files
DYN-7222 DefaultValues Locale (#15438)
1 parent 8e8f2d0 commit c7cea26

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

src/DocumentationBrowserViewExtension/NodeDocumentationHtmlGenerator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private static string GetDefaultValueFromDescription(string element)
313313
var stringArr = element.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
314314
foreach (var line in stringArr)
315315
{
316-
if (line.ToLowerInvariant().Contains("default value"))
316+
if (line.ToLowerInvariant().Contains(Resources.InputDefaultValue))
317317
{
318318
return line.Remove(0, 16);
319319
}

src/DocumentationBrowserViewExtension/Properties/Resources.Designer.cs

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DocumentationBrowserViewExtension/Properties/Resources.en-US.resx

+3
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@
142142
<value>Zoom out</value>
143143
<comment>Image Control ToolTip</comment>
144144
</data>
145+
<data name="InputDefaultValue" xml:space="preserve">
146+
<value>default value</value>
147+
</data>
145148
<data name="InsertedGroupSubTitle" xml:space="preserve">
146149
<value>Inserted Dynamo graph</value>
147150
</data>

src/DocumentationBrowserViewExtension/Properties/Resources.resx

+3
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,7 @@
216216
<data name="ToastFileNotFoundLocationNotificationText" xml:space="preserve">
217217
<value>Example file from {0} could not be found</value>
218218
</data>
219+
<data name="InputDefaultValue" xml:space="preserve">
220+
<value>default value</value>
221+
</data>
219222
</root>

0 commit comments

Comments
 (0)