~mvo/software-center/lp-955346

« back to all changes in this revision

Viewing changes to softwarecenter/hw.py

  • Committer: Michael Vogt
  • Date: 2012-03-20 08:06:58 UTC
  • Revision ID: michael.vogt@ubuntu.com-20120320080658-xrz3z7q349u21fqa
softwarecenter/hw.py: add FIXME, add string for short HW summary of the opengl driver blacklist (for the translators)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
 
27
27
TAG_DESCRIPTION = {
 
28
    # normal tags
28
29
    'hardware::webcam': _('webcam'),
29
30
    'hardware::digicam': _('digicam'),
30
31
    'hardware::input:mouse': _('mouse'),
40
41
    'hardware::storage:dvd-writer': _('DVD burner'),
41
42
    'hardware::storage:floppy': _('floppy disk drive'),
42
43
    'hardware::video:opengl': _('OpenGL hardware acceleration'),
43
 
 
 
44
    # "special" private tag extenstion that needs special handling
 
45
    OPENGL_DRIVER_BLACKLIST_TAG : _('Graphics driver that is not %s'),
44
46
}
45
47
 
46
48
TAG_MISSING_DESCRIPTION = {
81
83
 
82
84
 
83
85
def get_hw_short_description(tag):
 
86
    # FIXME: deal with OPENGL_DRIVER_BLACKLIST_TAG as this needs rsplit(":")
 
87
    #        and a view of all available tags
84
88
    s = TAG_DESCRIPTION.get(tag)
85
89
    return utf8(s)
86
90