Internationalization and localization tools


Locale-Sensitive Python Method

list.sort(*, key=None, reverse=False)

Internationalization (I18n) Method Overview

The sort method sorts the list using only a < comparison between items.

Click here for more information.

I18n Issues

In order to properly sort international strings, it is necessary to use locale.strxfrm on the strings so that they sort correctly with the < operator.

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