Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2019-08-29 21:31:15 +0300
committerEric Maupin <ermaup@microsoft.com>2019-08-29 21:31:15 +0300
commit637eaa147865674d5ba6087b68ae691610dbea56 (patch)
tree6c0030bd8e8c5858d4518839738532ac3a45ca30
parent0e0302b4923cf2ecbf77b113859c66377b0278b7 (diff)
[Win] Localize the collection Add button
-rw-r--r--Xamarin.PropertyEditing.Windows/CollectionEditorWindow.xaml2
-rw-r--r--Xamarin.PropertyEditing/Properties/Resources.Designer.cs6
-rw-r--r--Xamarin.PropertyEditing/Properties/Resources.resx5
3 files changed, 11 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Windows/CollectionEditorWindow.xaml b/Xamarin.PropertyEditing.Windows/CollectionEditorWindow.xaml
index 7e89890..d9fdc41 100644
--- a/Xamarin.PropertyEditing.Windows/CollectionEditorWindow.xaml
+++ b/Xamarin.PropertyEditing.Windows/CollectionEditorWindow.xaml
@@ -51,7 +51,7 @@
<Button Command="{Binding MoveDownCommand,Mode=OneTime}" ToolTip="{x:Static prop:Resources.MoveItemDown}" AutomationProperties.Name="{x:Static prop:Resources.MoveItemDown}" MinWidth="29" Margin="4,0,0,0" FontFamily="Segoe UI Symbol" Content="тнг" />
</StackPanel>
<ComboBox Grid.Column="1" ItemsSource="{Binding SuggestedTypes}" DisplayMemberPath="Name" SelectedItem="{Binding SelectedType,Mode=TwoWay}" Margin="12,0,0,0" />
- <Button Grid.Column="2" Command="{Binding AddTargetCommand,Mode=OneTime}" Margin="4,0,0,0">Add</Button>
+ <Button Grid.Column="2" Command="{Binding AddTargetCommand,Mode=OneTime}" Margin="4,0,0,0" Content="{x:Static prop:Resources.AddCollectionItem}" />
</Grid>
<ItemsControl Margin="12,4,0,0" Style="{StaticResource PropertyListStyle}" Background="{DynamicResource ListBackgroundBrush}" Grid.IsSharedSizeScope="True" DataContext="{Binding Panel}" ItemsSource="{Binding ArrangedEditors}" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" />
diff --git a/Xamarin.PropertyEditing/Properties/Resources.Designer.cs b/Xamarin.PropertyEditing/Properties/Resources.Designer.cs
index 6f5177b..236dcc8 100644
--- a/Xamarin.PropertyEditing/Properties/Resources.Designer.cs
+++ b/Xamarin.PropertyEditing/Properties/Resources.Designer.cs
@@ -1204,5 +1204,11 @@ namespace Xamarin.PropertyEditing.Properties {
return ResourceManager.GetString("ResourceNotSupported", resourceCulture);
}
}
+
+ public static string AddCollectionItem {
+ get {
+ return ResourceManager.GetString("AddCollectionItem", resourceCulture);
+ }
+ }
}
}
diff --git a/Xamarin.PropertyEditing/Properties/Resources.resx b/Xamarin.PropertyEditing/Properties/Resources.resx
index 75b46a3..fe93990 100644
--- a/Xamarin.PropertyEditing/Properties/Resources.resx
+++ b/Xamarin.PropertyEditing/Properties/Resources.resx
@@ -776,4 +776,7 @@
<data name="ResourceNotSupported" xml:space="preserve">
<value>Resource Not Supported</value>
</data>
-</root>
+ <data name="AddCollectionItem" xml:space="preserve">
+ <value>Add</value>
+ </data>
+</root> \ No newline at end of file