[PyQt] Join my network on LinkedIn
LinkedIn Fabio Mauri requested to add you as a connection on LinkedIn: -- I'd like to add you to my professional network on LinkedIn. Accept invitation from Fabio Mauri http://www.linkedin.com/e/3fiogj-gsu4t5f3-2q/qruN_W-97m539Ud1_CXNH-Qg5C5ZrnpKp7duMjcDwM/blk/I105741415_65/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYRdBYRcjgNd3sRc359bQwUbldWgQdcbPwQd3cRdPkVczgLrCBxbOYWrSlI/EML_comm_afe/?hs=false&tok=0VC0hRSAkdR4U1 View invitation from Fabio Mauri http://www.linkedin.com/e/3fiogj-gsu4t5f3-2q/qruN_W-97m539Ud1_CXNH-Qg5C5ZrnpKp7duMjcDwM/blk/I105741415_65/3kSnPkNd34QdPkMckALqnpPbOYWrSlI/svi/?hs=false&tok=0fqFAqDFUdR4U1 -- Why might connecting with Fabio Mauri be a good idea? Fabio Mauri's connections could be useful to you: After accepting Fabio Mauri's invitation, check Fabio Mauri's connections to see who else you may know and who you might want an introduction to. Building these connections can create opportunities in the future. -- (c) 2011, LinkedIn Corporation___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Loading default language
Hi All, I tried to use multi-language for my application but after loading any language the default language (English) didn't appear!? Do I need to create en.qm/ts just like any other language or I can load the default language by some command? here is a snippet of my code: def getLang(self): if self.lang == 3: return QString("en") elif self.lang == 31: return QString("ar") elif self.lang == 32: return QString("tr") else: return QString("en") def languageChange(self): translator = QTranslator(self) currentLang = QString(":/l10n/%1.qm").arg(self.getLang()) if not translator.load(currentLang): print QString("Couldn't load language file") widget = QWidget(self) if self.lang == 31: qApp.setLayoutDirection(Qt.RightToLeft) QLocale.setDefault(QLocale(QLocale.Arabic, QLocale.SyrianArabRepublic)) for widget in QApplication.allWidgets(): widget.setLayoutDirection(Qt.RightToLeft) else: qApp.setLayoutDirection(Qt.LeftToRight) for widget in qApp.allWidgets(): widget.setLayoutDirection(Qt.LeftToRight) qApp.installTranslator(translator) self.retranslateUi(self) def on_toolButton_english_clicked(self): self.lang = 3 self.languageChange() self.toolButton_english.setChecked(1) def on_toolButton_arabic_clicked(self): self.lang = 31 self.languageChange() self.toolButton_arabic.setChecked(1) def on_toolButton_turkish_clicked(self): self.lang = 32 self.languageChange() self.toolButton_turkish.setChecked(1) -- Best Regards Muhammad Bashir Al-Noimi My Blog: http://mbnoimi.net ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt