Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
choefele committed Feb 27, 2014
1 parent 8cbe426 commit d4e0273
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,32 @@ TEDLocalization

## How to use

In your storyboard or XIB, add localization keys to your views:

<p align="center" >
<img src="storyboard.png" alt="Storyboard" title="Storyboard">
</p>

The localization keys map to the entries you added in your `Localizable.strings` file:

```
"NAV_Title" = "Localized Title";
"SCREEN_Label" = "Localized Label";
"SCREEN_TextField" = "Localized Text Field";
"SCREEN_Button" = "Localized Button";
```

When everything is set up, you can call `TEDLocalization` to localize the views:

```
- (void)viewDidLoad
{
[super viewDidLoad];
[TEDLocalization localize:self];
}
```

<p align="center" >
<img src="storyboard_localized.png" alt="Localized Storyboard" title="Localized Storyboard">
</p>

0 comments on commit d4e0273

Please sign in to comment.