|
34 | 34 | # Office: Word processor, Spreadsheet, Presentation, Document, Source code
|
35 | 35 | # System: file manager, Text editor, Terminal, Calculator
|
36 | 36 |
|
37 |
| -preferred_app_defs[_("Accessibility")] = ( |
| 37 | +translated_categories = { |
| 38 | + "accessibility": _("Accessibility"), |
| 39 | + "internet": _("Internet"), |
| 40 | + "multimedia": _("Multimedia"), |
| 41 | + "office": _("Office"), |
| 42 | + "system": _("System") |
| 43 | +} |
| 44 | + |
| 45 | +preferred_app_defs["accessibility"] = ( |
38 | 46 | # 1st mimetype is to let us find apps
|
39 | 47 | # 2nd mimetype is to set default handler for (so we handle all of that type, not just a specific format)
|
40 | 48 | )
|
41 | 49 |
|
42 |
| -preferred_app_defs[_("Internet")] = ( |
| 50 | +preferred_app_defs["internet"] = ( |
43 | 51 | ( "x-scheme-handler/http", "x-scheme-handler/http", _("Web") ),
|
44 | 52 | ( "x-scheme-handler/mailto", "x-scheme-handler/mailto", _("Mail") ),
|
45 | 53 | )
|
46 | 54 |
|
47 |
| -preferred_app_defs[_("Multimedia")] = ( |
| 55 | +preferred_app_defs["multimedia"] = ( |
48 | 56 | ( "audio/x-vorbis+ogg", "audio", _("Music") ),
|
49 | 57 | ( "video/x-ogm+ogg", "video", _("Video") ),
|
50 | 58 | ( "image/jpeg", "image", _("Photos") ),
|
51 | 59 | )
|
52 | 60 |
|
53 |
| -preferred_app_defs[_("Office")] = ( |
| 61 | +preferred_app_defs["office"] = ( |
54 | 62 | ( "application/msword", "application/msword", _("Word") ),
|
55 | 63 | ( "application/msexcel", "application/msexcel", _("Spreadsheet") ),
|
56 | 64 | ( "application/pdf", "application/pdf", _("PDF") ),
|
57 | 65 | ( "text/x-python", "text/x-python", _("Source Code") ),
|
58 | 66 | )
|
59 | 67 |
|
60 |
| -preferred_app_defs[_("System")] = ( |
| 68 | +preferred_app_defs["system"] = ( |
61 | 69 | ( "inode/directory", "inode/directory", _("File Manager") ),
|
62 | 70 | ( "text/plain", "text/plain", _("Plain Text") ),
|
63 | 71 | )
|
@@ -583,7 +591,7 @@ def on_module_selected(self):
|
583 | 591 | for name in preferred_app_defs:
|
584 | 592 | items = preferred_app_defs[name]
|
585 | 593 | if len(items) > 0:
|
586 |
| - settings = page.add_section(name) |
| 594 | + settings = page.add_section(translated_categories[name]) |
587 | 595 | # size_group = Gtk.SizeGroup.new(Gtk.SizeGroupMode.HORIZONTAL)
|
588 | 596 | for item in items:
|
589 | 597 | widget = SettingsWidget()
|
|
0 commit comments