Ignore:
Timestamp:
May 24, 2016, 12:50:01 PM (3 years ago)
Author:
jrpelegrina
Message:

Fix script to tooltip ex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyromaths/trunk/fuentes/src/pyromaths/ex/sixiemes/decimaux.py

    r1653 r1666  
    2424import random
    2525import os
     26import locale
    2627from pyromaths.outils import Affichage, Arithmetique
    2728#===============================================================================
     
    417418def EcrireNombreLettre():
    418419
    419     langue = os.getenv('LANG')
    420 
     420    langue = locale.getdefaultlocale()[0][0:2]
    421421    if langue == "fr" or langue == "":
    422422        lang = ""
    423423    else:
    424         lang = "_" + langue[0:2]
     424        lang = "_" + langue
    425425        try:
    426426            eval('EcritNombreDecimal'+lang+'(1)')
Note: See TracChangeset for help on using the changeset viewer.