dnet
dnet

Reputation: 1429

How to declare the fallback language on Android for TalkBack?

I have an Android app that currently only has a fallback language, so all strings are in res/values/strings.xml and are in English. This works fine with TalkBack while the OS is also set to English. However, as soon as I change the OS language to anything other than English, TalkBack starts to speak those English words using the pronunciation of the OS language, which is weird and hard to understand.

How can I declare to the Android OS what the language of my fallback resources is so that TalkBack can choose the correct pronunciation to use?

Upvotes: 1

Views: 664

Answers (3)

Bram
Bram

Reputation: 120

Unfortunately, as far as I know Talkback doesn't support auto language switching. Google TTS seems to do some auto switching based on non-latin characters these days, but for latin languages it just doesn't do anything except keep the phone language. So, I'm afraid there's nothing you can do to facilitate this.

Upvotes: 2

木大白易
木大白易

Reputation: 692

According to the official doc:

https://developer.android.com/training/basics/supporting-devices/languages https://developer.android.com/guide/topics/resources/providing-resources#AlternativeResources

You can create different values-xx folder to support different languages!

Hope this can help you!

Upvotes: 0

Bruk
Bruk

Reputation: 149

Create a strings.xml variation for english and leave it like this

<resources ...>
</resources>

Upvotes: 0

Related Questions