pdf file in UIWebView : change the language of the page number infobox - ios

When opening a pdf in a UIWebview, a little infobox appears on the top-left corner of the screen.
I would like the language of this infobox to be the same as the app language.
For the moment I only have it in french "1 sur 2", whereas I would need it in dutch "1 op 2"
Is it possible to force a language for this ?
I've been changing the app language of the nsuserdefaults but it doesn't seem to impact this.
any help would be appreciated, thanks !

it seems this infobox uses the language of the device.
when changing the language in the NSUserdefaults, the app needs to be restarted before the uiwebview takes this into account.

Related

IOS: VoiceOver changes to English in WebView

I'm adding VoiceOver support to an app which at the moment only supports Norwegian. For most of the app VoiceOver correctly reads the text as Norwegian.
However, one page contains a webview which shows the terms and conditions (downloaded from a URL). For this page VoiceOver switches to English voice, even though this text is still in Norwegian.
I've tried to set accessibilityLanguage to "nb-NO" for both the webview and the containing viewcontroller but the text is still read as English. Do anyone know how I can make the webview be read in Norwegian?
Consider adopting the lang HTML attribute. This will trigger VoiceOver to generate speech in the appropriate language. Hat tip to Adrian Roselli for the suggestion.
Trying adding HTML lang="" attribute in your page. you can refer below url http://www.iana.org/assignments/language-subtag-registry for more specific value for lang attribute.
Hope this will help

xamarin native ios change language from language page

hi I have a page that has two buttons one for English and another for Arabic, it will be the first page of the app so the user can choose any language he want.
how can i do that from A to Z because i didn't find any tutorial ?

Swift Bar button item set to system item "save" ignores app language

In my app I have a bar button item in my top navigation bar. I have set the button system item to "Save" which will display the button as Save
But even if my phone has a different language set the button still shows up with the text "Save"- english when I start the app
The language that various UI components appear in your app is based on two things:
The device's list of languages under the "Preferred Language Order" section of the "Language & Region" page of the Settings app.
The languages supported by your app as defined by the localization bundles your app provides.
An app only supports a single language by default. To support additional languages you must add an additional bundle for each language and then provide appropriate localization resources such as strings files and localized storyboards, etc.
Based on your app's supported languages and the devices settings, UI components will appear in a single, chosen language.
Lets say your app supports English, Spanish, and Chinese.
Now lets say a user's device has the languages German and English, in that order, listed on the Language & Region screen.
Your app will appear in English to this user. Based on your question, you seem to expect the Save button to appear in German. But if your app doesn't support German, why have the Save button appear in German and the rest of the app appear in English? That would be confusing.
So now go back to the simple case. You have a basic app and you haven't done any localization yet. Your app only has the one bundle - the default language for your app. Lets say that is English. Since your app only supports English, it would be really confusing for the Save button to be in any other language while the rest of the app is in English. So no matter what language the user has set for their device, the Save button will be in the app's only language, English in this example.

iOS - Internationalisation and Localization

Is it possible to change App language on Button tap ? I'm developing an App which should support multi languages and inside the App, there is option to choose the language (in the form of button). By default, App placeholder text will be in English, once the user choose some other language, placeholder text should change as per the language selected. I have gone through few examples in Internet, i couldn't find anything close to my requirement. I have seen example from appcoda and ray, but switching the language within the app is not provided. can somebody tell me how to achieve this ?
Thanks,
Pradeep

How to change default language of UIActionSheet buttons?

In an iOS5 app, I have a UITextView with data detectors for phone numbers and so on. When I tap the underlined link / detected data, everything works as expected, but when I tap that link a little longer, an UIActionSheet appears (Call xyz, Add to Contacts and so on). This is fine as well except the language of those buttons English but it should be German. I already set the default language of the app to German in xcode and also deleted the English localization but the button titles remain as they are. Is it possible to change the language somehow?
Found the answer myself. Originally, I thought I need to have the English localization because when I deleted the (only one) localization, the storyboard file was deleted as well. The solution now was very simple. I added the German localization (the storyboard is copied) and then deleted the English one. This way the action sheet buttons are German now and the storyboard file remains in the project - problem solved.
Sorry for being too stupid to try this before :-/

Resources