diff options
author | Dominique Louis <savagesoftware@gmail.com> | 2017-10-13 13:16:06 +0300 |
---|---|---|
committer | Alan McGovern <alanmcgovern@users.noreply.github.com> | 2017-10-23 14:04:23 +0300 |
commit | 452a4b92e5a1a4b2cfae28063526bd696080899c (patch) | |
tree | ba9d1b8f2fe8011426960ae206aab17f7549e60a /Xamarin.PropertyEditing.Mac | |
parent | 9b38975c777245a5a95d37a3f3f791d567a704f6 (diff) |
Initial Localisation pass.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac')
16 files changed, 241 insertions, 33 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BaseNumericEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BaseNumericEditorControl.cs index d05c98a..abc06a7 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BaseNumericEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BaseNumericEditorControl.cs @@ -4,6 +4,7 @@ using System.Diagnostics; using AppKit; using CoreGraphics; using Foundation; +using Xamarin.PropertyEditing.Mac.Resources; using Xamarin.PropertyEditing.ViewModels; namespace Xamarin.PropertyEditing.Mac @@ -72,7 +73,7 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { NumericEditor.AccessibilityEnabled = NumericEditor.Enabled; - NumericEditor.AccessibilityTitle = ViewModel.Property.Name + " Numeric Editor"; // TODO Localization + NumericEditor.AccessibilityTitle = Strings.AccessibilityNumeric (ViewModel.Property.Name); } } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs index b1ce41a..1634576 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs @@ -4,6 +4,7 @@ using System.Diagnostics; using System.Drawing; using AppKit; using CoreGraphics; +using Xamarin.PropertyEditing.Mac.Resources; using Xamarin.PropertyEditing.ViewModels; namespace Xamarin.PropertyEditing.Mac @@ -106,16 +107,16 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { XEditor.AccessibilityEnabled = XEditor.Enabled; - XEditor.AccessibilityTitle = ViewModel.Property.Name + " X Editor"; // TODO Localization + XEditor.AccessibilityTitle = Strings.AccessibilityXEditor (ViewModel.Property.Name); YEditor.AccessibilityEnabled = YEditor.Enabled; - YEditor.AccessibilityTitle = ViewModel.Property.Name + " Y Editor"; // TODO Localization + YEditor.AccessibilityTitle = Strings.AccessibilityYEditor (ViewModel.Property.Name); WidthEditor.AccessibilityEnabled = WidthEditor.Enabled; - WidthEditor.AccessibilityTitle = ViewModel.Property.Name + " Width Editor"; // TODO Localization + WidthEditor.AccessibilityTitle = Strings.AccessibilityWidthEditor (ViewModel.Property.Name); - HeightEditor.AccessibilityEnabled = XEditor.Enabled; - HeightEditor.AccessibilityTitle = ViewModel.Property.Name + " Height Editor"; // TODO Localization + HeightEditor.AccessibilityEnabled = HeightEditor.Enabled; + HeightEditor.AccessibilityTitle = Strings.AccessibilityHeightEditor (ViewModel.Property.Name); } } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs index 6f2a789..5220c7f 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs @@ -4,6 +4,7 @@ using System.Diagnostics; using AppKit; using Foundation; using ObjCRuntime; +using Xamarin.PropertyEditing.Mac.Resources; using Xamarin.PropertyEditing.ViewModels; namespace Xamarin.PropertyEditing.Mac @@ -85,7 +86,7 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { BooleanEditor.AccessibilityEnabled = BooleanEditor.Enabled; - BooleanEditor.AccessibilityTitle = ViewModel.Property.Name + " Boolean Editor"; // TODO Localization + BooleanEditor.AccessibilityTitle = Strings.AccessibilityBoolean (ViewModel.Property.Name); } } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/CGPointEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/CGPointEditorControl.cs index 4716ae4..495f815 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/CGPointEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/CGPointEditorControl.cs @@ -5,6 +5,7 @@ using System.Drawing; using AppKit; using CoreGraphics; using Foundation; +using Xamarin.PropertyEditing.Mac.Resources; using Xamarin.PropertyEditing.ViewModels; namespace Xamarin.PropertyEditing.Mac @@ -14,12 +15,12 @@ namespace Xamarin.PropertyEditing.Mac public CGPointEditorControl () { XLabel.Frame = new CGRect (0, 0, 25, 24); - XLabel.StringValue = "X:"; // TODO Localise + XLabel.StringValue = "X:"; XEditor.Frame = new CGRect (25, 0, 50, 20); YLabel.Frame = new CGRect (85, 0, 25, 24); - YLabel.StringValue = "Y:"; // TODO Localise + YLabel.StringValue = "Y:"; YEditor.Frame = new CGRect (110, 0, 50, 20); } @@ -38,10 +39,10 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { XEditor.AccessibilityEnabled = XEditor.Enabled; - XEditor.AccessibilityTitle = ViewModel.Property.Name + " X Editor"; // TODO Localization + XEditor.AccessibilityTitle = Strings.AccessibilityXEditor (ViewModel.Property.Name); YEditor.AccessibilityEnabled = YEditor.Enabled; - YEditor.AccessibilityTitle = ViewModel.Property.Name + " Y Editor"; // TODO Localization + YEditor.AccessibilityTitle = Strings.AccessibilityYEditor (ViewModel.Property.Name); } } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/CGRectEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/CGRectEditorControl.cs index 2c537c7..843e1f7 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/CGRectEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/CGRectEditorControl.cs @@ -8,7 +8,6 @@ namespace Xamarin.PropertyEditing.Mac { public CGRectEditorControl () { - // TODO localize XLabel.Frame = new CGRect (26, 23, 25, 24); XLabel.StringValue = "X:"; diff --git a/Xamarin.PropertyEditing.Mac/Controls/CGSizeEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/CGSizeEditorControl.cs index 907dc1d..eecfeb3 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/CGSizeEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/CGSizeEditorControl.cs @@ -5,6 +5,7 @@ using System.Drawing; using AppKit; using CoreGraphics; using Foundation; +using Xamarin.PropertyEditing.Mac.Resources; using Xamarin.PropertyEditing.ViewModels; namespace Xamarin.PropertyEditing.Mac @@ -14,12 +15,12 @@ namespace Xamarin.PropertyEditing.Mac public CGSizeEditorControl () { XLabel.Frame = new CGRect (0, 0, 40, 24); - XLabel.StringValue = "Width:"; // TODO Localise + XLabel.StringValue = "Width:"; XEditor.Frame = new CGRect (45, 0, 50, 20); YLabel.Frame = new CGRect (105, 0, 45, 24); - YLabel.StringValue = "Height:"; // TODO Localise + YLabel.StringValue = "Height:"; YEditor.Frame = new CGRect (155, 0, 50, 20); } @@ -38,10 +39,10 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { XEditor.AccessibilityEnabled = XEditor.Enabled; - XEditor.AccessibilityTitle = ViewModel.Property.Name + " Width Editor"; // TODO Localization + XEditor.AccessibilityTitle = Strings.AccessibilityWidthEditor (ViewModel.Property.Name); YEditor.AccessibilityEnabled = YEditor.Enabled; - YEditor.AccessibilityTitle = ViewModel.Property.Name + " Height Editor"; // TODO Localization + YEditor.AccessibilityTitle = Strings.AccessibilityHeightEditor (ViewModel.Property.Name); } } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/PointEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/PointEditorControl.cs index 951df18..91aae78 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/PointEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/PointEditorControl.cs @@ -2,6 +2,7 @@ using System.Drawing; using CoreGraphics; using Xamarin.PropertyEditing.Drawing; +using Xamarin.PropertyEditing.Mac.Resources; namespace Xamarin.PropertyEditing.Mac { @@ -11,12 +12,12 @@ namespace Xamarin.PropertyEditing.Mac public PointEditorControl () { XLabel.Frame = new CGRect (0, 0, 25, 24); - XLabel.StringValue = "X:"; // TODO Localise + XLabel.StringValue = "X:"; XEditor.Frame = new CGRect (25, 0, 50, 20); YLabel.Frame = new CGRect (85, 0, 25, 24); - YLabel.StringValue = "Y:"; // TODO Localise + YLabel.StringValue = "Y:"; YEditor.Frame = new CGRect (110, 0, 50, 20); } @@ -24,10 +25,10 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { XEditor.AccessibilityEnabled = XEditor.Enabled; - XEditor.AccessibilityTitle = ViewModel.Property.Name + " X Editor"; // TODO Localization + XEditor.AccessibilityTitle = Strings.AccessibilityXEditor (ViewModel.Property.Name); YEditor.AccessibilityEnabled = YEditor.Enabled; - YEditor.AccessibilityTitle = ViewModel.Property.Name + " Y Editor"; // TODO Localization + YEditor.AccessibilityTitle = Strings.AccessibilityYEditor (ViewModel.Property.Name); } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs index 2683eb4..0c8998a 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs @@ -8,6 +8,7 @@ using AppKit; using CoreGraphics; using Xamarin.PropertyEditing.ViewModels; +using Xamarin.PropertyEditing.Mac.Resources; namespace Xamarin.PropertyEditing.Mac { @@ -88,7 +89,7 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { comboBox.AccessibilityEnabled = comboBox.Enabled; - comboBox.AccessibilityTitle = ViewModel.Property.Name + " Enumeration Combo Box"; // TODO Localization + comboBox.AccessibilityTitle = Strings.AccessibilityCombobox (ViewModel.Property.Name); } } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/RectangleEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/RectangleEditorControl.cs index c9f095f..0645983 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/RectangleEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/RectangleEditorControl.cs @@ -9,7 +9,6 @@ namespace Xamarin.PropertyEditing.Mac { public RectangleEditorControl () { - // TODO localize XLabel.Frame = new CGRect (26, 23, 25, 24); XLabel.StringValue = "X:"; diff --git a/Xamarin.PropertyEditing.Mac/Controls/SizeEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/SizeEditorControl.cs index 53e1f16..592564b 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/SizeEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/SizeEditorControl.cs @@ -2,6 +2,7 @@ using System.Drawing; using CoreGraphics; using Xamarin.PropertyEditing.Drawing; +using Xamarin.PropertyEditing.Mac.Resources; namespace Xamarin.PropertyEditing.Mac { @@ -11,20 +12,20 @@ namespace Xamarin.PropertyEditing.Mac public SizeEditorControl () { XLabel.Frame = new CGRect (0, 0, 40, 24); - XLabel.StringValue = "Width:"; // TODO Localise + XLabel.StringValue = "Width:"; XEditor.Frame = new CGRect (45, 0, 50, 20); YLabel.Frame = new CGRect (105, 0, 45, 24); - YLabel.StringValue = "Height:"; // TODO Localise + YLabel.StringValue = "Height:"; YEditor.Frame = new CGRect (155, 0, 50, 20); } protected override void UpdateAccessibilityValues () { - XEditor.AccessibilityTitle = ViewModel.Property.Name + " Width Editor"; // TODO Localization - YEditor.AccessibilityTitle = ViewModel.Property.Name + " Height Editor"; // TODO Localization + XEditor.AccessibilityTitle = Strings.AccessibilityWidthEditor (ViewModel.Property.Name); + YEditor.AccessibilityTitle = Strings.AccessibilityHeightEditor (ViewModel.Property.Name); } } diff --git a/Xamarin.PropertyEditing.Mac/Controls/StringEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/StringEditorControl.cs index 2b85ca3..a268ee7 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/StringEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/StringEditorControl.cs @@ -3,6 +3,7 @@ using System.Collections; using System.Diagnostics; using AppKit; using CoreGraphics; +using Xamarin.PropertyEditing.Mac.Resources; using Xamarin.PropertyEditing.ViewModels; namespace Xamarin.PropertyEditing.Mac @@ -69,7 +70,7 @@ namespace Xamarin.PropertyEditing.Mac protected override void UpdateAccessibilityValues () { - StringEditor.AccessibilityTitle = ViewModel.Property.Name + " String Editor"; // TODO Localization + StringEditor.AccessibilityTitle = Strings.AccessibilityString (ViewModel.Property.Name); } } } diff --git a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs index acdf035..c7cb370 100644 --- a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs +++ b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs @@ -5,7 +5,7 @@ using CoreGraphics; using Foundation; using AppKit; using Xamarin.PropertyEditing.ViewModels; - +using Xamarin.PropertyEditing.Mac.Resources; namespace Xamarin.PropertyEditing.Mac { @@ -97,7 +97,7 @@ namespace Xamarin.PropertyEditing.Mac propertyFilter = new NSSearchField (new CGRect (10, Frame.Height - 25, 170, 24)) { TranslatesAutoresizingMaskIntoConstraints = false, - PlaceholderString = "Property Filter", // TODO Localize + PlaceholderString = Strings.PropertyFilterLabel, ControlSize = NSControlSize.Regular, }; AddSubview (propertyFilter); @@ -108,7 +108,7 @@ namespace Xamarin.PropertyEditing.Mac TextColor = NSColor.Black, Editable = false, Bezeled = false, - StringValue = "Arrange By:" + StringValue = Strings.ArrangeByLabel, }; propertyArrangeMode = new NSComboBox (new CGRect (320, Frame.Height - 25, 153, 24)) { @@ -145,9 +145,8 @@ namespace Xamarin.PropertyEditing.Mac SelectionHighlightStyle = NSTableViewSelectionHighlightStyle.None, }; - // TODO: localize - NSTableColumn propertiesList = new NSTableColumn (PropertyListColId) { Title = "Property" }; - NSTableColumn propertyEditors = new NSTableColumn (PropertyEditorColId) { Title = "Value" }; + NSTableColumn propertiesList = new NSTableColumn (PropertyListColId) { Title = LocalizationResources.PropertyColumnTitle }; + NSTableColumn propertyEditors = new NSTableColumn (PropertyEditorColId) { Title = LocalizationResources.ValueColumnTitle }; propertiesList.Width = 200; propertyEditors.Width = 250; propertyTable.AddColumn (propertiesList); diff --git a/Xamarin.PropertyEditing.Mac/Resources/LocalizationResources.Designer.cs b/Xamarin.PropertyEditing.Mac/Resources/LocalizationResources.Designer.cs new file mode 100644 index 0000000..5ab0221 --- /dev/null +++ b/Xamarin.PropertyEditing.Mac/Resources/LocalizationResources.Designer.cs @@ -0,0 +1,122 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace Xamarin.PropertyEditing.Mac.Resources { + using System; + using System.Reflection; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class LocalizationResources { + + private static System.Resources.ResourceManager resourceMan; + + private static System.Globalization.CultureInfo resourceCulture; + + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal LocalizationResources() { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Resources.ResourceManager ResourceManager { + get { + if (object.Equals(null, resourceMan)) { + System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Xamarin.PropertyEditing.Mac.Resources.LocalizationResources", typeof(LocalizationResources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + internal static string PropertyFilterLabel { + get { + return ResourceManager.GetString("PropertyFilterLabel", resourceCulture); + } + } + + internal static string PropertyColumnTitle { + get { + return ResourceManager.GetString("PropertyColumnTitle", resourceCulture); + } + } + + internal static string ValueColumnTitle { + get { + return ResourceManager.GetString("ValueColumnTitle", resourceCulture); + } + } + + internal static string AccessibilityNumeric { + get { + return ResourceManager.GetString("AccessibilityNumeric", resourceCulture); + } + } + + internal static string AccessibilityBoolean { + get { + return ResourceManager.GetString("AccessibilityBoolean", resourceCulture); + } + } + + internal static string AccessibilityCombobox { + get { + return ResourceManager.GetString("AccessibilityCombobox", resourceCulture); + } + } + + internal static string AccessibilityString { + get { + return ResourceManager.GetString("AccessibilityString", resourceCulture); + } + } + + internal static string AccessibilityXEditor { + get { + return ResourceManager.GetString("AccessibilityXEditor", resourceCulture); + } + } + + internal static string AccessibilityYEditor { + get { + return ResourceManager.GetString("AccessibilityYEditor", resourceCulture); + } + } + + internal static string AccessibilityWidthEditor { + get { + return ResourceManager.GetString("AccessibilityWidthEditor", resourceCulture); + } + } + + internal static string AccessibilityHeightEditor { + get { + return ResourceManager.GetString("AccessibilityHeightEditor", resourceCulture); + } + } + + internal static string ArrangeByLabel { + get { + return ResourceManager.GetString("ArrangeByLabel", resourceCulture); + } + } + } +} diff --git a/Xamarin.PropertyEditing.Mac/Resources/LocalizationResources.resx b/Xamarin.PropertyEditing.Mac/Resources/LocalizationResources.resx new file mode 100644 index 0000000..8c40305 --- /dev/null +++ b/Xamarin.PropertyEditing.Mac/Resources/LocalizationResources.resx @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <data name="PropertyFilterLabel" xml:space="preserve"> + <value>Property Filter</value> + <comment>Property Filter placeholder text</comment> + </data> + <data name="PropertyColumnTitle" xml:space="preserve"> + <value>Property</value> + <comment>Title text for property column</comment> + </data> + <data name="ValueColumnTitle" xml:space="preserve"> + <value>Value</value> + <comment>Title text for value column</comment> + </data> + <data name="AccessibilityNumeric" xml:space="preserve"> + <value>{0} Numeric Editor</value> + <comment>Editor for Numeric Value</comment> + </data> + <data name="AccessibilityBoolean" xml:space="preserve"> + <value>{0} Boolean Editor</value> + <comment>Editor for Boolean Value</comment> + </data> + <data name="AccessibilityCombobox" xml:space="preserve"> + <value>{0} Combobox Editor</value> + <comment>Editor for Combobox Value</comment> + </data> + <data name="AccessibilityString" xml:space="preserve"> + <value>{0} String Editor</value> + <comment>Editor for String Value</comment> + </data> + <data name="AccessibilityXEditor" xml:space="preserve"> + <value>{0} X Editor</value> + <comment>Editor for X Value</comment> + </data> + <data name="AccessibilityYEditor" xml:space="preserve"> + <value>{0} Y Editor</value> + <comment>Editor for Y Value</comment> + </data> + <data name="AccessibilityWidthEditor" xml:space="preserve"> + <value>{0} Width Editor</value> + <comment>Editor for Width Value</comment> + </data> + <data name="AccessibilityHeightEditor" xml:space="preserve"> + <value>{0} Height Editor</value> + <comment>Editor for Height Value</comment> + </data> + <data name="ArrangeByLabel" xml:space="preserve"> + <value>Arrange By:</value> + </data> +</root> diff --git a/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj b/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj index 7c24483..117d679 100644 --- a/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj +++ b/Xamarin.PropertyEditing.Mac/Xamarin.PropertyEditing.Mac.csproj @@ -77,10 +77,14 @@ <Compile Include="Controls\SizeEditorControl.cs" />
<Compile Include="Controls\Custom\NumericSpinEditor.cs" />
<Compile Include="Controls\Custom\NumericTextField.cs" />
+ <Compile Include="Resources\LocalizationResources.Designer.cs">
+ <DependentUpon>LocalizationResources.resx</DependentUpon>
+ </Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="Controls\" />
<Folder Include="Controls\Custom\" />
+ <Folder Include="Resources\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Xamarin.PropertyEditing\Xamarin.PropertyEditing.csproj">
@@ -88,5 +92,15 @@ <Name>Xamarin.PropertyEditing</Name>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Resources\LocalizationResources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>LocalizationResources.Designer.cs</LastGenOutput>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" />
+ <Import Project="..\packages\netfx-System.StringResources.3.0.14\build\netfx-System.StringResources.targets" Condition="Exists('..\packages\netfx-System.StringResources.3.0.14\build\netfx-System.StringResources.targets')" />
</Project>
diff --git a/Xamarin.PropertyEditing.Mac/packages.config b/Xamarin.PropertyEditing.Mac/packages.config new file mode 100644 index 0000000..a5ad1d6 --- /dev/null +++ b/Xamarin.PropertyEditing.Mac/packages.config @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<packages> + <package id="netfx-System.StringResources" version="3.0.14" targetFramework="net452" /> +</packages>
\ No newline at end of file |