From 5438cdd87b04d1ad9a41280fe345a1d3fad5614c Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Thu, 6 Sep 2018 10:03:18 +0200 Subject: [PATCH] avec le ts --- MapIdentification/MapIdentification_en.ts | 10 ++++++++++ MapIdentification/cata_map_cl0d.py | 2 +- MapIdentification/mesScripts_MAPIDENTIFICATION.py | 5 +++-- MapIdentification/prefs_MapIdentification.py | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 MapIdentification/MapIdentification_en.ts diff --git a/MapIdentification/MapIdentification_en.ts b/MapIdentification/MapIdentification_en.ts new file mode 100644 index 00000000..58fcb689 --- /dev/null +++ b/MapIdentification/MapIdentification_en.ts @@ -0,0 +1,10 @@ + + + + @default + + MAP_input_file + input file for Map + + + diff --git a/MapIdentification/cata_map_cl0d.py b/MapIdentification/cata_map_cl0d.py index 770d1c9f..86c714de 100644 --- a/MapIdentification/cata_map_cl0d.py +++ b/MapIdentification/cata_map_cl0d.py @@ -47,7 +47,7 @@ def getName(monMC): # Catalog entry for the MAP function : c_solver_constitutive_law_0d # ======================================================================= -MAP_input_file = PROC(nom = 'Input file for MAP', +MAP_input_file = PROC(nom = 'MAP_input_file', # ----------------------------------- MAP_Version = SIMP(statut='o', typ='TXM', defaut=getVersion()), diff --git a/MapIdentification/mesScripts_MAPIDENTIFICATION.py b/MapIdentification/mesScripts_MAPIDENTIFICATION.py index 11d3deef..029bee72 100644 --- a/MapIdentification/mesScripts_MAPIDENTIFICATION.py +++ b/MapIdentification/mesScripts_MAPIDENTIFICATION.py @@ -1,5 +1,6 @@ -def run(editor): +def run(listeParam): print ('je rentre dans run') + editor=listeParam[0] print (editor) print (dir(editor)) @@ -13,6 +14,6 @@ def run(editor): # - appelable depuis un item valide uniquement # - toolTip dict_commandes={ - 'Input file for MAP':((run,"run",('editor',),False,True,"lance run"),), + 'MAP_input_file':((run,"run",('editor',),False,True,"lance run"),), } diff --git a/MapIdentification/prefs_MapIdentification.py b/MapIdentification/prefs_MapIdentification.py index 8fcfa223..4d2c4a99 100644 --- a/MapIdentification/prefs_MapIdentification.py +++ b/MapIdentification/prefs_MapIdentification.py @@ -28,7 +28,7 @@ sys.path[:0]=[INSTALLDIR] # lang indique la langue utilisee pour les chaines d'aide : fr ou ang -lang='fr' +lang='ang' # Codage des strings qui accepte les accents (en remplacement de 'ascii') encoding='iso-8859-1' @@ -56,3 +56,4 @@ afficheListesPliees=False afficheCommandesPliees = False #dumpXSD=True #afficheIhm=False +translatorFichier = os.path.join(repIni,'MapIdentification') -- 2.39.2