Salome HOME
sauve du 20/12
[tools/eficas.git] / ts / translator.py
index 9ebca3a50437d0169fe5c762d97870b460223257..77793423a8979420ba4140854da6c351d9265be5 100755 (executable)
@@ -6,10 +6,12 @@ from Noyau import *
 from dicoparser import *
 
 def normalize( theTranslation ):
-       if '_' in theTranslation:
-               return '__'.join( theTranslation.split( '_' ) )
-       else:
-               return theTranslation
+       aTranslation = theTranslation
+       if '_' in aTranslation:
+               aTranslation = '__'.join( aTranslation.split( '_' ) )
+       
+       aTranslation = aTranslation.replace( ' ', '_' )
+       return aTranslation
 
 def translate( theDicoFile, theCataFile, theTSFile, theNotTranslatedFile = '' ):