diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-11-16 17:05:37 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-11-16 17:05:37 +0200 |
| commit | 8ce5d2bc20fb631a3df359c667c344d4c7aafa92 (patch) | |
| tree | dfbef5ddf038ba4fe7d15e9118e5907fea9867e2 /bin/tools/misc.py | |
| parent | 08ef1a95f1d60df8fb777b9022b17fc6091b274e (diff) | |
tools/misc: prevent icon names from being translated
They are identifier strings, not human-readable.
bzr revid: p_christ@hol.gr-20101116150537-s7tyw7d6y0r1dl6c
Diffstat (limited to 'bin/tools/misc.py')
| -rw-r--r-- | bin/tools/misc.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 90b4c135214..79121eb89c9 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -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') |
