Skip to content

Commit

Permalink
Add translation files for Czech (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltrails committed Sep 28, 2023
1 parent 0c1d6b2 commit 7051e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions translations/cs_CZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,12 @@ Velikost tohoto grafu lze měnit. </translation>
<message>
<location filename="../vdu_controls.py" line="6452" />
<source>Smoothly on solar</source>
<translation>Vždy ihned</translation>
<translation>Hladký na solární</translation>
</message>
<message>
<location filename="../vdu_controls.py" line="6452" />
<source>Smoothly on menu</source>
<translation>Vždy ihned</translation>
<translation>Hladce v nabídce</translation>
</message>
<message>
<location filename="../vdu_controls.py" line="6453" />
Expand Down
4 changes: 2 additions & 2 deletions vdu_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6459,8 +6459,8 @@ def abbreviation(self, abbreviations=abbreviations) -> str: # Even more hacky

def description(self, descriptions=descriptions) -> str: # Yuck
if self.value in (PresetTransitionFlag.NONE, PresetTransitionFlag.ALWAYS):
return descriptions[self]
return ', '.join([descriptions[component] for component in self.component_values()])
return tr(descriptions[self])
return ', '.join([tr(descriptions[component]) for component in self.component_values()])

def component_values(self) -> list[PresetTransitionFlag]:
# similar to Python 3.11 enum.show_flag_values(self) - list of power of two components for self
Expand Down

0 comments on commit 7051e49

Please sign in to comment.