From 2f12d375feeff83b2472878a3de74804c030c584 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Mon, 12 Dec 2011 09:16:39 +0400 Subject: [PATCH] Move os_install_lang from install to os_lang lib. --- pym/cl_fill.py | 6 ++++++ pym/cl_vars.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/pym/cl_fill.py b/pym/cl_fill.py index c4241f6..9faee1b 100644 --- a/pym/cl_fill.py +++ b/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"])))) diff --git a/pym/cl_vars.py b/pym/cl_vars.py index 0466cc5..0e35f3f 100644 --- a/pym/cl_vars.py +++ b/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