mirror of
https://github.com/gryf/wicd.git
synced 2026-01-05 21:34:16 +01:00
Added translations.py, and adapted all gtk and curses ui files to use it.
Moved the language dict functions and get_gettext to translations.py. Also killed the functions and laid the dict bare in the file Removed all instances of language[number] from wicd.
This commit is contained in:
@@ -24,7 +24,7 @@ import dbusmanager
|
||||
from misc import noneToString, stringToNone, noneToBlankString, to_bool
|
||||
from guiutil import error, SmallLabel, LabelEntry, GreyLabel, LeftAlignedLabel, string_input
|
||||
|
||||
language = misc.get_language_list_gui()
|
||||
from translations import language
|
||||
|
||||
# These get set when a NetworkEntry is instantiated.
|
||||
daemon = None
|
||||
@@ -57,9 +57,9 @@ class AdvancedSettingsDialog(gtk.Dialog):
|
||||
self.txt_gateway = LabelEntry(language['gateway'])
|
||||
self.txt_search_dom = LabelEntry(language['search_domain'])
|
||||
self.txt_domain = LabelEntry(language['dns_domain'])
|
||||
self.txt_dns_1 = LabelEntry(language['dns'] + ' ' + language['1'])
|
||||
self.txt_dns_2 = LabelEntry(language['dns'] + ' ' + language['2'])
|
||||
self.txt_dns_3 = LabelEntry(language['dns'] + ' ' + language['3'])
|
||||
self.txt_dns_1 = LabelEntry(language['dns'] + ' 1')
|
||||
self.txt_dns_2 = LabelEntry(language['dns'] + ' 2')
|
||||
self.txt_dns_3 = LabelEntry(language['dns'] + ' 3')
|
||||
self.chkbox_static_ip = gtk.CheckButton(language['use_static_ip'])
|
||||
self.chkbox_static_dns = gtk.CheckButton(language['use_static_dns'])
|
||||
self.chkbox_global_dns = gtk.CheckButton(language['use_global_dns'])
|
||||
|
||||
Reference in New Issue
Block a user