When using location services, I get this message: ““YourApp” Would Like to Use Your Current Location”
Is there any way to change this to another language, even if the iOS language is set to English? (My app comes in one non-English language only, so it’s weird to have that English dialog pop up in my non-English app.)
If you are using CLLocationManager, you can set its purpose property to any text you like.
This text will be displayed in addition to and under the standard "AppName Would Like To Use Your Current Location" text.
I would be very surprised if you can do that!
This is a matter of user privacy and it should be stated in the language selected by the user not you (developer).
On stock OS iOS devices, the language of OS privacy warnings is under user control, not an app's control via any public API.
Related
I am using the chrome.identity API to authenticate users in my application. The problem is that the login popup always appears in English. There is an option at the bottom of that screen to change the language, but it would be much better if when calling the
chrome.identity.getAuthToken() method there was a parameter to force the language, but I haven't found this option in the documentation (https://developer.chrome.com/docs/extensions/reference/identity).
Is there any other alternative to force the language?
I also tried to change the browser language but the popup still shows in English.
I understand that the language of Message Box buttons is linked to the language of the Windows system. But this may not be the language of the end user. For instance, in a county like Switzerland having four official languages (German, French, Italian and Romansh), it is not unusual for a Windows system to be set up in English and not fit the user's needs. Adjusting the Windows Regional and Language options does not affect the language of Message Box buttons.
Is there any way to dynamically set an application to respect the System.Globalization.CultureInfo.CurrentCulture.LCID instead of the system language? I tried playing around with the parent form Localizable and Language settings with no success.
Any insight would be appreciated. Thanks!
I am developing a multi-language OSX app which also uses text-to-speech.
I am using mac's VoiceOver and Applescript to control it.
In the app, users can switch languages and VoiceOver has to read the text in the selected language.
The goal is to switch VoiceOver language without quitting my application.
I can't find a way in Cocoa or Applescript to find out what is the current language in VoiceOver and to actively specify what language to set.
This is what I have done so far.
In VoiceOver Utility there is a section called Activities that lets you setup some VoiceOver configurations, including the language.
So I created an English and a French activity.
Then I found this really helpful list of commands that you can use in Applescript to control VoiceOver: http://www.cbtbc.org/tools/asvo/voec.php
In this list the only commands that control VoiceOver activities are: "open activity chooser"
and "previous activity"
"previous activity" changes the language, but there's no way to know what activity you are currently on or to specify the name of the activity that you want to go to (English or French) when the user presses the language button.
So for example, if the user clicks on the English button twice, or switches the app language when the VoiceOver is off, the application might be showing English text while the VoiceOver might be set in French.
Anybody had experience with this?
Thank you so much for your help!
Is there a way to get a NSLocalizedString in its untranslated states, for example getting it from a NSTexfield/label or popup button as below:
_mylabel.stringValue
or
[_myPopupButton titleOfSelectedItem];
Obviously returns a translated string depending on the current OS language.
This is inconvenient if I want to know and use a statement comparing what I find at the time, whereas users can also translate or adjust to their liking the stringsfile.
Any suggestion or workaround?
Initially the problem was that I used "NSUserDefaults standardUserDefaults" to save what was on the buttons on a plist, so when I restart the app would have taken those descriptions initially were created using simple strings if the plist did not contain all the dictionary needed (to return into my button), as if app was open for the first time).
It's enough to localize everything, even when re-reading or create the "empty" settings, so it does not matter if the preferences are written in another language: my button now return what the app found on the plist created by "NSUserDefaults standardUserDefaults"!
(sorry for my poor English)
I am developing an application for Mac OS , i need to display a information popup in Mac, In Windows OS context, it should be similar to the one, which used to be displayed near by tray-icon,
More real example is, assuming any messenger application is running, and someone form your contact list became online/available,then Messenger App display a Animated Popup near by tray-icon area,
the same use-case i am having ,
While googling i came to know, either i can make use of NSAlert or Growl , any other application that i should think.
There is no default alternatives to the Windows popup message on the Mac, but the de facto standard for doing this is through Growl. NSAlert popup messages are usually used to display exactly those: alerts. They are often to large and cumbersome to display small amounts of information well without distracting or interrupting the user. Growl, on the other hand, works well for things like these, and is what you should use.