tools/misc: prevent icon names from being translated
They are identifier strings, not human-readable. bzr revid: p_christ@hol.gr-20101116150537-s7tyw7d6y0r1dl6c
This commit is contained in:
+6
-2
@@ -1125,7 +1125,7 @@ def debug(what):
|
||||
netsvc.Logger().notifyChannel(st[3], netsvc.LOG_DEBUG, what)
|
||||
|
||||
|
||||
icons = map(lambda x: (x,x), ['STOCK_ABOUT', 'STOCK_ADD', 'STOCK_APPLY', 'STOCK_BOLD',
|
||||
__icons_list = ['STOCK_ABOUT', 'STOCK_ADD', 'STOCK_APPLY', 'STOCK_BOLD',
|
||||
'STOCK_CANCEL', 'STOCK_CDROM', 'STOCK_CLEAR', 'STOCK_CLOSE', 'STOCK_COLOR_PICKER',
|
||||
'STOCK_CONNECT', 'STOCK_CONVERT', 'STOCK_COPY', 'STOCK_CUT', 'STOCK_DELETE',
|
||||
'STOCK_DIALOG_AUTHENTICATION', 'STOCK_DIALOG_ERROR', 'STOCK_DIALOG_INFO',
|
||||
@@ -1161,7 +1161,11 @@ icons = map(lambda x: (x,x), ['STOCK_ABOUT', 'STOCK_ADD', 'STOCK_APPLY', 'STOCK_
|
||||
'terp-gdu-smart-failing','terp-go-week','terp-gtk-select-all','terp-locked','terp-mail-forward',
|
||||
'terp-mail-message-new','terp-mail-replied','terp-rating-rated','terp-stage','terp-stock_format-scientific',
|
||||
'terp-dolar_ok!','terp-idea','terp-stock_format-default','terp-mail-','terp-mail_delete'
|
||||
])
|
||||
]
|
||||
|
||||
def icons(*a, **kw):
|
||||
global __icons_list
|
||||
return [(x, x) for x in __icons_list ]
|
||||
|
||||
def extract_zip_file(zip_file, outdirectory):
|
||||
zf = zipfile.ZipFile(zip_file, 'r')
|
||||
|
||||
Reference in New Issue
Block a user