mvmike / min-cal-widget

Minimal calendar widget
BSD 3-Clause "New" or "Revised" License
89 stars 15 forks source link

Wrong monthes localization. #38

Closed 532910 closed 5 years ago

532910 commented 5 years ago

In linux there are two month properties in LC_TIME: mon and alt_mon. mon is the name of month in nominative case and alt_mon is in genitive case. So mon is for 'April 15' form while alt_mon is for stanalone month name like just 'April'.

I don't know how this called in android, but min-cal-widget uses mon but must use alt_mon.

You can't see the difference in english or español, but in russian it's significant.

Some link about

For proper android implementation see https://github.com/SimpleMobileTools/Simple-Calendar.

mvmike commented 5 years ago

First of all, thanks for reporting the issue!

Can't open the anzwix link, and in simple-calendar it looks that they're getting the month string in a similar way of the one used in mincal (see the actual line where they're getting the string here).

Could you please provide a couple of screenshots with the difference in russian so I can play around and see how to fix it?

532910 commented 5 years ago

IMG_20190315_194150

532910 commented 5 years ago

I've updated anzwix link, but it's not so good as I thought before (:

mvmike commented 5 years ago

Created a new 1.2.2 release with the fix :)

532910 commented 5 years ago

It's correct now. Thank you!