1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Added error message when trying to start with a missing cardset.

This commit is contained in:
Joe R 2022-03-05 12:15:11 -05:00
parent ee80a93558
commit 09a08f2988
8 changed files with 82 additions and 13 deletions

View file

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: PySol 0.0.1\n" "Project-Id-Version: PySol 0.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-02-12 11:34-0500\n" "PO-Revision-Date: 2022-03-05 12:11-0500\n"
"Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n" "Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n"
"Language-Team: German\n" "Language-Team: German\n"
"Language: de\n" "Language: de\n"
@ -819,6 +819,15 @@ msgstr ""
"\n" "\n"
"Überprüfen Sie Ihre Installation %(app)s.\n" "Überprüfen Sie Ihre Installation %(app)s.\n"
#, python-format
msgid ""
"\n"
"The cardset \"%(cs)s\" was not found.\n"
"\n"
"Please ensure that this cardset has been installed, and that your\n"
"Cardsets package is up to date.\n"
msgstr ""
#: pysollib/options.py:270 #: pysollib/options.py:270
msgid "Unknown" msgid "Unknown"
msgstr "Unbekannt" msgstr "Unbekannt"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 1.02\n" "Project-Id-Version: 1.02\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-02-12 11:34-0500\n" "PO-Revision-Date: 2022-03-05 12:11-0500\n"
"Last-Translator: Eric Rausch <neelix570@gmail.com>\n" "Last-Translator: Eric Rausch <neelix570@gmail.com>\n"
"Language-Team: French\n" "Language-Team: French\n"
"Language: fr\n" "Language: fr\n"
@ -849,6 +849,15 @@ msgstr ""
"\n" "\n"
"Vérifiez votre installation de %(app)s.\n" "Vérifiez votre installation de %(app)s.\n"
#, python-format
msgid ""
"\n"
"The cardset \"%(cs)s\" was not found.\n"
"\n"
"Please ensure that this cardset has been installed, and that your\n"
"Cardsets package is up to date.\n"
msgstr ""
#: pysollib/options.py:270 #: pysollib/options.py:270
msgid "Unknown" msgid "Unknown"
msgstr "Inconnu" msgstr "Inconnu"

View file

@ -12,7 +12,7 @@ msgstr ""
"Project-Id-Version: it_pysol\n" "Project-Id-Version: it_pysol\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-02-12 11:34-0500\n" "PO-Revision-Date: 2022-03-05 12:12-0500\n"
"Last-Translator: Giuliano Colla <giuliano.colla@gmail.com>\n" "Last-Translator: Giuliano Colla <giuliano.colla@gmail.com>\n"
"Language-Team: Italiano <it@li.org>\n" "Language-Team: Italiano <it@li.org>\n"
"Language: it\n" "Language: it\n"
@ -857,6 +857,15 @@ msgstr ""
"\n" "\n"
"Verificare l'installazione di %(app)s.\n" "Verificare l'installazione di %(app)s.\n"
#, python-format
msgid ""
"\n"
"The cardset \"%(cs)s\" was not found.\n"
"\n"
"Please ensure that this cardset has been installed, and that your\n"
"Cardsets package is up to date.\n"
msgstr ""
#: pysollib/options.py:270 #: pysollib/options.py:270
msgid "Unknown" msgid "Unknown"
msgstr "Sconosciuto" msgstr "Sconosciuto"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-02-12 11:34-0500\n" "PO-Revision-Date: 2022-03-05 12:12-0500\n"
"Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n" "Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n"
"Language-Team: Polish <pl@li.org>\n" "Language-Team: Polish <pl@li.org>\n"
"Language: pl\n" "Language: pl\n"
@ -850,6 +850,15 @@ msgstr ""
"\n" "\n"
"Proszę sprawdzić instalację %s.\n" "Proszę sprawdzić instalację %s.\n"
#, python-format
msgid ""
"\n"
"The cardset \"%(cs)s\" was not found.\n"
"\n"
"Please ensure that this cardset has been installed, and that your\n"
"Cardsets package is up to date.\n"
msgstr ""
#: pysollib/options.py:270 #: pysollib/options.py:270
msgid "Unknown" msgid "Unknown"
msgstr "Nieznany" msgstr "Nieznany"

View file

@ -763,6 +763,15 @@ msgid ""
"Please check your %(app)s installation.\n" "Please check your %(app)s installation.\n"
msgstr "" msgstr ""
#, python-format
msgid ""
"\n"
"The cardset "%(cs)s" was not found.\n"
"\n"
"Please ensure that this cardset has been installed, and that your\n"
"Cardsets package is up to date.\n"
msgstr ""
#: pysollib/options.py:270 #: pysollib/options.py:270
msgid "Unknown" msgid "Unknown"
msgstr "" msgstr ""

View file

@ -296,6 +296,9 @@ msgstr "Большая Берта"
msgid "Big Braid" msgid "Big Braid"
msgstr "Большая коса" msgstr "Большая коса"
msgid "Big Castle"
msgstr "Большой замок"
msgid "Big Cell" msgid "Big Cell"
msgstr "Большая Ячейка" msgstr "Большая Ячейка"

View file

@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-02-12 11:34-0500\n" "PO-Revision-Date: 2022-03-05 12:12-0500\n"
"Last-Translator: Skomoroh <skomoroh@gmail.com>\n" "Last-Translator: Skomoroh <skomoroh@gmail.com>\n"
"Language-Team: Russian <ru@li.org>\n" "Language-Team: Russian <ru@li.org>\n"
"Language: ru\n" "Language: ru\n"
@ -844,6 +844,15 @@ msgstr ""
"\n" "\n"
"Пожалуйста проверьте установку %(app)s.\n" "Пожалуйста проверьте установку %(app)s.\n"
#, python-format
msgid ""
"\n"
"The cardset \"%(cs)s\" was not found.\n"
"\n"
"Please ensure that this cardset has been installed, and that your\n"
"Cardsets package is up to date.\n"
msgstr ""
#: pysollib/options.py:270 #: pysollib/options.py:270
msgid "Unknown" msgid "Unknown"
msgstr "Неизвестный" msgstr "Неизвестный"

View file

@ -322,7 +322,17 @@ Please check your %(app)s installation.
if cardset and c[1]: if cardset and c[1]:
cardset.updateCardback(backname=c[1]) cardset.updateCardback(backname=c[1])
if not cardset: if not cardset:
cardset = app.cardset_manager.get(0) MfxMessageDialog(top, title=_("Cardset error"),
text=_('''
The cardset "%(cs)s" was not found.
Please ensure that this cardset has been installed, and that your
Cardsets package is up to date.
''') % {'cs': c[0]},
bitmap="error")
cardset = app.cardset_manager.getByName("Standard")
if not cardset:
cardset = app.cardset_manager.get(0)
if app.cardset_manager.len() == 0 or not cardset: if app.cardset_manager.len() == 0 or not cardset:
fatal_no_cardsets(app) fatal_no_cardsets(app)
return 3 return 3
@ -374,13 +384,15 @@ Please check your %(app)s installation.
# load cardset # load cardset
progress = app.intro.progress progress = app.intro.progress
if not app.loadCardset(cardset, progress=progress, update=1): if not app.loadCardset(cardset, progress=progress, update=1):
for cardset in app.cardset_manager.getAll(): if not cardset:
progress.reset() for cardset in app.cardset_manager.getAll():
if app.loadCardset(cardset, progress=progress, update=1): progress.reset()
break
else: if app.loadCardset(cardset, progress=progress, update=1):
fatal_no_cardsets(app) break
return 3 else:
fatal_no_cardsets(app)
return 3
# ok # ok
return 0 return 0