mirror of
https://github.com/gryf/wicd.git
synced 2025-12-21 21:38:06 +01:00
Fixed setup.py translations installation and made wicd-daemon.py +x
This commit is contained in:
12
setup.py
12
setup.py
@@ -463,14 +463,10 @@ try:
|
||||
print 'Using pid path', os.path.basename(wpath.pidfile)
|
||||
print 'Language support for',
|
||||
for language in os.listdir('translations/'):
|
||||
if not language.startswith('.'):
|
||||
codes = language.split('_')
|
||||
short_language = language
|
||||
if codes[0].lower() == codes[1].lower():
|
||||
short_language = codes[0].lower()
|
||||
print short_language,
|
||||
data.append((wpath.translations + short_language + '/LC_MESSAGES/',
|
||||
['translations/' + language + '/LC_MESSAGES/wicd.mo']))
|
||||
print language,
|
||||
data.append((wpath.translations + language + '/LC_MESSAGES/',
|
||||
['translations/' + language + '/LC_MESSAGES/wicd.mo']))
|
||||
print
|
||||
except Exception, e:
|
||||
print str(e)
|
||||
print '''Error setting up data array. This is normal if
|
||||
|
||||
Reference in New Issue
Block a user