Internationalization and localization tools


Locale-Sensitive Python Method

str(object, encoding=encoding, errors=errors)

locale.str(float)

Internationalization (I18n) Method Overview

The str function turns an object, including numbers and dates into a string.

Click here for more information on the base function.

Click here for more information on the locale method.

I18n Issues

The base str function is not locale aware so will format numbers with decimal and dates with y-m-d format. You must use the str function defined in the locale module for locale-aware user facing strings. The default encoding is UTF-8.

Globalyzer will detect this method and report it as an I18n issue. If you have determined that the call is being handled correctly, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.

Locale-Sensitive Python Methods

Lingoport internationalization and localization services and software