Opened 7 years ago

Last modified 12 days ago

#1966 assigned defect

Need to handle non-ISO-639-1 language codes

Reported by: nickm Owned by: n8fr8
Priority: Medium Milestone:
Component: Applications/Orbot Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I hear from Runa that orbot can't handle language codes of multiple characters. This is (obviously) a problem for the billion people who read zh_CN, but it's also a problem for all the people who speak languages that have codes in ISO 639-2 but not ISO 639-1, like Hmong or Berber or Madurese.

Child Tickets

Change History (3)

comment:1 Changed 7 years ago by runa

Currently, we name the directory "values-zh" instead of "value-zh_CN" when converting translations for Orbot. This will create problems when we get translations for languages with codes such as zh_HK, pt_BR and es_AR. Is there an easy way to fix this?

comment:2 Changed 7 years ago by n8fr8

Status: newassigned

Based on this post, it is possible: http://ykyuen.wordpress.com/2009/12/16/android-localization/

You specify the region component like so:

values-zh-rCN
values-zh-rTW
values-en-rGB

and so on.

also more official info here: http://developer.android.com/guide/topics/resources/localization.html

comment:3 Changed 12 days ago by teor

Severity: Normal

Set all open tickets without a severity to "Normal"

Note: See TracTickets for help on using tickets.