From 9bbe3013055cbf15b049cbb2f4e45fc9c25cf162 Mon Sep 17 00:00:00 2001 From: N0U Date: Wed, 30 Apr 2014 22:34:11 -0700 Subject: [PATCH] Fixed "Use the _Translate function, and that 'to' should be 'too'." --- src/bitmessageqt/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index cfa307e3..e372b1ad 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -1823,7 +1823,7 @@ class MyForm(QtGui.QMainWindow): def click_pushButtonAddImage(self): file_name=QtGui.QFileDialog.getOpenFileName( - self,"Select an image",self.images_dir,"Image (*.png *.jpg *.jepg *.gif)") + self,_translate("MainWindow","Select an image"),self.images_dir,_translate("MainWindow","Image (*.png *.jpg *.jepg *.gif)")) if file_name.isNull(): # Operation was canceled return @@ -1836,7 +1836,7 @@ class MyForm(QtGui.QMainWindow): if image.height()*image.width()>300*300: #Do we need to resize it? r=QtGui.QMessageBox.question( - self,"Image","This image is to big.\nShould it be scaled?", + self,_translate("MainWindow","Image"),_translate("MainWindow","This image is too big.\nShould it be scaled?"), QtGui.QMessageBox.Yes,QtGui.QMessageBox.No) # Why I cannot put Yes button before No button? That is sux if r==QtGui.QMessageBox.Yes: if image.height()>=image.width(): @@ -1855,7 +1855,7 @@ class MyForm(QtGui.QMainWindow): html_data="" self.ui.textEditMessage.insertPlainText("\n"+html_data) else: - QtGui.QMessageBox.information(self,"Error","Could not open an image") + QtGui.QMessageBox.information(self,_translate("MainWindow","Error"),_translate("MainWindow","Could not open an image")) def imageRecourceToBase64(self,doc,name): buf=QBuffer()