Exemple #1
0
    def __init__(self, parent, help):
        QDialog.__init__(self, parent)
        self.setCaption(i18n("Package Manager Help"))
        self.layout = QGridLayout(self)
        self.htmlPart = KHTMLPart(self)
        self.resize(500,600)
        self.layout.addWidget(self.htmlPart.view(),1,1)

        if getKDELocale() == "tr":
            self.htmlPart.openURL(KURL(locate("data","package-manager/help/tr/%s" % help_files[help])))
        else:
            self.htmlPart.openURL(KURL(locate("data","package-manager/help/en/%s" % help_files[help])))
Exemple #2
0
 def __init__(self, parent=None):
     QDialog.__init__(self,parent)
     self.setCaption(i18n("PiSi X Help"))
     self.layout = QGridLayout(self)
     self.htmlPart = KHTMLPart(self)
     self.resize(500,600)
     self.layout.addWidget(self.htmlPart.view(),1,1)
     
     if os.environ['LANG'].startswith('tr_TR'):
         self.htmlPart.openURL(KURL(locate("data","pisix/help/tr/main_help.html")))
     else:
         self.htmlPart.openURL(KURL(locate("data","pisix/help/en/main_help.html")))
Exemple #3
0
    def __init__(self, parent, help):
        KDialog.__init__(self, parent)
        self.setCaption(i18n("Package Manager Help"))
        self.layout = QGridLayout(self)
        self.htmlPart = KHTMLPart(self)
        self.resize(500,600)
        self.layout.addWidget(self.htmlPart.view(),1,1)

        locale = getKDELocale()

        if locale in ["tr", "es", "en", "fr", "nl", "de", "sv"]:
            self.htmlPart.openURL(KURL(locate("data","package-manager/help/%s/%s" % (locale, help_files[help]))))
        else:
            self.htmlPart.openURL(KURL(locate("data","package-manager/help/en/%s" % help_files[help])))