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

Change Language #37

Open
hugoeue opened this issue Apr 22, 2014 · 3 comments
Open

Change Language #37

hugoeue opened this issue Apr 22, 2014 · 3 comments

Comments

@hugoeue
Copy link

hugoeue commented Apr 22, 2014

how do i change the language of the calendar? now as it is the calendar picks que current language of the device but i want to force a diferente language specified by the user in settings... How can i accomplish this?

Ty for the great job so far, your help will be highly appreciated .

@k06a
Copy link
Owner

k06a commented Apr 22, 2014

I think you need fork repo and replace all [NSLocale currentLocale] with locale properties for example...

@hugoeue
Copy link
Author

hugoeue commented Apr 22, 2014

i replaced all [NSLocale currentLocale] for [[NSLocale alloc] initWithLocaleIdentifier:@"it_IT"] to text and it didn't work :(

Update:
if i do like this it works :)

self.dateFormatter.dateFormat = [NSDateFormatter dateFormatFromTemplate:@"d MMMM yyyy" options:0 locale:[NSLocale currentLocale]];
[self.dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"it_IT"]];

@k06a
Copy link
Owner

k06a commented Apr 22, 2014

It will be perfect to make it configurable via property. If you'll code this, please make a pull request :)

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

2 participants