From e5792e44ddfd30bbbe9f37b8a4baccd34af7b74b Mon Sep 17 00:00:00 2001 From: Joe R Date: Sat, 12 Mar 2022 09:05:21 -0500 Subject: [PATCH] Added "Report a Bug" to the menu bar, hoping this will make it easier to get feedback on the 2.15 beta. --- po/de_pysol.po | 5 ++++- po/fr_pysol.po | 5 ++++- po/it_pysol.po | 5 ++++- po/pl_pysol.po | 5 ++++- po/pysol.pot | 3 +++ po/ru_pysol.po | 5 ++++- pysollib/actions.py | 5 +++++ pysollib/ui/tktile/menubar.py | 3 +++ 8 files changed, 31 insertions(+), 5 deletions(-) diff --git a/po/de_pysol.po b/po/de_pysol.po index b18f54f8..9ffc0ba9 100644 --- a/po/de_pysol.po +++ b/po/de_pysol.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: PySol 0.0.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2022-03-05 12:11-0500\n" +"PO-Revision-Date: 2022-03-12 09:02-0500\n" "Last-Translator: H. Schaekel \n" "Language-Team: German\n" "Language: de\n" @@ -5022,6 +5022,9 @@ msgstr "&Regeln dieses Spiels" msgid "What's &new?" msgstr "" +msgid "R&eport a Bug" +msgstr "" + #: pysollib/ui/tktile/menubar.py:660 msgid "&License terms" msgstr "" diff --git a/po/fr_pysol.po b/po/fr_pysol.po index ae0bd620..d8c20b13 100644 --- a/po/fr_pysol.po +++ b/po/fr_pysol.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: 1.02\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2022-03-05 12:11-0500\n" +"PO-Revision-Date: 2022-03-12 09:02-0500\n" "Last-Translator: Eric Rausch \n" "Language-Team: French\n" "Language: fr\n" @@ -5071,6 +5071,9 @@ msgstr "&Règles de ce jeu" msgid "What's &new?" msgstr "" +msgid "R&eport a Bug" +msgstr "" + #: pysollib/ui/tktile/menubar.py:660 msgid "&License terms" msgstr "&Licence" diff --git a/po/it_pysol.po b/po/it_pysol.po index da048e23..7f222582 100644 --- a/po/it_pysol.po +++ b/po/it_pysol.po @@ -12,7 +12,7 @@ msgstr "" "Project-Id-Version: it_pysol\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2022-03-05 12:12-0500\n" +"PO-Revision-Date: 2022-03-12 09:02-0500\n" "Last-Translator: Giuliano Colla \n" "Language-Team: Italiano \n" "Language: it\n" @@ -5135,6 +5135,9 @@ msgstr "&Regole di questo gioco" msgid "What's &new?" msgstr "" +msgid "R&eport a Bug" +msgstr "" + #: pysollib/ui/tktile/menubar.py:660 msgid "&License terms" msgstr "Termini della &licenza" diff --git a/po/pl_pysol.po b/po/pl_pysol.po index 9a9b59ed..d724bbff 100644 --- a/po/pl_pysol.po +++ b/po/pl_pysol.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2022-03-05 12:12-0500\n" +"PO-Revision-Date: 2022-03-12 09:02-0500\n" "Last-Translator: Jerzy Trzeciak \n" "Language-Team: Polish \n" "Language: pl\n" @@ -5195,6 +5195,9 @@ msgstr "Zasady tej g&ry" msgid "What's &new?" msgstr "" +msgid "R&eport a Bug" +msgstr "" + #: pysollib/ui/tktile/menubar.py:660 msgid "&License terms" msgstr "Warunki &licencji" diff --git a/po/pysol.pot b/po/pysol.pot index aac29ed4..4d34d33e 100644 --- a/po/pysol.pot +++ b/po/pysol.pot @@ -4820,6 +4820,9 @@ msgstr "" msgid "What's &new?" msgstr "" +msgid "R&eport a Bug" +msgstr "" + #: pysollib/ui/tktile/menubar.py:660 msgid "&License terms" msgstr "" diff --git a/po/ru_pysol.po b/po/ru_pysol.po index 0627b71e..f3d09ff1 100644 --- a/po/ru_pysol.po +++ b/po/ru_pysol.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2022-03-05 12:12-0500\n" +"PO-Revision-Date: 2022-03-12 09:01-0500\n" "Last-Translator: Skomoroh \n" "Language-Team: Russian \n" "Language: ru\n" @@ -5161,6 +5161,9 @@ msgstr "&Правила текущей игры" msgid "What's &new?" msgstr "" +msgid "R&eport a Bug" +msgstr "" + #: pysollib/ui/tktile/menubar.py:660 msgid "&License terms" msgstr "&Лицензия" diff --git a/pysollib/actions.py b/pysollib/actions.py index 7bc5087d..5721c164 100644 --- a/pysollib/actions.py +++ b/pysollib/actions.py @@ -819,6 +819,11 @@ class PysolMenubar(PysolMenubarTk): # FIXME: plugins help_html(self.app, self.app.getGameRulesFilename(self.game.id), dir) + def mHelpReportBug(self, *args): + if self._cancelDrag(break_pause=False): + return + help_html(self.app, "report_bug.html", "html") + def mHelpLicense(self, *args): if self._cancelDrag(break_pause=False): return diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index 318b958b..f54c61c8 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -707,6 +707,9 @@ class PysolMenubarTkCommon: menu.add_command( label=n_("What's &new?"), command=self.mHelpNews) + menu.add_command( + label=n_("R&eport a Bug"), + command=self.mHelpReportBug) menu.add_command( label=n_("&License terms"), command=self.mHelpLicense)