Internationalization and localization tools


Locale-Sensitive Objective-C Method

Foundation NSDate

NSDate dateWithCalendarFormat:timeZone:

Internationalization (I18n) Method Overview

Click here for additional Apple Developer Documentation details.

I18n Issues

This method converts the receiver to an NSCalendarDate object (deprecated) with a given format string and time zone. Also, passing nil format causes YYYY-MM-DD format to be used, which is not locale sensitive.

Resolution: use NSDateFormatter instead.

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