Internationalization and localization tools


Locale-Sensitive Python Method

format(format, val, grouping=False, monetary=False)

Internationalization (I18n) Method Overview

The format function and str method formats numbers and dates from placeholders in the string.

Click here for more information on the base function.

Click here for more information on the locale method.

I18n Issues

The base format function and str method are not locale aware. You can use the format method defined in the localemodule for user facing strings but that is deprecated. It is best to use format_string.

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