Skip to content
Snippets Groups Projects
Commit 5236a1e5 authored by Elena Grandi's avatar Elena Grandi
Browse files

Start adding an option to set the default locale. refs: #949

parent e9e80c58
No related branches found
No related tags found
No related merge requests found
......@@ -476,6 +476,11 @@ class Client(object):
])
if self.args.slick_greeter:
ansible_options.extend(['-e', 'slick_greeter=true'])
if self.args.locale:
ansible_options.extend([
'-e',
'locale_default={}'.format(self.args.locale)
])
if self.args.dryrun:
ansible_options.extend(['--check'])
os.execvp(
......@@ -574,7 +579,7 @@ class Client(object):
)
parser.add_argument(
'-d', '--domain',
help=_("Local domain. Only specify if autodetection fails."),
help=_("local domain. only specify if autodetection fails."),
)
parser.add_argument(
'-H', '--hostname',
......@@ -598,6 +603,10 @@ class Client(object):
help=_("Also include contrib and non-free."),
action="store_true",
)
parser.add_argument(
'--locale',
help=_("default locale for the machine; default is it_IT.UTF-8."),
)
# Logging
parser.add_argument(
......
......@@ -2,3 +2,4 @@ grub_cmdline_default:
default: 'quiet splash'
# remove stack-guard on i386 architecture (crash Java). refs: #411
i386: 'quiet splash stack_guard_gap=1'
locale_default: it_IT.UTF-8
......@@ -81,8 +81,9 @@
- de_IT.UTF-8
- fr_FR.UTF-8
- es_ES.UTF-8
- '{{ locale_default }}'
- name: Set the default locale
command: localectl set-locale LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8
command: "localectl set-locale LANG={{ locale_default }} LANGUAGE={{ locale_default }}"
- name: red prompt for root
lineinfile:
......
fuss-client (10.0.22) UNRELEASED; urgency=medium
* Add an option --locale to set the default locale on standalone.
refs: #949
-- Elena Grandi <elena@truelite.it> Mon, 11 Jan 2021 14:24:15 +0100
fuss-client (10.0.21) unstable; urgency=medium
* Cleanup guest users
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment