X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=data%2Ftemplates%2FApplication%2Fconfig%2Fsplash_generator%2Fsplash2.py;fp=data%2Ftemplates%2FApplication%2Fconfig%2Fsplash_generator%2Fsplash2.py;h=1521075b8d14de1e4e9c23ebb3eb1df0240426c8;hb=105d3f8dbb6e9bc5149d53a7d8f0851ad3d001c8;hp=476904df689c664f1a73e6d1c464aab613bce69d;hpb=8b633147171884f9c163e8b6a8c498b2f3676b14;p=tools%2Fsat.git diff --git a/data/templates/Application/config/splash_generator/splash2.py b/data/templates/Application/config/splash_generator/splash2.py index 476904d..1521075 100755 --- a/data/templates/Application/config/splash_generator/splash2.py +++ b/data/templates/Application/config/splash_generator/splash2.py @@ -6,7 +6,12 @@ import os, sys -__LANG__=os.getenv("LANG") + +try: + __LANG__ = os.environ["LANG"] # original locale +except: + __LANG__ = "en_US.utf8" #default + __FR__={ "This script requires the Image, ImageDraw and ImageFont libraries": "Ce script a besoin de Image, ImageDraw et ImageFont python librairies",