Skip to content

Commit

Permalink
Fix statement ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcoder committed May 20, 2024
1 parent b69f794 commit 415819a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ui/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ def _(x): return x

DEFAULT_LOCALE = 'en_GB.UTF-8@ueb2'

translations = install(DEFAULT_LOCALE)
# this will've already been installed globally, but this keeps flake8 happy
_ = translations.gettext

BUILTIN_LANGUAGES = OrderedDict([
(lang.code, _(lang.title)) for lang in builtin
])

translations = install(BUILTIN_LANGUAGES[DEFAULT_LOCALE])

# this will've already been installed globally, but this keeps flake8 happy
_ = translations.gettext

# For detecting the default language of older installations, which
# didn't really have switchable language but did add a default
# sort-of-locale to the global state file.
Expand Down

0 comments on commit 415819a

Please sign in to comment.