Browse Source

Move os_install_lang from install to os_lang lib.

develop
Mike Hiretsky 11 years ago
parent
commit
2f12d375fe
  1. 6
      pym/cl_fill.py
  2. 3
      pym/cl_vars.py

6
pym/cl_fill.py

@ -731,3 +731,9 @@ class fillVars(varsShare):
if path.exists(timezonefile):
return open(timezonefile,"r").read().strip()
return "UTC"
def get_os_lang(self):
"""Supported languages"""
return list(sorted(list(set(clLocale().getLangs()) &
set(["en_US","de_DE","es_ES","fr_FR","it_IT","pl_PL","pt_BR",
"uk_UA","bg_BG","ru_RU","ro_RO","pt_PT"]))))

3
pym/cl_vars.py

@ -163,6 +163,9 @@ class Data:
# kernel uid get by uuid root device
cl_kernel_uid = {'hide':True}
# supported languages
os_lang = {}
# this variable work with template function belong(package_name)
# if the variable is defined then will use only template, which
# has package_name in belong equal value of this variable or

Loading…
Cancel
Save