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

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

parent b5be52de
Branches
No related tags found
1 merge request!137Sazba diplomů
...@@ -1107,10 +1107,10 @@ class CertType(MOEnum): ...@@ -1107,10 +1107,10 @@ class CertType(MOEnum):
successful = auto() successful = auto()
honorary_mention = auto() honorary_mention = auto()
def friendly_name(self) -> str: def friendly_name(self, plural: bool = False) -> str:
return cert_type_names[self] 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)] return cert_type_file_names[self][int(plural)]
def short_code(self) -> str: def short_code(self) -> str:
...@@ -1122,9 +1122,9 @@ class CertType(MOEnum): ...@@ -1122,9 +1122,9 @@ class CertType(MOEnum):
cert_type_names = { cert_type_names = {
CertType.participation: 'účastnický list', CertType.participation: ('účastnický list', 'účastnické listy'),
CertType.successful: 'diplom vítěze / úspěšného řešitele', 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í', 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 register or to comment