mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 12:28:08 +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
|
import wicd.misc as misc
|
||||||
from wicd.misc import noneToString, stringToNone, noneToBlankString, to_bool
|
from wicd.misc import noneToString, stringToNone, noneToBlankString, to_bool
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
from wicd.translations import language
|
from wicd.translations import language
|
||||||
for i in language.keys():
|
|
||||||
language[i] = language[i].decode('utf8')
|
|
||||||
|
|
||||||
daemon = None
|
daemon = None
|
||||||
wired = 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
|
wired = None
|
||||||
|
|
||||||
from wicd.translations import language
|
from wicd.translations import language
|
||||||
for i in language.keys():
|
|
||||||
language[i] = language[i].decode('utf8')
|
|
||||||
|
|
||||||
class PrefsDialog(urwid.WidgetWrap):
|
class PrefsDialog(urwid.WidgetWrap):
|
||||||
def __init__(self,body,pos,ui,dbus=None):
|
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.
|
# Import the screen based on whatever the user picked.
|
||||||
# The raw_display will have some features that may be useful to users
|
# The raw_display will have some features that may be useful to users
|
||||||
# later
|
# later
|
||||||
parser.set_defaults(screen='raw')
|
|
||||||
if options.screen == 'raw':
|
if options.screen == 'raw':
|
||||||
import urwid.raw_display
|
import urwid.raw_display
|
||||||
ui = urwid.raw_display.Screen()
|
ui = urwid.raw_display.Screen()
|
||||||
@@ -955,7 +954,6 @@ setup_dbus()
|
|||||||
########################################
|
########################################
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REVNO,daemon.Hello()))
|
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REVNO,daemon.Hello()))
|
||||||
# raw = True. curses = False
|
|
||||||
parser.set_defaults(screen='raw')
|
parser.set_defaults(screen='raw')
|
||||||
parser.add_option("-r", "--raw-screen",action="store_const",const='raw'
|
parser.add_option("-r", "--raw-screen",action="store_const",const='raw'
|
||||||
,dest='screen',help="use urwid's raw screen controller (default)")
|
,dest='screen',help="use urwid's raw screen controller (default)")
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -* coding: utf-8 -*-
|
# -* coding: utf-8 -*-
|
||||||
# ^^ why do I need this?
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007 - 2009 Adam Blackburn
|
# Copyright (C) 2007 - 2009 Adam Blackburn
|
||||||
|
|||||||
Reference in New Issue
Block a user