Skip to content

Commit

Permalink
Graph Node Manager Localization (#13178)
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang authored Aug 8, 2022
1 parent 077d206 commit 3773923
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/GraphNodeManagerViewExtension/GraphNodeManagerView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
Style="{StaticResource ContextMenuStyle}"
Background="#666666"
Width="170">
<MenuItem x:Name="CSVItem" Header="Export as CSV" Padding="10" FontSize="12"
<MenuItem x:Name="CSVItem" Header="{x:Static p:Resources.MenuItemExportAsCSV}" Padding="10" FontSize="12"
Command="{Binding ExportCommand}" CommandParameter="CSV"/>
<MenuItem x:Name="JSONItem" Header="Export as JSON" Padding="10" FontSize="12"
<MenuItem x:Name="JSONItem" Header="{x:Static p:Resources.MenuItemExportAsJSON}" Padding="10" FontSize="12"
Command="{Binding ExportCommand}" CommandParameter="JSON"/>
</ContextMenu>
</Image.ContextMenu>
Expand Down Expand Up @@ -142,7 +142,7 @@

<!-- Name -->
<DataGridTextColumn
Header="Name"
Header="{x:Static p:Resources.HeaderNameName}"
Binding="{Binding Name}"
FontWeight="Light"
Foreground="#F5F5F5"
Expand All @@ -151,7 +151,7 @@

<!-- Type -->
<DataGridTemplateColumn
Header="Type"
Header="{x:Static p:Resources.HeaderNameType}"
Width="3*"
IsReadOnly="True">
<DataGridTemplateColumn.CellTemplate>
Expand All @@ -176,7 +176,7 @@

<!-- State -->
<DataGridTemplateColumn
Header="State"
Header="{x:Static p:Resources.HeaderNameState}"
Width="4*"
IsReadOnly="True">
<DataGridTemplateColumn.CellTemplate>
Expand All @@ -201,7 +201,7 @@

<!-- Issues -->
<DataGridTemplateColumn
Header="Issues"
Header="{x:Static p:Resources.HeaderNameIssues}"
Width="4*"
IsReadOnly="True">
<DataGridTemplateColumn.CellTemplate>
Expand Down Expand Up @@ -234,7 +234,7 @@

<!-- Outputs -->
<DataGridTemplateColumn
Header="Outputs"
Header="{x:Static p:Resources.HeaderNameOutputs}"
Width="Auto"
IsReadOnly="True">
<DataGridTemplateColumn.CellTemplate>
Expand Down
63 changes: 63 additions & 0 deletions src/GraphNodeManagerViewExtension/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions src/GraphNodeManagerViewExtension/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,27 @@
<data name="ExtensionName" xml:space="preserve">
<value>Graph Node Manager</value>
</data>
<data name="HeaderNameIssues" xml:space="preserve">
<value>Issues</value>
</data>
<data name="HeaderNameName" xml:space="preserve">
<value>Name</value>
</data>
<data name="HeaderNameOutputs" xml:space="preserve">
<value>Outputs</value>
</data>
<data name="HeaderNameState" xml:space="preserve">
<value>State</value>
</data>
<data name="HeaderNameType" xml:space="preserve">
<value>Type</value>
</data>
<data name="MenuItemExportAsCSV" xml:space="preserve">
<value>Export as CSV</value>
</data>
<data name="MenuItemExportAsJSON" xml:space="preserve">
<value>Export as JSON</value>
</data>
<data name="MenuItemText" xml:space="preserve">
<value>Show _Graph Node Manager</value>
</data>
Expand Down
21 changes: 21 additions & 0 deletions src/GraphNodeManagerViewExtension/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,27 @@
<data name="ExtensionName" xml:space="preserve">
<value>Graph Node Manager</value>
</data>
<data name="HeaderNameIssues" xml:space="preserve">
<value>Issues</value>
</data>
<data name="HeaderNameName" xml:space="preserve">
<value>Name</value>
</data>
<data name="HeaderNameOutputs" xml:space="preserve">
<value>Outputs</value>
</data>
<data name="HeaderNameState" xml:space="preserve">
<value>State</value>
</data>
<data name="HeaderNameType" xml:space="preserve">
<value>Type</value>
</data>
<data name="MenuItemExportAsCSV" xml:space="preserve">
<value>Export as CSV</value>
</data>
<data name="MenuItemExportAsJSON" xml:space="preserve">
<value>Export as JSON</value>
</data>
<data name="MenuItemText" xml:space="preserve">
<value>Show _Graph Node Manager</value>
</data>
Expand Down

0 comments on commit 3773923

Please sign in to comment.