mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 03:45:38 -04:00
Testing: set more locale-globals in testing-script.
When testing Python modules, passing option --lang should also set the global 'locale' (to a BCP47 string, but hey) like it already sets localeConf.LANG.
This commit is contained in:
parent
c5abfd6371
commit
913521d022
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ def main():
|
||||||
libcalamares.globalstorage = libcalamares.GlobalStorage(None)
|
libcalamares.globalstorage = libcalamares.GlobalStorage(None)
|
||||||
libcalamares.globalstorage.insert("testing", True)
|
libcalamares.globalstorage.insert("testing", True)
|
||||||
if args.lang:
|
if args.lang:
|
||||||
|
libcalamares.globalstorage.insert("locale", args.lang)
|
||||||
libcalamares.globalstorage.insert("localeConf", {"LANG": args.lang})
|
libcalamares.globalstorage.insert("localeConf", {"LANG": args.lang})
|
||||||
|
|
||||||
# if a file for simulating globalStorage contents is provided, load it
|
# if a file for simulating globalStorage contents is provided, load it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue