Internationalization and localization tools


Locale-Sensitive Python Method

to_eng_string(context=None)

Internationalization (I18n) Method Overview

The to_eng_string function returns the number as a string in engineering notation if an exponent is needed.

Click here for more information.

I18n Issues

The to_eng_string function is not locale aware so will use . decimal separator. There is no localized equivalent so you may have write your own.

Please see Decimal class documentation for more information.

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