• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AM/PM letter UNICODE issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AM/PM letter UNICODE issues


  • Subject: Re: AM/PM letter UNICODE issues
  • From: Aki Inoue <email@hidden>
  • Date: Mon, 18 Oct 2010 14:12:18 -0700

Alex,

Uli is giving very helpful recommendations here.

The leave-the-first-character logic doesn't work for Korean and Japanese, either.

They happen to spell AM/PM like MA/MP as Quincey warned.

If you have specific target locales in mind, I recommend providing a set of formatting configurations within your app.

Aki

On 18.10.2010, at 13:27, Uli Kusterer wrote:

> On 18.10.2010, at 21:08, Alex Kac wrote:
>> That all said, everything everyone said is true here about this not being a one-size fits all solution. Its not meant to be. That's the one reason I tend not to post here much - I feel like sometimes I have to give everyone a full design doc along my question otherwise I spend the next 20 posts trying to explain my purpose. But in the end I do get what I need and I thank everyone for that.
>
> Still, I urge you to then build your strings manually. Make a struct tm from your date and create the actual time stamp from that, with *your own* AM/PM suffixes. Because "System Preferences" -> "Language & Text" -> "Formats" -> "Times" -> "Customize..." lets users change the complete date format, including the AM/PM suffix, order of components etc. You have no guarantee that the default strings will be the same on your system.
>
> Moreover, System Preferences lets you set date, time and number formats separately. Someone can be living in Bulgaria, run under US English-Language because he's a developer and can't wait for a localization pass to run their app that's developed in English, but have their number formats set to their native Swiss German number format (which is noticeably different from the Federal Republic's German). If you want to do your own date display, go to a lower level.
>
> Of course, you said you're on iOS, and I'm not sure where iOS gets its date settings from, so that may be a less pathological case, but honestly, you're asking for trouble.
>
> But as you said, I don't expect you to justify yourself. It's your program. I just think you (and anyone finding this thread in the archives via Google) should have all the facts.
>
> Cheers,
> -- Uli Kusterer
> "The Witnesses of TeachText are everywhere..."
> http://www.zathras.de
>
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >AM/PM letter UNICODE issues (From: Alex Kac <email@hidden>)
 >Re: AM/PM letter UNICODE issues (From: Conrad Shultz <email@hidden>)
 >Re: AM/PM letter UNICODE issues (From: Alex Kac <email@hidden>)
 >Re: AM/PM letter UNICODE issues (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: How to Distinguish Between Two TableViews
  • Next by Date: Re: NSDictionary allValues not mutable
  • Previous by thread: Re: AM/PM letter UNICODE issues
  • Next by thread: Re: AM/PM letter UNICODE issues
  • Index(es):
    • Date
    • Thread