1
0
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:
Adam Blackburn
2009-04-26 07:53:24 +09:00
parent 002c66ca82
commit e407230d62
2 changed files with 4 additions and 8 deletions

View File

@@ -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