X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;f=iramuteq.py;h=6abc278c8eff517e814717882a26d9d88f3b4b8c;hb=53df4af897991ea260f0b57e4b0f7826f6409860;hp=21453e95bceec8e27f4a68f5da03de9cf749b11c;hpb=eb7ef63636ee16b64d621650b6db474852321652;p=iramuteq diff --git a/iramuteq.py b/iramuteq.py index 21453e9..6abc278 100644 --- a/iramuteq.py +++ b/iramuteq.py @@ -175,6 +175,9 @@ class IraFrame(wx.Frame): self.SimiFromCluster = SimiFromCluster #langues gettext.install('iramuteq', os.path.join(AppliPath,'locale'), unicode=True) + #langues = ['fr_FR', 'en', 'pt_PT'] + #for l in langues : + # pass self.presLan_fr = gettext.translation("iramuteq", os.path.join(AppliPath,'locale'), languages=['fr_FR']) self.presLan_en = gettext.translation("iramuteq", os.path.join(AppliPath,'locale'), languages=['en']) self.setlangue() @@ -513,6 +516,8 @@ vous devez signaler le chemin de l'éxecutable de R dans les préférences.""" guilangue = self.pref.get('iramuteq', 'guilanguage') if guilangue == 'french' : self.presLan_fr.install() + elif guilangue == 'portuguese' : + self.presLan_pt.install() else : self.presLan_en.install() mylocale = wx.Locale(langues[guilangue]) @@ -822,33 +827,19 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, États-Unis.""" def analyse_matrix(self, analyse, analyse_type = '', matrix = None, dlgnb = 1): if matrix is None : matrix = self.tree.getmatrix() - #try : - analyse(self, matrix, parametres = {'type' : analyse_type}, dlg = progressbar(self, dlgnb)) - #except: - # BugReport(self) + try : + analyse(self, matrix, parametres = {'type' : analyse_type}, dlg = dlgnb) + except: + BugReport(self) def OnFreq(self, event, matrix = None): self.analyse_matrix(Frequences, analyse_type = 'freq', matrix = matrix, dlgnb = 3) - #if matrix is None : - # matrix = self.tree.getmatrix() - #try: - # Frequences(self, matrix, parametres = {'type' : 'freq'}, dlg = progressbar(self, 3)) - #except: - # BugReport(self) def OnChi2(self, event, matrix = None): - #try: self.analyse_matrix(ChiSquare, matrix = matrix, analyse_type = 'chi2', dlgnb = 3) - #except: - # BugReport(self) def OnSimiTab(self, event, matrix = None): - if matrix is None : - matrix = self.tree.getmatrix() - try: - DoSimi(self, matrix, parametres = {'type' : 'simimatrix'}, dlg = progressbar(self, 3)) - except: - BugReport(self) + self.analyse_matrix(DoSimi, matrix = matrix, analyse_type = 'simimatrix', dlgnb = 5) def OnCHDReinert(self, event, matrix = None): if matrix is None :