1
0

i18n: simplify language default. only translate string if using GUI.

This commit is contained in:
SomberNight
2024-01-16 17:23:43 +00:00
parent 83c47439cd
commit 0e5a1380ca
2 changed files with 5 additions and 10 deletions

View File

@@ -367,6 +367,8 @@ def main():
# not been imported yet. (see #4621)
# Note: it is ok to call set_language() again later, but note that any call only applies
# to not-yet-evaluated strings.
# Note: the CLI is intentionally always non-localized.
# Note: Some unit tests might rely on the default non-localized strings.
if cmdname == 'gui':
gui_name = config.GUI_NAME
lang = config.LOCALIZATION_LANGUAGE