po: make common button names translatable and show translations
This commit is contained in:
parent
a1874c572b
commit
14c2ac6959
|
@ -68,4 +68,24 @@ _DUMMY = (
|
||||||
_('Bootloader'),
|
_('Bootloader'),
|
||||||
_('Hardware'),
|
_('Hardware'),
|
||||||
_('Other'),
|
_('Other'),
|
||||||
|
|
||||||
|
# common button and task names (from special_keys.py)
|
||||||
|
_('Left Button'),
|
||||||
|
_('Right Button'),
|
||||||
|
_('Middle Button'),
|
||||||
|
_('Back Button'),
|
||||||
|
_('Forward Button'),
|
||||||
|
_('Mouse Gesture Button'),
|
||||||
|
_('Smart Shift'),
|
||||||
|
_('DPI Switch'),
|
||||||
|
_('Left Tilt'),
|
||||||
|
_('Right Tilt'),
|
||||||
|
_('Left Click'),
|
||||||
|
_('Right Click'),
|
||||||
|
_('Mouse Middle Button'),
|
||||||
|
_('Mouse Back Button'),
|
||||||
|
_('Mouse Forward Button'),
|
||||||
|
_('Gesture Button Navigation'),
|
||||||
|
_('Mouse Scroll Left Button'),
|
||||||
|
_('Mouse Scroll Right Button'),
|
||||||
)
|
)
|
||||||
|
|
|
@ -105,7 +105,7 @@ def _create_choice_control(setting):
|
||||||
c = Gtk.ComboBoxText()
|
c = Gtk.ComboBoxText()
|
||||||
# TODO i18n text entries
|
# TODO i18n text entries
|
||||||
for entry in setting.choices:
|
for entry in setting.choices:
|
||||||
c.append(str(int(entry)), str(entry))
|
c.append(str(int(entry)), _(str(entry)))
|
||||||
c.connect('changed', _combo_notify, setting)
|
c.connect('changed', _combo_notify, setting)
|
||||||
return c
|
return c
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ def _create_map_choice_control(setting):
|
||||||
if choices:
|
if choices:
|
||||||
# TODO i18n text entries
|
# TODO i18n text entries
|
||||||
for choice in choices:
|
for choice in choices:
|
||||||
valueBox.append(str(int(choice)), str(choice))
|
valueBox.append(str(int(choice)), _(str(choice)))
|
||||||
if current is not None:
|
if current is not None:
|
||||||
valueBox.set_active_id(str(int(current)))
|
valueBox.set_active_id(str(int(current)))
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ def _create_map_choice_control(setting):
|
||||||
c.pack_end(valueBox, False, False, 0)
|
c.pack_end(valueBox, False, False, 0)
|
||||||
# TODO i18n text entries
|
# TODO i18n text entries
|
||||||
for entry in setting.choices:
|
for entry in setting.choices:
|
||||||
keyBox.append(str(int(entry)), str(entry))
|
keyBox.append(str(int(entry)), _(str(entry)))
|
||||||
keyBox.set_active(0)
|
keyBox.set_active(0)
|
||||||
keyBox.connect('changed', _map_value_notify_key, (setting, valueBox))
|
keyBox.connect('changed', _map_value_notify_key, (setting, valueBox))
|
||||||
_map_populate_value_box(valueBox, setting, int(keyBox.get_active_id()))
|
_map_populate_value_box(valueBox, setting, int(keyBox.get_active_id()))
|
||||||
|
|
Loading…
Reference in New Issue