[swift-corelibs-dev] NSHTTPURLResponse.localizedStringForStatusCode()

Ian Partridge ipartridge at gmail.com
Thu Mar 17 14:52:38 CDT 2016


On 17 March 2016 at 19:31, Daniel Eggert <danieleggert at me.com> wrote:
> What code will be used to make then _localized_?

Good question - I wondered if Obj-C foundation translated them based
on the current locale, but it doesn't.   They seem to be fixed
strings.

By the way, some more strangeness I spotted in the output of:

for i in 1..<1000 {
    print("\(i) " + NSHTTPURLResponse.localizedStringForStatusCode(i))
}

on Obj-C Foundation.

600 returns the empty string!  Output is at
https://gist.github.com/ianpartridge/2d34e29d97b42c260931 - have a
look...

-- 
Ian Partridge


More information about the swift-corelibs-dev mailing list