Re: Date Formatter relative date formatting
Re: Date Formatter relative date formatting
- Subject: Re: Date Formatter relative date formatting
- From: João Varela <email@hidden>
- Date: Fri, 28 Oct 2016 19:46:13 +0100
As a native Portuguese speaker, I can tell you that it is NOT normal to capitalize “Hoje” at the end or in the middle of a sentence. The same is true for “today" in English. Thus, I think these variations of capitalisation are bugs. A similar bug was true when the days of the week were not capitalised in pt_PT, but they should. Apple fixed that bug, but in the meantime the governments of Portugal and Brazil tried to come together concerning their “spelling differences” and then decided that the days of week should always be spelled in low case, even in “pt_Pt”. So there you go! A fixed bug became a bug again.
>
> On Oct 28, 2016, at 03:05:06, Daniel Phillips <email@hidden <mailto:email@hidden>> wrote:
>>
>> When using NSDateFormatter for relative date formatting, I am getting the localised word for today capitalised in some locales not not all. Is this expected behaviour? I’ve tried to research this and it seems the word today shouldn’t be capitalised (in English at least...) unless it’s used in a title, if true, then is this a bug in NSDateFormatter?
>
> I seriously doubt that the team used capitalized letters willy nilly when entering these terms. I'm sure they researched how these terms are used when they appear as a standalone relative date, not used in a sentence. If it bugs you, just run it through lowercaseString before you put it into your "Free until" string, although that would also convert AM/PM to lower if it's included, depending on the user's prefs. Personally, it doesn't bother me that the word "Today" gets the same treatment when used that way as do the names of the days of the week. Think of it as the virtual placeholder name for the referenced day.
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden