Ejemplo n.º 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])))
Ejemplo n.º 2
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])))