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

Improve display details of cardset info window

This commit is contained in:
Joe R 2025-03-14 19:21:14 -04:00
parent 72386af5e6
commit 69c1440b2b
9 changed files with 39 additions and 16 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: 2024-12-28 19:10-0500\n" "PO-Revision-Date: 2025-03-14 19:16-0400\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"
@ -4189,6 +4189,9 @@ msgstr "Nationalität:"
msgid "Year:" msgid "Year:"
msgstr "Jahr:" msgstr "Jahr:"
msgid "Num. cards:"
msgstr ""
msgid "Compatible with current game" msgid "Compatible with current game"
msgstr "" msgstr ""

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: 2024-12-28 19:10-0500\n" "PO-Revision-Date: 2025-03-14 19:16-0400\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"
@ -4240,6 +4240,9 @@ msgstr "Origine:"
msgid "Year:" msgid "Year:"
msgstr "Année:" msgstr "Année:"
msgid "Num. cards:"
msgstr ""
msgid "Compatible with current game" msgid "Compatible with current game"
msgstr "" msgstr ""

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: 2024-12-28 19:11-0500\n" "PO-Revision-Date: 2025-03-14 19:15-0400\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"
@ -4303,6 +4303,9 @@ msgstr "Nazionalità:"
msgid "Year:" msgid "Year:"
msgstr "Anno:" msgstr "Anno:"
msgid "Num. cards:"
msgstr ""
msgid "Compatible with current game" msgid "Compatible with current game"
msgstr "" msgstr ""

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: PySolFC\n" "Project-Id-Version: PySolFC\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: 2024-12-28 19:11-0500\n" "PO-Revision-Date: 2025-03-14 19:15-0400\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"
@ -4257,6 +4257,9 @@ msgstr "Narodowość:"
msgid "Year:" msgid "Year:"
msgstr "Rok:" msgstr "Rok:"
msgid "Num. cards:"
msgstr ""
msgid "Compatible with current game" msgid "Compatible with current game"
msgstr "" msgstr ""

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: 2024-12-28 19:11-0500\n" "PO-Revision-Date: 2025-03-14 19:15-0400\n"
"Last-Translator: Matheus Knack <mtknack555@gmail.com>\n" "Last-Translator: Matheus Knack <mtknack555@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: pt_BR\n" "Language: pt_BR\n"
@ -4263,6 +4263,9 @@ msgstr "Nacionalidade:"
msgid "Year:" msgid "Year:"
msgstr "Ano:" msgstr "Ano:"
msgid "Num. cards:"
msgstr ""
msgid "Compatible with current game" msgid "Compatible with current game"
msgstr "" msgstr ""

View file

@ -4045,6 +4045,9 @@ msgstr ""
msgid "Year:" msgid "Year:"
msgstr "" msgstr ""
msgid "Num. cards:"
msgstr ""
msgid "Compatible with current game" msgid "Compatible with current game"
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: 2024-12-28 19:12-0500\n" "PO-Revision-Date: 2025-03-14 19:14-0400\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"
@ -4312,6 +4312,9 @@ msgstr "Национальность:"
msgid "Year:" msgid "Year:"
msgstr "Год:" msgstr "Год:"
msgid "Num. cards:"
msgstr ""
msgid "Compatible with current game" msgid "Compatible with current game"
msgstr "" msgstr ""

View file

@ -662,20 +662,21 @@ class CardsetInfoDialog(MfxDialog):
row += 1 row += 1
styles = nationalities = year = None styles = nationalities = year = None
if cardset.si.styles: if cardset.si.styles:
styles = '\n'.join([CSI.STYLE[i] for i in cardset.si.styles]) styles = '\n'.join(sorted([CSI.STYLE[i]
for i in cardset.si.styles]))
if cardset.si.nationalities: if cardset.si.nationalities:
nationalities = '\n'.join([CSI.NATIONALITY[i] nationalities = '\n'.join(sorted([CSI.NATIONALITY[i]
for i in cardset.si.nationalities]) for i in
cardset.si.nationalities]))
if cardset.year: if cardset.year:
year = str(cardset.year) year = str(cardset.year)
frow = 0 frow = 0
for n, t in ( for n, t in (
# ('Version:', str(cardset.version)),
(_('Type:'), CSI.TYPE[cardset.type]), (_('Type:'), CSI.TYPE[cardset.type]),
(_('Styles:'), styles), (_('Styles:'), styles),
(_('Nationality:'), nationalities), (_('Nationality:'), nationalities),
(_('Year:'), year), (_('Year:'), year),
# (_('Number of cards:'), str(cardset.ncards)), (_('Num. cards:'), str(cardset.ncards)),
(_('Size:'), '%d x %d' % (cardset.CARDW, cardset.CARDH)), (_('Size:'), '%d x %d' % (cardset.CARDW, cardset.CARDH)),
): ):
if t is not None: if t is not None:

View file

@ -436,20 +436,21 @@ class CardsetInfoDialog(MfxDialog):
padx=0, pady=5, ipadx=5, ipady=5) padx=0, pady=5, ipadx=5, ipady=5)
styles = nationalities = year = None styles = nationalities = year = None
if cardset.si.styles: if cardset.si.styles:
styles = '\n'.join([CSI.STYLE[i] for i in cardset.si.styles]) styles = '\n'.join(sorted([CSI.STYLE[i]
for i in cardset.si.styles]))
if cardset.si.nationalities: if cardset.si.nationalities:
nationalities = '\n'.join([CSI.NATIONALITY[i] nationalities = '\n'.join(sorted([CSI.NATIONALITY[i]
for i in cardset.si.nationalities]) for i in
cardset.si.nationalities]))
if cardset.year: if cardset.year:
year = str(cardset.year) year = str(cardset.year)
row = 0 row = 0
for n, t in ( for n, t in (
# ('Version:', str(cardset.version)),
(_('Type:'), CSI.TYPE[cardset.type]), (_('Type:'), CSI.TYPE[cardset.type]),
(_('Styles:'), styles), (_('Styles:'), styles),
(_('Nationality:'), nationalities), (_('Nationality:'), nationalities),
(_('Year:'), year), (_('Year:'), year),
# (_('Number of cards:'), str(cardset.ncards)), (_('Num. cards:'), str(cardset.ncards)),
(_('Size:'), '%d x %d' % (cardset.CARDW, cardset.CARDH)), (_('Size:'), '%d x %d' % (cardset.CARDW, cardset.CARDH)),
): ):
if t is not None: if t is not None: