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:
parent
ee80a93558
commit
09a08f2988
8 changed files with 82 additions and 13 deletions
|
@ -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-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"
|
||||
"Language-Team: German\n"
|
||||
"Language: de\n"
|
||||
|
@ -819,6 +819,15 @@ msgstr ""
|
|||
"\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
|
||||
msgid "Unknown"
|
||||
msgstr "Unbekannt"
|
||||
|
|
|
@ -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-02-12 11:34-0500\n"
|
||||
"PO-Revision-Date: 2022-03-05 12:11-0500\n"
|
||||
"Last-Translator: Eric Rausch <neelix570@gmail.com>\n"
|
||||
"Language-Team: French\n"
|
||||
"Language: fr\n"
|
||||
|
@ -849,6 +849,15 @@ msgstr ""
|
|||
"\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
|
||||
msgid "Unknown"
|
||||
msgstr "Inconnu"
|
||||
|
|
|
@ -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-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"
|
||||
"Language-Team: Italiano <it@li.org>\n"
|
||||
"Language: it\n"
|
||||
|
@ -857,6 +857,15 @@ msgstr ""
|
|||
"\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
|
||||
msgid "Unknown"
|
||||
msgstr "Sconosciuto"
|
||||
|
|
|
@ -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-02-12 11:34-0500\n"
|
||||
"PO-Revision-Date: 2022-03-05 12:12-0500\n"
|
||||
"Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n"
|
||||
"Language-Team: Polish <pl@li.org>\n"
|
||||
"Language: pl\n"
|
||||
|
@ -850,6 +850,15 @@ msgstr ""
|
|||
"\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
|
||||
msgid "Unknown"
|
||||
msgstr "Nieznany"
|
||||
|
|
|
@ -763,6 +763,15 @@ msgid ""
|
|||
"Please check your %(app)s installation.\n"
|
||||
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
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
|
|
@ -296,6 +296,9 @@ msgstr "Большая Берта"
|
|||
msgid "Big Braid"
|
||||
msgstr "Большая коса"
|
||||
|
||||
msgid "Big Castle"
|
||||
msgstr "Большой замок"
|
||||
|
||||
msgid "Big Cell"
|
||||
msgstr "Большая Ячейка"
|
||||
|
||||
|
|
|
@ -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-02-12 11:34-0500\n"
|
||||
"PO-Revision-Date: 2022-03-05 12:12-0500\n"
|
||||
"Last-Translator: Skomoroh <skomoroh@gmail.com>\n"
|
||||
"Language-Team: Russian <ru@li.org>\n"
|
||||
"Language: ru\n"
|
||||
|
@ -844,6 +844,15 @@ msgstr ""
|
|||
"\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
|
||||
msgid "Unknown"
|
||||
msgstr "Неизвестный"
|
||||
|
|
|
@ -322,7 +322,17 @@ Please check your %(app)s installation.
|
|||
if cardset and c[1]:
|
||||
cardset.updateCardback(backname=c[1])
|
||||
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:
|
||||
fatal_no_cardsets(app)
|
||||
return 3
|
||||
|
@ -374,13 +384,15 @@ Please check your %(app)s installation.
|
|||
# load cardset
|
||||
progress = app.intro.progress
|
||||
if not app.loadCardset(cardset, progress=progress, update=1):
|
||||
for cardset in app.cardset_manager.getAll():
|
||||
progress.reset()
|
||||
if app.loadCardset(cardset, progress=progress, update=1):
|
||||
break
|
||||
else:
|
||||
fatal_no_cardsets(app)
|
||||
return 3
|
||||
if not cardset:
|
||||
for cardset in app.cardset_manager.getAll():
|
||||
progress.reset()
|
||||
|
||||
if app.loadCardset(cardset, progress=progress, update=1):
|
||||
break
|
||||
else:
|
||||
fatal_no_cardsets(app)
|
||||
return 3
|
||||
|
||||
# ok
|
||||
return 0
|
||||
|
|
Loading…
Add table
Reference in a new issue