Skip to content

Commit

Permalink
Set new game finished message to clarify if the demo was used.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Jun 22, 2024
1 parent 764fb52 commit 58e2eb8
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 8 deletions.
8 changes: 7 additions & 1 deletion po/de_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2024-05-31 20:27-0400\n"
"PO-Revision-Date: 2024-06-22 12:14-0400\n"
"Last-Translator: H. Schaekel <[email protected]>\n"
"Language-Team: German\n"
"Language: de\n"
Expand Down Expand Up @@ -2139,6 +2139,12 @@ msgstr ""
msgid "You used %(h)s hint(s) during this game."
msgstr ""

msgid "You used %(h)s hint(s) and the demo during this game."
msgstr ""

msgid "You used the demo during this game."
msgstr ""

msgid "You are Stuck"
msgstr ""

Expand Down
8 changes: 7 additions & 1 deletion po/fr_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2024-05-31 20:26-0400\n"
"PO-Revision-Date: 2024-06-22 12:14-0400\n"
"Last-Translator: Eric Rausch <[email protected]>\n"
"Language-Team: French\n"
"Language: fr\n"
Expand Down Expand Up @@ -2170,6 +2170,12 @@ msgstr "Jeu terminé, mais pas sans mon aide..."
msgid "You used %(h)s hint(s) during this game."
msgstr ""

msgid "You used %(h)s hint(s) and the demo during this game."
msgstr ""

msgid "You used the demo during this game."
msgstr ""

msgid "You are Stuck"
msgstr ""

Expand Down
8 changes: 7 additions & 1 deletion po/it_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2024-05-31 20:26-0400\n"
"PO-Revision-Date: 2024-06-22 12:14-0400\n"
"Last-Translator: Giuliano Colla <[email protected]>\n"
"Language-Team: Italiano <[email protected]>\n"
"Language: it\n"
Expand Down Expand Up @@ -2178,6 +2178,12 @@ msgstr "Gioco terminato, ma non senza il mio aiuto..."
msgid "You used %(h)s hint(s) during this game."
msgstr ""

msgid "You used %(h)s hint(s) and the demo during this game."
msgstr ""

msgid "You used the demo during this game."
msgstr ""

msgid "You are Stuck"
msgstr ""

Expand Down
8 changes: 7 additions & 1 deletion po/pl_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: PySolFC\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2024-05-31 20:26-0400\n"
"PO-Revision-Date: 2024-06-22 12:14-0400\n"
"Last-Translator: Jerzy Trzeciak <[email protected]>\n"
"Language-Team: Polish <[email protected]>\n"
"Language: pl\n"
Expand Down Expand Up @@ -2180,6 +2180,12 @@ msgstr "Gra zakończona, ale nie bez mojej pomocy..."
msgid "You used %(h)s hint(s) during this game."
msgstr "Wykorzystałeś %(h)s podpowiedzi w czasie tej gry."

msgid "You used %(h)s hint(s) and the demo during this game."
msgstr ""

msgid "You used the demo during this game."
msgstr ""

msgid "You are Stuck"
msgstr "Utknąłeś"

Expand Down
8 changes: 7 additions & 1 deletion po/pt_BR_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2024-05-31 20:25-0400\n"
"PO-Revision-Date: 2024-06-22 12:15-0400\n"
"Last-Translator: Matheus Knack <[email protected]>\n"
"Language-Team: \n"
"Language: pt_BR\n"
Expand Down Expand Up @@ -2188,6 +2188,12 @@ msgstr "O jogo acabou, mas não sem minha ajuda..."
msgid "You used %(h)s hint(s) during this game."
msgstr "Você usou %(h)s dica(s) durante este jogo"

msgid "You used %(h)s hint(s) and the demo during this game."
msgstr ""

msgid "You used the demo during this game."
msgstr ""

msgid "You are Stuck"
msgstr "Você está preso"

Expand Down
6 changes: 6 additions & 0 deletions po/pysol.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,12 @@ msgstr ""
msgid "You used %(h)s hint(s) during this game."
msgstr ""

msgid "You used %(h)s hint(s) and the demo during this game."
msgstr ""

msgid "You used the demo during this game."
msgstr ""

msgid "You are Stuck"
msgstr ""

Expand Down
8 changes: 7 additions & 1 deletion po/ru_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2024-05-31 20:25-0400\n"
"PO-Revision-Date: 2024-06-22 12:16-0400\n"
"Last-Translator: Skomoroh <[email protected]>\n"
"Language-Team: Russian <[email protected]>\n"
"Language: ru\n"
Expand Down Expand Up @@ -2177,6 +2177,12 @@ msgstr "Игра закончена, но не без моей помощи..."
msgid "You used %(h)s hint(s) during this game."
msgstr ""

msgid "You used %(h)s hint(s) and the demo during this game."
msgstr ""

msgid "You used the demo during this game."
msgstr ""

msgid "You are Stuck"
msgstr ""

Expand Down
13 changes: 11 additions & 2 deletions pysollib/game/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2145,8 +2145,17 @@ def checkForWin(self):
self.finished = True
self.playSample("gamelost", priority=1000)
text = _("Game finished, but not without my help...")
hintsused = _("You used %(h)s hint(s) during this game.") % {
'h': self.stats.hints}
if self.stats.hints > 0 and not self.app.opt.free_hint:
if self.stats.demo_moves > 0:
hintsused = _("You used %(h)s hint(s) and the demo " +
"during this game.") % {
'h': self.stats.hints}
else:
hintsused = _("You used %(h)s hint(s) during this " +
"game.") % {
'h': self.stats.hints}
else:
hintsused = _("You used the demo during this game.")
d = MfxMessageDialog(
self.top, title=_("Game finished"), bitmap="info",
text=_(text + '\n\n' + hintsused),
Expand Down

0 comments on commit 58e2eb8

Please sign in to comment.