Merge pull request #517 from xnox/gettext-fallback

Allow starting subiquity/console-conf without translations.
This commit is contained in:
Dimitri John Ledkov 2019-08-07 15:57:57 +01:00 committed by GitHub
commit d64c634b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def switch_language(code='en_US'):
return message
elif code:
translation = gettext.translation('subiquity', localedir=localedir,
languages=[code])
languages=[code], fallback=True)
def my_gettext(message):
if not message: