Internationalization and localization tools


Locale-Sensitive Python Method

str.rstrip([chars])

Internationalization (I18n) Method Overview

The rstrip function returns a string without the given characters at the end of the string. Defaults to space.

Click here for more information.

I18n Issues

Python 3: Python 3 has Unicode strings so this should work correctly.

Python 2: Python 2 defaults to ascii strings. Be sure to use u prefix to make Unicode strings u'unicode' that will be localized for UI display, and u'a' when defining the characters to strip.

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