Skip to content
Snippets Groups Projects
Commit acc1345b authored by Martin Mareš's avatar Martin Mareš
Browse files

Diplomy: CertType umí i název v množném čísle

parent 3cc6aa1d
No related branches found
No related tags found
No related merge requests found
......@@ -1107,10 +1107,10 @@ class CertType(MOEnum):
successful = auto()
honorary_mention = auto()
def friendly_name(self) -> str:
return cert_type_names[self]
def friendly_name(self, plural: bool = False) -> str:
return cert_type_names[self][int(plural)]
def file_name(self, plural: bool) -> str:
def file_name(self, plural: bool = False) -> str:
return cert_type_file_names[self][int(plural)]
def short_code(self) -> str:
......@@ -1122,9 +1122,9 @@ class CertType(MOEnum):
cert_type_names = {
CertType.participation: 'účastnický list',
CertType.successful: 'diplom vítěze / úspěšného řešitele',
CertType.honorary_mention: 'pochvalné uznání',
CertType.participation: ('účastnický list', 'účastnické listy'),
CertType.successful: ('diplom vítěze / úspěšného řešitele', 'diplomy vítěze / úspěšného řešitele'),
CertType.honorary_mention: ('pochvalné uznání', 'pochvalná uznání'),
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment