1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 04:20:22 +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:
Andrew Psaltis
2009-03-04 00:02:14 -05:00
parent 6dd0642079
commit a1169cb1df
10 changed files with 254 additions and 245 deletions

View File

@@ -28,7 +28,9 @@ from wicd.misc import noneToString, stringToNone, noneToBlankString, to_bool
language = misc.get_language_list_gui()
from wicd.translations import language
for i in language.keys():
language[i] = language[i].decode('utf8')
daemon = None
wired = None
@@ -56,9 +58,9 @@ class AdvancedSettingsDialog(urwid.WidgetWrap):
use_global_dns_t = language['use_global_dns']
dns_dom_t = ('editcp',language['dns_domain']+': ')
search_dom_t = ('editcp',language['search_domain']+':')
dns1_t = ('editcp',language['dns']+ ' ' + language['1']+':'+' '*8)
dns2_t = ('editcp',language['dns']+ ' ' + language['2']+':'+' '*8)
dns3_t = ('editcp',language['dns']+ ' ' + language['3']+':'+' '*8)
dns1_t = ('editcp',language['dns']+ ' 1'+':'+' '*8)
dns2_t = ('editcp',language['dns']+ ' 2'+':'+' '*8)
dns3_t = ('editcp',language['dns']+ ' 3'+':'+' '*8)
cancel_t = 'Cancel'
ok_t = 'OK'