mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 04:20:22 +01:00
Fixed translations.py support in wicd-curses.
This commit is contained in:
@@ -26,11 +26,7 @@ from curses_misc import TextDialog,DynWrap,MaskingEdit,ComboBox,error
|
||||
import wicd.misc as misc
|
||||
from wicd.misc import noneToString, stringToNone, noneToBlankString, to_bool
|
||||
|
||||
|
||||
|
||||
from wicd.translations import language
|
||||
for i in language.keys():
|
||||
language[i] = language[i].decode('utf8')
|
||||
|
||||
daemon = None
|
||||
wired = None
|
||||
|
||||
2
curses/prefs_curses.py
Executable file → Normal file
2
curses/prefs_curses.py
Executable file → Normal file
@@ -29,8 +29,6 @@ wireless = None
|
||||
wired = None
|
||||
|
||||
from wicd.translations import language
|
||||
for i in language.keys():
|
||||
language[i] = language[i].decode('utf8')
|
||||
|
||||
class PrefsDialog(urwid.WidgetWrap):
|
||||
def __init__(self,body,pos,ui,dbus=None):
|
||||
|
||||
2
curses/wicd-curses.py
Normal file → Executable file
2
curses/wicd-curses.py
Normal file → Executable file
@@ -866,7 +866,6 @@ def main():
|
||||
# Import the screen based on whatever the user picked.
|
||||
# The raw_display will have some features that may be useful to users
|
||||
# later
|
||||
parser.set_defaults(screen='raw')
|
||||
if options.screen == 'raw':
|
||||
import urwid.raw_display
|
||||
ui = urwid.raw_display.Screen()
|
||||
@@ -955,7 +954,6 @@ setup_dbus()
|
||||
########################################
|
||||
if __name__ == '__main__':
|
||||
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REVNO,daemon.Hello()))
|
||||
# raw = True. curses = False
|
||||
parser.set_defaults(screen='raw')
|
||||
parser.add_option("-r", "--raw-screen",action="store_const",const='raw'
|
||||
,dest='screen',help="use urwid's raw screen controller (default)")
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -* coding: utf-8 -*-
|
||||
# ^^ why do I need this?
|
||||
|
||||
#
|
||||
# Copyright (C) 2007 - 2009 Adam Blackburn
|
||||
|
||||
Reference in New Issue
Block a user