def __init__(self): self.appName = "kajongg" catalog = "" homePage = "http://kde.org/applications/games/kajongg/" version = Internal.version programName = ki18n ("Kajongg") description = ki18n ("Mah Jongg - the ancient Chinese board game for 4 players") kajongglicense = KAboutData.License_GPL kajonggcopyright = ki18n ("(C) 2008,2009,2010,2011,2012 Wolfgang Rohdewald") aboutText = ki18n("This is the classical Mah Jongg for four players. " "If you are looking for Mah Jongg solitaire please use the " "application kmahjongg.") self.about = KAboutData (self.appName, catalog, programName, version, description, kajongglicense, kajonggcopyright, aboutText, homePage) self.about.addAuthor(ki18n("Wolfgang Rohdewald"), ki18n("Original author"), "*****@*****.**")
def __init__(self): self.appName = "kajongg" catalog = "" homePage = "http://kde.org/applications/games/kajongg/" version = Internal.version programName = ki18n("Kajongg") description = ki18n( "Mah Jongg - the ancient Chinese board game for 4 players") kajongglicense = KAboutData.License_GPL kajonggcopyright = ki18n( "(C) 2008,2009,2010,2011,2012 Wolfgang Rohdewald") aboutText = ki18n( "This is the classical Mah Jongg for four players. " "If you are looking for Mah Jongg solitaire please use the " "application kmahjongg.") self.about = KAboutData(self.appName, catalog, programName, version, description, kajongglicense, kajonggcopyright, aboutText, homePage) self.about.addAuthor(ki18n("Wolfgang Rohdewald"), ki18n("Original author"), "*****@*****.**")
def defineOptions(): """this is the KDE way. Compare with kajonggserver.py""" options = KCmdLineOptions() options.add("playopen", ki18n("all robots play with visible concealed tiles")) options.add("demo", ki18n("start with demo mode")) options.add("host <HOST>", ki18n("login to HOST")) options.add("table <TABLE>", ki18n("start new TABLE")) options.add("join <TABLE>", ki18n("join TABLE ")) options.add("ruleset <RULESET>", ki18n("use ruleset without asking")) options.add("rounds <ROUNDS>", ki18n("play one ROUNDS rounds per game. Only for debugging!")) options.add("player <PLAYER>", ki18n("prefer PLAYER for next login")) options.add("ai <AI>", ki18n("use AI variant for human player in demo mode")) options.add("csv <CSV>", ki18n("write statistics to CSV")) options.add("rulesets", ki18n("show all available rulesets")) options.add( "game <seed(/(firsthand)(..(lasthand))>", ki18n("for testing purposes: Initializes the random generator"), "0" ) options.add("nogui", ki18n("show no graphical user interface. Intended only for testing")) options.add("nokde", ki18n("Do not use KDE bindings. Intended only for testing")) options.add("qt5", ki18n("Force using Qt5. Currently Qt4 is used by default on Linux and Qt5 on Windows")) options.add("socket <SOCKET>", ki18n("use a dedicated server listening on SOCKET. Intended only for testing")) options.add("port <PORT>", ki18n("use a dedicated server listening on PORT. Intended only for testing")) options.add("debug <OPTIONS>", ki18n(Debug.help())) return options
def defineOptions(): """this is the KDE way. Compare with kajonggserver.py""" options = KCmdLineOptions() options.add("playopen", ki18n("all robots play with visible concealed tiles")) options.add("demo", ki18n("start with demo mode")) options.add("host <HOST>", ki18n("login to HOST")) options.add("table <TABLE>", ki18n("start new TABLE")) options.add("join <TABLE>", ki18n("join TABLE ")) options.add("ruleset <RULESET>", ki18n("use ruleset without asking")) options.add("player <PLAYER>", ki18n("prefer PLAYER for next login")) options.add("ai <AI>", ki18n("use AI variant for human player in demo mode")) options.add("csv <CSV>", ki18n("write statistics to CSV")) options.add("rulesets", ki18n("show all available rulesets")) options.add("game <seed/hand/discard>", ki18n("for testing purposes: Initializes the random generator"), "0") options.add("nogui", ki18n("show no graphical user interface. Intended only for testing")) options.add("socket <SOCKET>", ki18n("use a dedicated server listening on SOCKET. Intended only for testing")) options.add("debug <OPTIONS>", ki18n(Debug.help())) return options