def amount_to_text(nbr, lang='fr', currency='euro'):
 if (not _translate_funcs.has_key(lang)):
  print ("WARNING: no translation function found for lang: '%s'" % (lang,))
  lang = 'fr'
 return _translate_funcs[lang](abs(nbr), currency)

def amount_to_text ( nbr , lang = 'fr' , currency = 'euro' ) : if ( not _translate_funcs . has_key ( lang ) ) : print ( "WARNING: no translation function found for lang: '%s'" % ( lang , ) ) lang = 'fr' return _translate_funcs [ lang ] ( abs ( nbr ) , currency )
converts an integer to its textual representation .