Skip to content

Commit

Permalink
Localize Color Picker imp (#13203)
Browse files Browse the repository at this point in the history
* Initialize with current culture

* Revert "Initialize with current culture"

This reverts commit cb89a20.

* Add resource strings for buttons
  • Loading branch information
QilongTang authored Aug 15, 2022
1 parent df64d01 commit 933f16c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 11 deletions.
4 changes: 3 additions & 1 deletion src/Libraries/CoreNodeModelsWpf/Controls/ColorPalette.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
Width="80"
AvailableColorsHeader="{x:Static p:CoreNodeModelWpfResources.ColorPaletteUIStandardColors}"
ShowStandardColors="False"
ShowRecentColors="True"
ShowRecentColors="True"
StandardButtonHeader="{x:Static p:CoreNodeModelWpfResources.ColorPaletteUIStandardButtonHeader}"
AdvancedButtonHeader="{x:Static p:CoreNodeModelWpfResources.ColorPaletteUIAdvancedButtonHeader}"
RecentColorsHeader="{x:Static p:CoreNodeModelWpfResources.ColorPaletteUIRecentColors}" />
</Grid>
</UserControl>
20 changes: 10 additions & 10 deletions src/Libraries/CoreNodeModelsWpf/CoreNodeModelsWpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@
</Page>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<Compile Update="Properties\CoreNodeModelWpfResources.Designer.cs">
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Resources.en-US.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>CoreNodeModelWpfResources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\CoreNodeModelWpfResources.en-US.Designer.cs">
<DesignTime>True</DesignTime>
<DependentUpon>Resources.en-US.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DependentUpon>CoreNodeModelWpfResources.en-US.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
Expand All @@ -110,13 +110,13 @@
<Resource Include="Resources\MissingNode.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<EmbeddedResource Update="Properties\CoreNodeModelWpfResources.en-US.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<LastGenOutput>CoreNodeModelWpfResources.en-US.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Properties\Resources.en-US.resx">
<EmbeddedResource Update="Properties\CoreNodeModelWpfResources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.en-US.Designer.cs</LastGenOutput>
<LastGenOutput>CoreNodeModelWpfResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<Target Name="BinaryCompatibilityOps" BeforeTargets="Build">
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,15 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ColorPaletteUIAdvancedButtonHeader" xml:space="preserve">
<value>Advanced</value>
</data>
<data name="ColorPaletteUIRecentColors" xml:space="preserve">
<value>Recent Colors</value>
</data>
<data name="ColorPaletteUIStandardButtonHeader" xml:space="preserve">
<value>Standard</value>
</data>
<data name="ColorPaletteUIStandardColors" xml:space="preserve">
<value>Standard Colors</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,15 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ColorPaletteUIAdvancedButtonHeader" xml:space="preserve">
<value>Advanced</value>
</data>
<data name="ColorPaletteUIRecentColors" xml:space="preserve">
<value>Recent Colors</value>
</data>
<data name="ColorPaletteUIStandardButtonHeader" xml:space="preserve">
<value>Standard</value>
</data>
<data name="ColorPaletteUIStandardColors" xml:space="preserve">
<value>Standard Colors</value>
</data>
Expand Down

0 comments on commit 933f16c

Please sign in to comment.