def main(): about = make_about_data(ki18nc('tray application description', 'touchpad management application')) KCmdLineArgs.init(sys.argv, about) KUniqueApplication.addCmdLineOptions() if not KUniqueApplication.start(): return app = SynaptiksApplication() app.exec_()
def __init__(self, component_data, parent=None): KCModule.__init__(self, component_data, parent) KGlobal.locale().insertCatalog('synaptiks') # keep a reference to the generated about data to prevent it from being # deleted by the GC self._about = make_about_data( ki18nc('kcmodule description', 'Touchpad configuration')) self.setAboutData(self._about) self.setQuickHelp(i18nc( '@info:tooltip synaptiks kcmodule', '<title>Touchpad configuration</title>' '<para>This module lets you configure your touchpad.</para>'))
def make_about_data(description): """ Create an about data object describing synaptiks. ``description`` is a :class:`~PyKDE4.kdecore.KLocalizedString` containing a description for the specific part of synaptiks, the created about data object should describe. Return a :class:`~PyKDE4.kdecore.KAboutData` object with the given ``description``. """ about = KAboutData( b'synaptiks', '', ki18nc('Program name', 'synaptiks'), str(synaptiks.__version__), description, KAboutData.License_BSD, ki18nc('About data copyright', # KLocalizedString doesn't deal well with unicode b'Copyright © 2009, 2010, 2011 Sebastian Wiesner')) about.setCustomAuthorText( ki18nc('custom author text plain text', 'Please report bugs to the issue tracker at %1').subs( synaptiks.ISSUE_TRACKER_URL), ki18nc('@info custom author text rich text', 'Please report bugs to the ' '<link url="%1">issue tracker</link>.').subs( synaptiks.ISSUE_TRACKER_URL)) about.setHomepage(synaptiks.WEBSITE_URL) about.setOrganizationDomain('lunaryorn.de') about.setTranslator(ki18nc('NAME OF TRANSLATORS', 'Your names'), ki18nc('EMAIL OF TRANSLATORS', 'Your emails')) about.addAuthor(ki18nc('author name', 'Sebastian Wiesner'), ki18nc('author task', 'Maintainer'), '*****@*****.**') about.addCredit(ki18nc('credit name', 'Valentyn Pavliuchenko'), ki18nc('credit task', 'Debian packaging, russian ' 'translation, bug reporting and testing'), '*****@*****.**') return about
PACKAGE = "Boot Manager" appName = "boot-manager" version = "3.0.0" homePage = "http://developer.pardus.org.tr/projects/boot-manager" bugEmail = "*****@*****.**" if ctx.Pds.session == ctx.pds.Kde4: # PyKDE from PyKDE4.kdecore import KAboutData, ki18n, ki18nc # Application Data programName = ki18n(PACKAGE) description = ki18n(PACKAGE) license = KAboutData.License_GPL copyright = ki18n("(c) 2006-2011 TUBITAK/UEKAE") text = ki18n(None) catalog = appName aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail) # Author(s) aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Current Maintainer")) aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("First Developer")) aboutData.addAuthor(ki18n("Aydan Taşdemir"), ki18n("Pure Qt Support")) aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails")) # Use this if icon name is different than appName aboutData.setProgramIconName("computer")
# the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your option) # any later version. # # Please read the COPYING file. # # PyKDE from PyKDE4.kdecore import KAboutData, ki18n, ki18nc # Application Data appName = "system-manager" modName = "systemmanager" programName = ki18n("System Manager") version = "0.9.7" description = ki18n("System Manager") license = KAboutData.License_GPL copyright = ki18n("(c) 2009-2010 TUBITAK/UEKAE") text = ki18n(None) homePage = "http://www.pardus.org.tr/eng/projects" bugEmail = "*****@*****.**" catalog = appName aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail) # Author(s) aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("Current Maintainer")) aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails")) # Use this if icon name is different than appName aboutData.setProgramIconName("preferences-other")
.. moduleauthor:: Sebastian Wiesner <*****@*****.**> """ from __future__ import (print_function, division, unicode_literals, absolute_import) from PyKDE4.kdecore import ki18nc from synaptiks import ISSUE_TRACKER_URL NO_TOUCHPAD_ERROR_MESSAGE = ki18nc( '@info NoTouchpadError error message', '<title>No touchpad found</title>' '<para>No touchpad was found in this system. If the system has a ' 'touchpad, please make sure that the ' '<application>synaptics</application> driver is properly installed and ' 'configured.</para>' '<para>If your touchpad is not found, though the driver is installed and ' 'configured correctly, please compile detailed information about your ' 'touchpad hardware and report this issue to the ' '<link url="%1">issue tracker</link>.</para>').subs(ISSUE_TRACKER_URL) VERSION_ERROR_MESSAGE = ki18nc( '@info XInputVersionError error message', '<title>Version error</title>' '<para>The version of the XInput extension installed on your system is ' 'too old. Version %1 was found, but at least version %2 is required.' '</para>' '<para>If you want to be able to configure your touchpad, you have to ' 'upgrade your system to a recent release of the Xorg display server. ' 'This may likely involve a complete upgrade of your system. Please ' 'excuse this inconvenience, but there is no way to make touchpad ' 'configuration work on systems as old as yours.</para>')
appName = "frescobaldi" catalog = appName programName = ki18n("Frescobaldi") version = "@VERSION@" description = ki18n("LilyPond Music Editor") license = KAboutData.License_GPL copyright = ki18n("Copyright (c) 2008-2010, Wilbert Berendsen") text = KLocalizedString() homepage = "http://www.frescobaldi.org/" bugs = "*****@*****.**" aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homepage, bugs) aboutData.setTranslator( ki18nc("NAME OF TRANSLATORS", "Your name"), ki18nc("EMAIL OF TRANSLATORS", "*****@*****.**") ) KCmdLineArgs.init(list(sys.argv), aboutData) KComponentData(aboutData).dirs().addPrefix("@CMAKE_INSTALL_PREFIX@") options = KCmdLineOptions() options.add("start <session>", ki18n("Session to start")) options.add("n").add("new", ki18n("Start a new instance")) options.add("e").add("encoding <enc>", ki18n("Encoding to use")) options.add("l").add("line <num>", ki18n("Line number to go to, starting at 1")) options.add("c").add("column <num>", ki18n("Column to go to, starting at 0")) options.add("smart", ki18n("Try to use smart line and column numbers")) options.add("+files", ki18n("LilyPond files to open, may also be textedit URLs")) KCmdLineArgs.addCmdLineOptions(options)