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

English numbers in month view when locale changes #325

Closed
Lithium-HD opened this issue Mar 6, 2017 · 4 comments
Closed

English numbers in month view when locale changes #325

Lithium-HD opened this issue Mar 6, 2017 · 4 comments

Comments

@Lithium-HD
Copy link

Lithium-HD commented Mar 6, 2017

the problem is my app has two languages and when I set app's locale to non-English locale (like "fa" for Persian language), the numbers in calendar change. look at screen shots before and after changing the locale. how can I have the calendar in English locale only
I have set fontFamily for every textViews in layout files but didn't solve the problem.
screenshot_2017-03-06-12-50-14
screenshot_2017-03-06-12-50-33

@wdullaer
Copy link
Owner

wdullaer commented Mar 7, 2017

The picker tries to adapt to the locale of the device.
I'm amazed that the Month and Week labels do not change (they really should).

Someone actually made a fork of this library to support the Persian calendar system, maybe that is useful for you
#54

@Lithium-HD
Copy link
Author

thanks for your reply, I have already mixed your library with a PersianCalendar. the reason that the month and week labels are changed is that I have set every textView's font-Family to sans-serif. maybe that's why :) I also tried to change day numbers too but I couldn't do that. anyway I used a dirty way to get over this issue (I set the locale to "en" before opening the calendar, and set it back to what is was after dismissing it)
I am in a rush, maybe I find a better way for this later.

@wdullaer
Copy link
Owner

wdullaer commented Mar 7, 2017

Maybe I can make the locale an option (just like you can specify a TimeZone now).
I'll put that on the backlog and ping this issue when I get around to implementing it

@Lithium-HD
Copy link
Author

I'd be grateful. thanks for your support (y)

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

No branches or pull requests

2 participants