ios - Localization for a very simple app.. How to connect a button? -


i have simple app contains pickerview, uilocalnotification, uialertview , less 8 views. want is:

i have main view contains 2 buttons 1 says english , other says french.

what in mind is:

when user hits english it'll take him project have right now,

however, when user hits french it'll take him duplicated views i'd , manually change , translate it's labels french.

** question ** how translate pickerview, localnotification , alertview? , how connect french button these translations?

from i've googled , read here in can strings out , list them localizable.strings still don't know how make french button ask these strings? also, there easier , simpler way? idea?

thanks,

kindly try doing localization

http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial

for buttons use

 [self.yourbutton settitle:nslocalizedstring(@"your_key", @"comment") forstate:uicontrolstatenormal]; 

do not duplicate views , view controller sake of localization, considering both languages have same layout , thing change language. add english strings , french strings project , use nslocalizedstring these values.

note:nslocalizedstring works device language if want change app's language manually try this. have used amlocalizedstring in many of projects , work fine.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -