Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese not working #78

Closed
cc-lam opened this issue May 30, 2014 · 3 comments
Closed

Chinese not working #78

cc-lam opened this issue May 30, 2014 · 3 comments

Comments

@cc-lam
Copy link

cc-lam commented May 30, 2014

Using prettyTime version 3.2.5 on Android Studio.

Log.d(TAG, (new PrettyTime(new Locale("ZH_TW"))).format(new Date()));
and
Log.d(TAG, (new PrettyTime(new Locale("ZH_TW"))).format(new Date()));

do not display in Chinese (my system displays French instead);

PrettyTime dependency is added to the project in the build.gradle file:
compile 'org.ocpsoft.prettytime:prettytime:3.2.5.Final@jar'

@lincolnthree
Copy link
Member

Sorry you're having trouble.

Strange. This resource file does exist - https://github.com/ocpsoft/prettytime/blob/master/core/src/main/java/org/ocpsoft/prettytime/i18n/Resources_zh_TW.java

Perhaps you could debug and find the root cause? I don't have an Android environment set up, so unfortunately I can't do it myself.

Thanks!

@MenoData
Copy link

Probably you should rather write

new Locale("zh", "TW")

@lincolnthree
Copy link
Member

Yep! That's correct @MenoData. Thanks for posting the solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants