Closed defagos closed 7 years ago
This is an iOS bug. If printing:
(lldb) po [[NSBundle bundleWithIdentifier:@"com.apple.CFNetwork"] localizedStringForKey:@"bad gateway" value:nil table:nil]
with LLDB, the command namely returns passerelle incorrecte when run on a device using French as main language.
We should create an Apple bug report and fix the issue in the meantime.
I filed an Apple bug report (32731428). A copy of the report is publicly available: http://openradar.appspot.com/radar?id=5498641225613312.
Fixed in commit 924c7194d6089ad8dc42f4d5cdb165706bd92405. This fix is a workaround and will be removed when possible (probably in a few years 😉 ).
There is a TODO in a code to remove the workaround when possible. In the meantime, I'll consider this issue is fixed on our side.
Sadly, messages returned from
+[NSHTTPURLResponse localizedStringForStatusCode:]
are not localized. We should provide a set of custom localizations instead.