How to localize system buttons into the app? - ios

My app uses custom localization for interactive language changing. The solution can be found here.
The problem is that the default view controllers (like AVPlayerViewController, SFSafariViewController etc.) localize the buttons ('Done', 'Cancel' etc.) based on the device language.
I tried adding to localization files the custom localization for 'Done' string but it doesn't work.
I do not want to have my app localized in German and SFSafariViewController localized in English (device language).
If you have met the problem like this one please give me your solution.
Thanks

Related

Sign in with Apple Custom button

I am using Sign in with apple in my iOS application. I want to localise the language of the button title according to locale. It's working for the languages which are supported by apple, but is it possible to localise the button title when the locale language is a non-apple supported language.
eg: Lithuanian language, it's not supported by apple. While using this language, the system language will be english.
I just read about the custom Apple sign in button option, is this kind of localisation is possible in custom button ? or any other way to tackle this!!
Please go with custom button, It will surely help.
You can customised custom button in any manner.

is it possible to change the LaunchScreen Storyboard according to the country/region or default language of device?

i am developing an iOS app in which i want to show the LaunchScreen/SplashScreen according to the user's desired region or the default language of device amongst the other LaunchScreen stroyboards that i have made, i searched a lot but nothing much helped me so is this possible?
Thanks in advance!!
Who say It's not possible
Select project and add localization as below image
Add any language
Select desired storyboards
And here you can see storyboard for different languages.
---------------------------------- Test your localization --------------------
Edit your target scheme
Change Application language as below images and then run your app
Unfortunately this isn't something you can do.
According to Apple's documentation on Launch Screens, the launch screen should not contain any branding or text, so therefore can't be localised:
Avoid including text on your launch screen. Because launch screens are static, any displayed text won’t be localized.
If you want some localised text, you will have to present a custom view controller as your initial view controller as that will be localisable as any other view controller.
Yes, it is possible. See here
An iOS application should be internationalized and have a
language.lproj folder for each language it supports. In addition to
providing localized versions of your application’s custom resources,
you can also localize your launch images by placing files with the
same name in your language-specific project directories.
It's not possible.But you can mimic this scenario what just ankit said.
Keep the launch screen blank and didFinishLaunchingWithOptions function create a view controller with region specific content.
Below thread might help you.This was basically to add animation and your's quest was region specific but logic is same though. :)
how-to-add-animation-to-launch-screen-in-ios-9-3-using-objective-c

how to create an IOS app with two languages , English and Arabic?

I've created an application in IOS using Xcode, the application is in English only and I want it to be in both English and Arabic . How can I use a UIButton on the top of the home page that changes the language to either English or Arabic ? take in considerations that the application has more than 10 ViewControllers.
PS: I don't want to change the Setting of the Mobile , I want to change the app language only.
Thank you..

How to localize iOS 8 Today Widget?

I am trying to localize my iOS 8 Today center widget.
I have a storyboard specifically for the widget and hit the localize button and selected Spanish. The same way I localized the normal part of the app. As you can see here:
The files have the following settings with Target Membership set to my extension:
No matter what I try (using .strings or individual .storyboards for each language or even setting the NSLocalizedStrings through code), I cannot get the language to show up correctly localized in the notification center widget. Everything works as expected in the regular app. Anyone have any experience or thoughts? Thanks!
For those experiencing the same problem, I had to delete the storyboard and rebuild a new one. Localizing this seemed to work.

IOS keyboard different language than IOS language

Currently I'm working on a Phonegap project which is in Dutch (dit not define a language in the App yet), also the OS is in Dutch.
Now my problem. When I open the keyboard or the camera I see a Done, Prev, Next button in English. Which should be in Dutch.
I have read multiple posts about the CFBundleAllowMixedLocalizations var, but don't know how to add this property in the info tab of my project. And will this solve my issue?
Also I have read that you can add a Language file, but I just want to have the IOS language inside this buttons. Any way to do this?

Resources