Locale-Sensitive Objective-C Method
Foundation NSNumberFormatter
NSNumberFormatter setLocalizesFormat
Internationalization (I18n) Method Overview
This method is used to disable localized formatting.
Click here
for additional Apple Developer Documentation details.
I18n Issues
Sometimes people set this initially to lock out locale sensitive behavior.
This method is for use with formatters using NSNumberFormatterBehavior10_0 behavior.
While the currency-symbol part of this feature may be useful in certain types of applications,
possibly you would tie a particular application to a particular currency (that is, "hard-code" the currency
symbol
and separators instead of having them dynamically change based on the user's configuration). Resolution:
Analyze desired behavior.
Generally one needs to pass in locale , encoding or language to ensure
that any culture-dependent conversion is done properly.
If you determine that the call is i18n-safe, you can use Globalyzer's
Ignore Comment functionality to ensure that it isn't
picked up in a subsequent scan.
For information about Objective-C Internationalization, click here.
|