Internationalization and localization tools


Locale-Sensitive Objective-C Method

NSCalendar setLocale
NSDateFormatter setLocale
NSNumberFormatter setLocale

Internationalization (I18n) Method Overview

This method is used to set the formatting locale.

For NSCalendar setLocale, click here for additional Apple Developer Documentation details.
For NSDateFormatter setLocale, click here for additional Apple Developer Documentation details.
For NSNumberFormatter setLocal, click here for additional Apple Developer Documentation details.

I18n Issues

Sometimes people set this initially to lock out locale sensitive formatting - hardcoding as English, nil/Nil, or System Locale.

Resolution: Make sure you are not setting to nil/Nil, hardcoding the English locale, or using Default/System Locale inappropriately.

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.

 

Lingoport internationalization and localization services and software