backport to python 2.3

git-svn-id: svn://10.0.0.236/trunk@206478 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
axel%pike.org
2006-08-03 12:16:04 +00:00
parent 8ee19f40b4
commit 0ef4154d87

View File

@@ -47,13 +47,12 @@ for mod, lst in modules.iteritems():
components[c] = mod
locales = {}
all = set()
all = {}
for app in ['browser', 'mail']:
path = 'mozilla/%s/locales/all-locales' % app
locales[app] = [l.strip() for l in open(path)]
all = all.union(locales[app])
all = list(all)
all.sort()
for loc in locales[app]: all[loc] = 1
all = sorted(all.keys())
locales['toolkit'] = all
#modules = {'browser': ['browser']} # XXX debug
#locales = {'browser': ['fr', 'pl']} # locales['mail']} # XXX debug