We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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'
The text was updated successfully, but these errors were encountered:
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!
Sorry, something went wrong.
Probably you should rather write
new Locale("zh", "TW")
Yep! That's correct @MenoData. Thanks for posting the solution!
No branches or pull requests
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'
The text was updated successfully, but these errors were encountered: