Internationalization and localization tools


Locale-Sensitive Python Method

locale.strxfrm(string)

Internationalization (I18n) Method Overview

The strxfrm function transforms a string to one that can be used in locale-aware comparisons. For example, strxfrm(s1) < strxfrm(s2) is equivalent to strcoll(s1, s2) < 0.

Click here for more information.

I18n Issues

As long as the locale has been set correctly (see setLocale), this is the correct way to get a string that can be used in locale-aware comparison using operators.

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