diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-08-29 21:36:19 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-08-29 21:36:19 +0300 |
commit | f3261220431b863aa3ef5cfab5464f53078cf2f5 (patch) | |
tree | c3ad0a549f11a7261f708548d71c59b9bffbbf50 | |
parent | 637eaa147865674d5ba6087b68ae691610dbea56 (diff) |
[Win] Localize shared/local/all resources
3 files changed, 30 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Windows/ResourceSelectorWindow.xaml b/Xamarin.PropertyEditing.Windows/ResourceSelectorWindow.xaml index 5a7fc37..7dd210f 100644 --- a/Xamarin.PropertyEditing.Windows/ResourceSelectorWindow.xaml +++ b/Xamarin.PropertyEditing.Windows/ResourceSelectorWindow.xaml @@ -56,9 +56,9 @@ <Setter Property="FocusVisualStyle" Value="{StaticResource GenericVisualFocusStyle}" /> </Style> </StackPanel.Resources> - <RadioButton Content="_All Resources" GroupName="ResourceTypes" IsChecked="{Binding ShowBothResourceTypes}" /> - <RadioButton Content="_Local" GroupName="ResourceTypes" IsChecked="{Binding ShowOnlyLocalResources}" /> - <RadioButton Content="_Shared" GroupName="ResourceTypes" IsChecked="{Binding ShowOnlySystemResources}" /> + <RadioButton Content="{x:Static prop:Resources.ResourcesAllSources}" GroupName="ResourceTypes" IsChecked="{Binding ShowBothResourceTypes}" /> + <RadioButton Content="{x:Static prop:Resources.ResourcesLocalSource}" GroupName="ResourceTypes" IsChecked="{Binding ShowOnlyLocalResources}" /> + <RadioButton Content="{x:Static prop:Resources.ResourcesSharedSource}" GroupName="ResourceTypes" IsChecked="{Binding ShowOnlySystemResources}" /> </StackPanel> <Separator Grid.Row="3" Margin="0,10,0,10" /> diff --git a/Xamarin.PropertyEditing/Properties/Resources.Designer.cs b/Xamarin.PropertyEditing/Properties/Resources.Designer.cs index 236dcc8..b63f556 100644 --- a/Xamarin.PropertyEditing/Properties/Resources.Designer.cs +++ b/Xamarin.PropertyEditing/Properties/Resources.Designer.cs @@ -1210,5 +1210,23 @@ namespace Xamarin.PropertyEditing.Properties { return ResourceManager.GetString("AddCollectionItem", resourceCulture); } } + + public static string ResourcesAllSources { + get { + return ResourceManager.GetString("ResourcesAllSources", resourceCulture); + } + } + + public static string ResourcesLocalSource { + get { + return ResourceManager.GetString("ResourcesLocalSource", resourceCulture); + } + } + + public static string ResourcesSharedSource { + get { + return ResourceManager.GetString("ResourcesSharedSource", resourceCulture); + } + } } } diff --git a/Xamarin.PropertyEditing/Properties/Resources.resx b/Xamarin.PropertyEditing/Properties/Resources.resx index fe93990..458568d 100644 --- a/Xamarin.PropertyEditing/Properties/Resources.resx +++ b/Xamarin.PropertyEditing/Properties/Resources.resx @@ -779,4 +779,13 @@ <data name="AddCollectionItem" xml:space="preserve"> <value>Add</value> </data> + <data name="ResourcesAllSources" xml:space="preserve"> + <value>_All Resources</value> + </data> + <data name="ResourcesLocalSource" xml:space="preserve"> + <value>_Local</value> + </data> + <data name="ResourcesSharedSource" xml:space="preserve"> + <value>_Shared</value> + </data> </root>
\ No newline at end of file |