Quote:
Originally Posted by paldo
Thank you Dany. I 've forgotten to mention that the language selection should come at first as the users are Swiss ( we speak different languages) and might start searching a word from french to english, or German to french or....
Thanks also to your remark that it is a navigation-based application.
Have you ever found a good tutorial explaining the developing of this kind of application (translator)? Any ready to use templates? Any wysiwyg ?
Thanks
|
you take a look at NSLocalizedString, we went this way in our last project, you can easily design the interface in the Interface Builder (if you want) and link all the labels to the code.
like
Code:
yourLabel.text = NSLocalizedString(@"hello", nil);
in the project folder you have a file called "Localizable.strings"
for each language you have a seperate file which contains the definition
English.lproj
Code:
//my english string
"hello" = "Hello World!";
German.lproj
Code:
//my german string
"hello" = "Hallo Welt!";
each string will be replace by the language which is selected on the device, if the device language is english it shows the english string, for german the german string. the easiest way to localize an app.
hope this helps
greets m4s
edit:
i forgot ... i would recommend for you also take a look at sqlite or core data for storing the data