Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[XMLocalizationSample] Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
olegoid committed Oct 26, 2016
1 parent a96caef commit f6ec246
Showing 1 changed file with 43 additions and 7 deletions.
50 changes: 43 additions & 7 deletions XMLocalizationSample/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
This sample shows two methods for localization your Xamarin.Mac application:
XMLocalizationSample
==============

This sample shows two methods for localization your Xamarin.Mac application:
- .resx files
- Storyboard string files.

Due to bug https://bugzilla.xamarin.com/show_bug.cgi?id=45696, where resx file localization is not being handled
correctly during builds, custom MSBuild has been added to make things work. See CustomBuildActions.targets for details.

To add storyboard localization in Xcode:
- Open Main.storyboard in Xcode, select it in the Xcode project tree, then click "Localize" in the first tab of the
right inspector. See 1.png
- Then select the root project in the project tree, change the upper dropdown to point to the project. See 2.png
- Then enable Base localization. See 3.png
- Then add the specific languages in question. See 4.png
- Close Xcode and delete Main.storyboard from your project, as it now is copied into specific Resources/ folder.
- Open Main.storyboard in Xcode, select it in the Xcode project tree, then click "Localize" in the first tab of the right inspector.

<p align="center">
<img src="Docs/1.png">
</p>
- Then select the root project in the project tree, change the upper dropdown to point to the project.

<p align="center">
<img src="Docs/2.png">
</p>
- Then enable Base localization.

<p align="center">
<img src="Docs/3.png">
</p>
- Then add the specific languages in question.

<p align="center">
<img src="Docs/4.png">
</p>
- Close Xcode and delete Main.storyboard from your project, as it now is copied into specific Resources/ folder.

Build Requirements
------------------

OS X 10.11, Xcode 8.0 or later

Runtime
------------------
OS X 10.11

Copyright
---------

Released under the MIT license

Author
------

Chris Hamons

0 comments on commit f6ec246

Please sign in to comment.