Feature #4519
show languages choices in native languages
Status: | New | Start date: | 02/09/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | Spent time: | - | |
Target version: | - | |||
Component: |
Description
The standard way to show a list of languages available in an app is to show each language's name in that language. For example, https://www.Facebook.com shows this at the bottom of the page: English (US), Deutsch, Français (France), Italiano, Português (Portugal), Shqip, Español, Türkçe, ?????, ????. Even better is to get the caps right for each language, which you can see at the bottom of https://www.debian.org/. That is easy to do by querying the Android system for the name of the language.
This code is all available in ChatSecure for the taking, so this should be easy to implement in Courier:
https://github.com/guardianproject/ChatSecureAndroid/blob/master/src/info/guardianproject/util/Languages.java
This code also automatically generates the list of supported languages based on which languages are actually included in the APK, so you don't have to manually maintain any lists in the code.
One thing to check: some of the Courier stuff seems to mix up Simplified Chinese (zh_CN
) and Traditional Chinese (zh_TW
). I imagine that the Courier is aimed at China (zh_CN) rather than Taiwan (@zh_TW), but the app description page https://guardianproject.info/apps/courier/ uses @zh_TW
here: "Chinese (???)"
History
#1 Updated by ocdavid almost 3 years ago
Hans, are you looking at the right code branch? I have Courier 1.0.9 on my Nexus 7 and the language list IS in native language -- both on the startup screen and the preferences screen.
#2 Updated by hans almost 3 years ago
I'm still using v0.1.9 from Google Play, I haven't tried yet the latest in git. This report was mostly prompted by seeing the zh_TW text for Chinese on this page:
https://guardianproject.info/apps/courier
#3 Updated by hans almost 3 years ago
So I checked my dev build from my pull request, it does indeed have native language and caps. One thing I did notice is that Chinese is listed as ??, where the convention is to also include whether it is Traditional or Simplified. Here's how Debian differentiates:
- zh_CN: ??(?)
- zh_HK: ??(HK)
- zh_TW: ??(?)
And facebook:
- ??(??) - Traditional Chinese (Taiwan)
- ??(??) - Simplified Chinese (China)
- ??(??) - Traditional Chinese (Hong Kong)
#4 Updated by hans almost 3 years ago
wow, I guess redmine sucks at language encodings :-(
#5 Updated by hans almost 3 years ago
Also, I just noticed for Turkish, it says "Türk" where it should be something like "Türkce" but with the C with the squiggle at the bottom. In Courier, the names of the languages are hard-coded in app/res/values/strings_notranslate.xml
, where instead you can get the names of the languages from Android itself (except on older devices that don't support that language, like Tibetan). That Languages.java
file above has code to do that. That's how its handled in ChatSecure now.