Fix remaining instances of package type as a gettext parameter

Fixes #355
This commit is contained in:
rubenwardy
2024-06-09 13:26:16 +01:00
parent 2869876b67
commit 80499dbf6c
4 changed files with 13 additions and 4 deletions

View File

@@ -108,6 +108,15 @@ class PackageType(enum.Enum):
return lazy_gettext(u"%(display_name)s has a texture pack placed at #%(place)d.",
display_name=display_name, place=place)
@property
def do_you_recommend(self):
if self == PackageType.MOD:
return lazy_gettext(u"Do you recommend this mod?")
elif self == PackageType.GAME:
return lazy_gettext(u"Do you recommend this game?")
elif self == PackageType.TXP:
return lazy_gettext(u"Do you recommend this texture pack?")
@classmethod
def get(cls, name):
try: