locale: Fixed setting lang :)
This commit is contained in:
parent
8b7292d6f6
commit
fcf4d9017b
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
# === Parameters
|
||||
#
|
||||
# $lang:
|
||||
# Value to set into $LANG environment.
|
||||
# Value to set into $LANG environment. Defaults to en_US.
|
||||
#
|
||||
# === Sample usage
|
||||
#
|
||||
|
@ -18,7 +18,7 @@ class locale($lang="en_US") {
|
|||
"centos": {
|
||||
augeas { "i18n":
|
||||
context => "/files/etc/sysconfig/i18n",
|
||||
changes => "set LANG en_US",
|
||||
changes => "set LANG ${lang}",
|
||||
}
|
||||
}
|
||||
"fedora": {
|
||||
|
@ -27,13 +27,13 @@ class locale($lang="en_US") {
|
|||
/^1[0-7]/ => "/files/etc/sysconfig/i18n",
|
||||
default => "/files/etc/locale.conf",
|
||||
},
|
||||
changes => "set LANG en_US",
|
||||
changes => "set LANG ${lang}",
|
||||
}
|
||||
}
|
||||
"ubuntu": {
|
||||
augeas { "i18n":
|
||||
context => "/files/etc/default/locale",
|
||||
changes => "set LANG en_US",
|
||||
changes => "set LANG ${lang}",
|
||||
}
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Add table
Reference in a new issue