The formatter in this case should probably query ICU4C’s function 
uplrules_select (and other associated functions). On Darwin energy, length and 
mass formatters all funnel to one unit formatter that can abstractly handle 
each of those cases (which might not be a bad idea to have in the swift version 
too.

> On Apr 18, 2016, at 1:56 AM, Vojtěch Šťavík via swift-corelibs-dev 
> <swift-corelibs-dev@swift.org> wrote:
> 
> Actually, I have a question. What is the best way to get localized names for 
> units? It seems Mauricio has the same question at 
> https://github.com/apple/swift-corelibs-foundation/pull/320 
> <https://github.com/apple/swift-corelibs-foundation/pull/320> .
> 
> Subject: Re: [swift-corelibs-dev] NSEnergyFormatter
> From: anthony.par...@apple.com
> Date: Fri, 15 Apr 2016 10:07:18 -0700
> CC: swift-corelibs-dev@swift.org
> To: sta...@outlook.com
> 
> We certainly appreciate help on this. Let us know if you have any questions.
> 
> - Tony
> 
> On Apr 15, 2016, at 7:24 AM, Vojtěch Šťavík via swift-corelibs-dev 
> <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote:
> 
> Hey guys,
> 
> I'd like to help you with the project. I was looking for something simple to 
> start with and I'd choose NSEnergyFormatter. It seems to be pretty 
> straightforward. Is it OK when I start working on it or you have some other 
> plan for formatters?
> 
> Vojta
> @vojtastavik
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev 
> <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev>
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev@swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to