Fix the server docker image build

This commit is contained in:
2026-02-28 20:47:53 +01:00
parent 564ba1d85d
commit 5c01ecb2d1
11 changed files with 87 additions and 35 deletions

View File

@@ -24,7 +24,6 @@ import urllib.error
import urllib.parse
import json
from collections import namedtuple
import wx
from logbook import Logger
@@ -582,6 +581,7 @@ class LocaleSettings:
@classmethod
def supported_languages(cls):
"""Requires the application to be initialized, otherwise wx.Translation isn't set."""
import wx
pyfalog.info(f'using "{config.CATALOG}" to fetch languages, relatively base path "{os.getcwd()}"')
return {x: wx.Locale.FindLanguageInfo(x) for x in wx.Translations.Get().GetAvailableTranslations(config.CATALOG)}