How to set the language of iPhone at the run time - iphone

I have Login view on which I want to provide drop-down for language selection. So is it possible to change the language of application at the run-time.

You need to set up your own Translation-Framework. So read out the selected language and present the actual language for the user.
Apple, won't give you something in this direction. It's only possible to use NSLocalizedString(#"Key", #"Description")

No ! What I do is using my own translation framework to support just that !

Related

How to translate the text in the flutter app into sign language?

I want to make an app that can change its language to sign language but I couldnt find any resources or packages that can help me change text to sign language
What do You mean when You write about "sign language"?
You can use this package: https://pub.dev/packages/localization and detect system language or manually choose language. How to set manually language? For example You can create dropdown with list of supported languages and switch langue every time, when You change app language on dropdown button.

How to add an unsupported interface language to my iPhone app?

I have an iPhone app with interface languages in Toki Pona and Dothraki, which do not have ISO 639-3 codes. According to the ISO 639-3 standard, you can use the range qaa-qtz to represent languages for local use, which I have done (Toki Pona = qtp, Dothraki = qdt), but still get the warning from XCode "Unrecognized Locale".
It seems like I might be able to extend the main bundle class, but looking over the documentation, nothing seems to relate to adding non-ISO languages. I'm also aware of the text "If necessary, you can use a language or locale code that is not known to the NSBundle class or Core Foundation bundle functions. For example, you could create your own language designators for a language that is not yet listed in the ISO conventions or available as a language in Xcode." at the end of https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
In any case, I mostly want to get rid of this warning. Any help would be greatly appreciated!
https://forums.swift.org/t/proposal-ns-locale-identifiers-etc-should-have-custom-types/9367/8
have a look at the above link.
Check if the languages are added as Localizations
I believe I have a solution however slightly complicated one. You would need to create a setting option within the app to use those made up languages and to load them manually from a file when a user sets them. For example, let's say your app consists of one label and the user sets the option to the made-up language you would call a method to set the language and the text on that label would update accordingly. I don't know whether this makes sense to you?? Basically, if the user uses the made-up languages that would override any system localization they have. It is doable it would just take time to implement it.

adding languages for localization to iPhone - is that possible?

Compared to Android iPhone does not support many languages, even though the MAC seems to do so ( simply because I learned that the possibility of adding these languages in xCode is for MAC Apps and not for iOS).
Now I added the Localizable.strings file for languages that are not available in the language list of the iPhone settings for languages.
Is there a way using the standard approach like:
[onOffSC setTitle:NSLocalizedString(#"On","Off") forSegmentAtIndex:0];
if I just put a selection menu in my app ?
Otherwise I would have to add a special logic - lets say MYNSLocalizedString, checking first if the user wants to select a non supported language, getting this some other way (probably putting these translations into a NSDictionary) and otherwise calling the standard NSLocalizedString.
I guess I would have to put a language selection menu in the app anyways - but can the calls to NSLocalizedString be used or do I have to add a meta-method MYNSLocalizedString like mentioned?
Or is there any other good solution for this ?
Many thanks!
I think better would be to use the language which is set in Settings, instead of user selecting from menu. Refer to this tutorial might help you understand How Localization is done.
http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial
For localization of your iPhone app:
Use the approach described here...
http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial

Speech to text in multiple languages

i have success fully implemented the ispeech API see http://www.ispeech.org/developers for my app to convert speech to text(see the demo app in the sdk http://www.ispeech.org/instructions/sampleprojects/iphone/IntegrationGuide.html). But unfortunately it takes what we speak as only in english and translte it to text.
what i need.
There is a "speak" button that listens what the user spokes and convert it to text(that works fine for english). Also another button that allows the user to select a language as seen in this appscreenshot( http://screencast.com/t/7vBFH565qD). So when the user speaks in the selected language it should get converted to the same language. In my case whatever we speak it takes the input only in english..
Thanks all..
iSpeech also supports more languages, you can find the list with their corresponding locale identifiers here:
http://www.ispeech.org/api
To set a new language you have the "ISpeechSetLocale" method
[_iSpeech ISpeechSetLocale:#"fr-FR"];
http://www.ispeech.org/developer/iframe?src=/iphonesdkdoc/
Why cant you use the NUANCE API which supports speech to text in multiple languages. see the following link and register there to use their iOS sdk .
http://dragonmobile.nuancemobiledeveloper.com/public/index.php?task=supportedLanguages

How to change all the strings in an iphone application with respective selected language in settings?

I need help from you, I need to display all the text, labels , strings and what ever text is showing to user in the iphone application with respective selected language in settings of iphone.
for example user selects German or French in settings of iPhone language, then my application should provide or view the details in that language.
I need sample code for localization, Is there any simple way to follow the standard steps to translate the code to different languages in iphone sdk.
please healp me, I hope that I can get efficient solution on this from you.
Thank you,
Madan Mohan.
See here: http://www.icanlocalize.com/site/tutorials/iphone-applications-localization-guide/
I think the previous link gives a pretty good idea of how to do I18N on the iPhone, but if you feel you need more info, you can try this article http://blog.federicomestrone.com/2010/05/18/internationalise-your-iphone-apps-with-xcode/ which is just slightly more code-orientated.
The point though is always the same - you have to separate code from text resources and load all your text (strings) with the NSLocalizedString macro, or a variant thereof.