Is there a way to use Spanish localization instead of English in ARCoachingOverlayView?
let overlay = ARCoachingOverlayView()
overlay.delegate = self // ARCoachingOverlayViewDelegate?
overlay.activatesAutomatically = false
overlay.session = self.arSession
overlay.goal = .anyPlane
self.addSubview(overlay)
P.S. I need Spanish localisation in iOS app. I know that there's working language localization when we use Apple Measure iOS app, or ARQuickLook/ARCoachingOverlayView app in Safari.
ARCoachingoverlayview localization can be done by localizing the storyboard
when you add the localizing from the build menu it gets Localised text auto.
Related
Say I have an app that has one label that says "hello". I publish it "worldwide" on the app store.
If someone purchases it in China, and opens it, does the app store auto translate it to "Ni hao".
If not, how do I combat this issue? Do I have to make an app for each country? Is there a way to auto translate in Xcode/coding?
Application do not translate automatically.
You need to use localization.
You set up Localizable.strings (China) and one for English version
English file:
"hello" = "hello"
China file:
"hello" = "Ni hao"
Inside your application you need to use NSLocalizedString
static let hello = NSLocalizedString("hello", comment: "Tab Bar title, and navigation bar title for Profile")
label.test = hello
Now will translate depends of device language setup
more examples https://www.raywenderlich.com/250-internationalizing-your-ios-app-getting-started
I have developed the app having 2 language(English & Arabic). I have given screen when you can switch the language when you switch language you will need to restart the app and work proper.
But the problem is no i wants to display default language as arabic. I have set "Localization native development region (CFBundleDevelopmentRegion)" as "ar" its not works properly display weired somehow.
I event try to set AppleLanguages in NSUSerDefault but its not display my storyboard as arabic.
Thanks in Advance!
How i can change my language within my app ،knowing that my application include xib and also NSlocalizedstring inside my nib.
For localization on iPhone, you must add specific .strings files to your project for each language you want to support.
Here is a great article about localization for iPhone.
i need to localize an existing iphone app. I've added strings files for German and English, which work well.
BUT !
I've also opened the Info-Pane of the XIB Files, klicked "add Localization", chose the languages (German and Englisch). In the View of all Ressources in XCode is see under the XIB Files now "German" and "Englisch".
I can translate all design elements in Interface Builder for German and Englisch. If i start the App on the Device or in Simulator there is always the german language displayed, also if i change the device language to "English". I also cleared all targets and deleted the app on the device and the simulator before testing.
What am i doing wrong ??
Any help is much apprechiated !
Greetings
MadMaxApp
ok ... looks like XCode has still a bug. The localization should not be named "German" and "Englisch". You need to name it "de" and "en". After clearning all targets and running in Simulator the right language xib is displayed.
In my app I use the ABPeoplePickerNavigationController to present an address book to the user so they can select a contact from their contacts.
I want my app to support multiple localizations (English, French) and I was expecting the ABPeoplePickerNavigationController to display the correct localised strings when I changed the phone's locale. However, this does not happen - no matter what language I change the iPhone to, the ABPeoplePickerNavigationController always displays English strings. This is strange as the Contacts application on the iPhone does change its text depending on the locale.
Does anyone know how to instruct the ABPeoplePickerNavigationController to display the correct text for the current locale?
Is your app already localized or are you just planning to add localization later? AFAIK, the built-in controls only display localized texts in those languages that your app supports.
fileName : InfoPlist.strings
view -> Utilities -> show file inspector
-> Localization "+" button click >> add language