Commit 89abb4cbcb037290c4cca6910e49dd45525b0f0d
1 parent
f5d0049f
Exists in
master
and in
68 other branches
FIX: Surface processo with "_"
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/data/surface_process.py
@@ -19,8 +19,7 @@ class SurfaceProcess(multiprocessing.Process): | @@ -19,8 +19,7 @@ class SurfaceProcess(multiprocessing.Process): | ||
19 | self.decimate_reduction = decimate_reduction | 19 | self.decimate_reduction = decimate_reduction |
20 | self.smooth_relaxation_factor = smooth_relaxation_factor | 20 | self.smooth_relaxation_factor = smooth_relaxation_factor |
21 | self.smooth_iterations = smooth_iterations | 21 | self.smooth_iterations = smooth_iterations |
22 | - _ = i18n.InstallLanguage(language) | ||
23 | - | 22 | + self.language = language |
24 | 23 | ||
25 | def run(self): | 24 | def run(self): |
26 | self.CreateSurface() | 25 | self.CreateSurface() |
@@ -30,6 +29,7 @@ class SurfaceProcess(multiprocessing.Process): | @@ -30,6 +29,7 @@ class SurfaceProcess(multiprocessing.Process): | ||
30 | self.pipe.send([prog, msg]) | 29 | self.pipe.send([prog, msg]) |
31 | 30 | ||
32 | def CreateSurface(self): | 31 | def CreateSurface(self): |
32 | + _ = i18n.InstallLanguage(self.language) | ||
33 | 33 | ||
34 | reader = vtk.vtkXMLImageDataReader() | 34 | reader = vtk.vtkXMLImageDataReader() |
35 | reader.SetFileName(self.filename) | 35 | reader.SetFileName(self.filename) |