Skip to content

Commit c050469

Browse files
authored
Added Norwegian localized strings for global iOS text. Overridable if the consumer wants to override (#228)
* Added Norwegian localized strings for that gets set if the consumer choses to use norwegian localization for the global ios text in their apps * Reset localized strings in the forms project
1 parent 43d15d5 commit c050469

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

src/DIPS.Xamarin.UI.iOS/DIPS.Xamarin.UI.iOS.csproj

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
<Reference Include="System.Core" />
3939
<Reference Include="Xamarin.iOS" />
4040
</ItemGroup>
41-
<ItemGroup>
42-
<Folder Include="Resources\" />
43-
</ItemGroup>
41+
<ItemGroup />
4442
<ItemGroup>
4543
<Compile Include="SlidableLayoutContentView.cs" />
4644
<Compile Include="InternalDatePickerRenderer.cs" />
@@ -62,5 +60,16 @@
6260
<Name>DIPS.Xamarin.UI</Name>
6361
</ProjectReference>
6462
</ItemGroup>
63+
<ItemGroup>
64+
<ImageAsset Include="Localizable.xcassets\AppIcons.appiconset\Contents.json">
65+
<Visible>false</Visible>
66+
</ImageAsset>
67+
</ItemGroup>
68+
<ItemGroup>
69+
<BundleResource Include="Resources\no.lproj\Localizable.strings" />
70+
</ItemGroup>
71+
<ItemGroup>
72+
<BundleResource Include="Resources\Base.lproj\Localizable.strings" />
73+
</ItemGroup>
6574
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
6675
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"Done"="Done";
2+
"Save" = "Save";
3+
"Delete" = "Delete";
4+
"Cancel" = "Cancel";
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"Done"="Ferdig";
2+
"Save" = "Lagre";
3+
"Delete" = "Slett";
4+
"Cancel" = "Avbryt";

src/Samples/DIPS.Xamarin.UI.Samples.iOS/Info.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@
3434
<string>DIPS Xamarin UI</string>
3535
<key>XSAppIconAssets</key>
3636
<string>Assets.xcassets/AppIcon.appiconset</string>
37+
<key>CFBundleLocalizations</key>
38+
<array>
39+
<string>no</string>
40+
<string>en</string>
41+
</array>
3742
</dict>
3843
</plist>

0 commit comments

Comments
 (0)