This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XMLocalizationSample] Update readme
- Loading branch information
Showing
1 changed file
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |