Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions setup_station/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def reset(cls) -> None:
def get_text(text: str) -> str:
"""
Global translation function that always returns current language translation.

Args:
text: Text to translate

Returns:
str: Translated text in current language
"""
# Force reload of translations for current language
gettext.bindtextdomain('setup-station-init', '/usr/local/share/locale')
gettext.textdomain('setup-station-init')
gettext.bindtextdomain('setup-station', '/usr/local/share/locale')
gettext.textdomain('setup-station')
return gettext.gettext(text)