From d4e0273dd22cf04a265d696e0e516bb21b99f632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20H=C3=B6fele?= Date: Thu, 27 Feb 2014 11:12:30 +0100 Subject: [PATCH] Update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 686c476..475547b 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,32 @@ TEDLocalization ## How to use +In your storyboard or XIB, add localization keys to your views: +

+ Storyboard +

+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]; +} +``` + +

+ Localized Storyboard +