summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/systemconfig.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-07 21:10:44 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-07 21:10:44 (GMT)
commitc6127b6661439b1c7fa2240a102cd4dcb02ddba8 (patch)
treec317a4bd6b3acaf78f9b119ba90c185e96cc01a5 /abs/core/LinHES-config/systemconfig.py
parent5ec18757188fa4a0d90f5f6cf0943fd20bd8be34 (diff)
downloadlinhes_pkgbuild-c6127b6661439b1c7fa2240a102cd4dcb02ddba8.zip
linhes_pkgbuild-c6127b6661439b1c7fa2240a102cd4dcb02ddba8.tar.gz
linhes_pkgbuild-c6127b6661439b1c7fa2240a102cd4dcb02ddba8.tar.bz2
LinHES-config: add support for selecting the lang/country during install.
The lang is then translated to a locale which is then applied to the system by mv_locale. The lang->locale lookup is done inside mv_locale with a static dict. refs #738 refs #100 refs #680
Diffstat (limited to 'abs/core/LinHES-config/systemconfig.py')
-rwxr-xr-xabs/core/LinHES-config/systemconfig.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/abs/core/LinHES-config/systemconfig.py b/abs/core/LinHES-config/systemconfig.py
index baaab4f..d9c83b7 100755
--- a/abs/core/LinHES-config/systemconfig.py
+++ b/abs/core/LinHES-config/systemconfig.py
@@ -153,7 +153,8 @@ def main(argv):
"all":False, "dhcp_request":False ,
"func":False, "supplemental":False,
"vnc":False, "fileshare":False,
- "config_xml":False }
+ "config_xml":False,
+ "locale":False }
try:
opts, args = getopt.getopt(argv, 'c:hm:d:', ["help","modules" ] )
except getopt.GetoptError, why:
@@ -205,6 +206,8 @@ def main(argv):
cmdmodule["vnc"] = True
cmdmodule["fileshare"] = True
cmdmodule["config_xml"] = True
+ cmdmodule["locale"] = True
+
##putting this here until I can create the seperate share module
#if cmdmodule["fileshare"]:
@@ -373,7 +376,9 @@ def main(argv):
import mv_fileshare
mv_fileshare.setup_fileshare(systemconfig, data_config)
-
+ if cmdmodule["locale"]:
+ import mv_locale
+ mv_locale.setup_locale(systemconfig)
if __name__ == "__main__":