mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 20:38:00 +01:00
Refactored several files (especially gui.py) to be more in line with python conventions and make the code easier to understand.
Added a bunch of docstrings. Fixed an invalid function call in wnettools.py.
This commit is contained in:
4
misc.py
4
misc.py
@@ -228,6 +228,10 @@ def noneToString(text):
|
||||
return str(text)
|
||||
|
||||
def get_gettext():
|
||||
""" Set up gettext for translations. """
|
||||
# Translation stuff
|
||||
# borrowed from an excellent post on how to do this on
|
||||
# http://www.learningpython.com/2006/12/03/translating-your-pythonpygtk-application/
|
||||
local_path = os.path.realpath(os.path.dirname(sys.argv[0])) + '/translations'
|
||||
langs = []
|
||||
lc, encoding = locale.getdefaultlocale()
|
||||
|
||||
Reference in New Issue
Block a user