summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVratislav Podzimek <vpodzime@redhat.com>2012-08-30 13:30:10 +0200
committerVratislav Podzimek <vpodzime@redhat.com>2012-09-04 16:18:08 +0200
commit032d00df5baa9463f8e439dc99619238a6248c1e (patch)
tree39518f8ea338effa4186535266a8eb618db8a4ce /scripts
parent68f3fd92fe82cb36788ac7e10be7a754c004880b (diff)
downloadanaconda-032d00df5baa9463f8e439dc99619238a6248c1e.tar.gz
anaconda-032d00df5baa9463f8e439dc99619238a6248c1e.tar.xz
anaconda-032d00df5baa9463f8e439dc99619238a6248c1e.zip
Remove lang-table and localeinfo.py
We no longer use lang-table for anything. localeinfo.py is module for accessing data from lang-table.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am2
-rw-r--r--scripts/getlangnames.py48
2 files changed, 1 insertions, 49 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 6204fd349..01c049217 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -20,7 +20,7 @@
scriptsdir = $(libexecdir)/$(PACKAGE_NAME)
dist_scripts_SCRIPTS = upd-updates
dist_scripts_DATA = pyrc.py
-dist_noinst_SCRIPTS = getlangnames.py upd-kernel makeupdates
+dist_noinst_SCRIPTS = upd-kernel makeupdates
dist_bin_SCRIPTS = analog anaconda-cleanup instperf
diff --git a/scripts/getlangnames.py b/scripts/getlangnames.py
deleted file mode 100644
index 5e0f96dac..000000000
--- a/scripts/getlangnames.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# getlangnames.py
-#
-# Copyright (C) 2007 Red Hat, Inc. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-import sys
-sys.path.append("..")
-import localeinfo
-import localization
-
-import gettext
-
-localeInfo = localeinfo.get("en_US.UTF-8")
-names = {}
-for k in localeInfo.keys():
- found = False
- for l in localization.expand_langs(k):
- try:
- f = open("../po/%s.gmo" %(l,))
- except (OSError, IOError):
- continue
- cat = gettext.GNUTranslations(f)
- cat.set_output_charset("utf-8")
- names[localeInfo[k][0]] = cat.lgettext(localeInfo[k][0])
- found = True
- break
- if not found:
- names[localeInfo[k][0]] = localeInfo[k][0]
-
-nameList = names.keys()
-nameList.sort()
-
-for k in nameList:
- print("%s\t%s" % (k, names[k]))