Skip to content

Commit

Permalink
Clarify tooltip of "reset to default" button for keyboard shortcuts
Browse files Browse the repository at this point in the history
This prevents ambiguity about whether the reset applies to the current shortcut or to all shortcuts
  • Loading branch information
waldyrious authored and ximion committed Nov 6, 2023
1 parent 463d108 commit 2853c6a
Show file tree
Hide file tree
Showing 43 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion po/ak.po
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ msgid "Enable shortcuts"
msgstr "فعّل الاختصارات"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "عيّن المبدئي"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ar_MA.po
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ msgid "Enable shortcuts"
msgstr "Включване на клавишните комбинации"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ msgid "Enable shortcuts"
msgstr "Habilita les dreceres de teclat"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Estableix per defecte"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ msgid "Enable shortcuts"
msgstr "Používat zkratky"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Nastavit výchozí"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ msgid "Enable shortcuts"
msgstr "Tastenkombinationen aktivieren"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Standard setzen"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/el.po
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ msgid "Enable shortcuts"
msgstr "Ενεργοποίηση συντομεύσεων"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/en_GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ msgid "Enable shortcuts"
msgstr "Enable shortcuts"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Set default"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/eo.po
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ msgid "Enable shortcuts"
msgstr "Ŝalti fulmoklavojn"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Uzi kiel impliciton"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ msgid "Enable shortcuts"
msgstr "Activar atajos de teclado"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Predeterminar"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/eu.po
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ msgid "Enable shortcuts"
msgstr "Käytä pikanäppäimiä"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Aseta oletukseksi"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ msgid "Enable shortcuts"
msgstr "Activer les raccourcis"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Définir la valeur par défaut"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/gl.po
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/he.po
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ msgid "Enable shortcuts"
msgstr "הפעלת קיצורים"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "הגדרה כבררת מחדל"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/hr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,7 @@ msgid "Enable shortcuts"
msgstr "Aktiviraj prečace"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Postavi standardni"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/id.po
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ msgid "Enable shortcuts"
msgstr "Aktifkan pintasan"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Jadikan baku"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/is.po
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ msgid "Enable shortcuts"
msgstr "Abilita le scorciatoie da tastiera"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Imposta predefinito"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ msgid "Enable shortcuts"
msgstr "ショートカットを有効にする"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "デフォルトに設定"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ko.po
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ msgid "Enable shortcuts"
msgstr "바로 가기 활성화"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "기본값으로 설정"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/lt.po
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/mr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/nb_NO.po
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ msgid "Enable shortcuts"
msgstr "Skru på snarveier"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Sett som forvalg"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ne.po
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ msgid "Enable shortcuts"
msgstr "Sneltoetsen inschakelen"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Als standaard instellen"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/oc.po
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Definir per defaut"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ msgid "Enable shortcuts"
msgstr "Włączenie skrótów klawiszowych"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Przywraca domyślny"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ msgid "Enable shortcuts"
msgstr "Habilitar atalhos"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Restaurar atalho padrão"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/pt_PT.po
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ msgid "Enable shortcuts"
msgstr "Ativar atalhos do teclado"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Restaurar atalho padrão"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ msgid "Enable shortcuts"
msgstr "Activează prescurtări"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Setează ca implicit"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ msgid "Enable shortcuts"
msgstr "Включить комбинации клавиш"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Установить по умолчанию"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/sr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ msgid "Enable shortcuts"
msgstr "Омогући пречице"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Подеси подразумевано"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ msgid "Enable shortcuts"
msgstr "Aktivera genvägar"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Välj utgångsvärde"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/tilix.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/tr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ msgid "Enable shortcuts"
msgstr "Kısa yolları etkinleştir"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Öntanımlı değeri ayarla"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@ msgid "Enable shortcuts"
msgstr "Увімкнути скорочення"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "Встановити типовим"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/vi.po
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ msgid "Enable shortcuts"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr ""

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ msgid "Enable shortcuts"
msgstr "启用快捷键"

#: source/gx/tilix/prefeditor/prefdialog.d:805
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "设为默认值"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
2 changes: 1 addition & 1 deletion po/zh_TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ msgstr "快捷鍵"

#: source/gx/tilix/prefeditor/prefdialog.d:805
#, fuzzy
msgid "Set default"
msgid "Restore default shortcut for this action"
msgstr "儲存為預設"

#: source/gx/tilix/prefeditor/prefdialog.d:916
Expand Down
6 changes: 3 additions & 3 deletions source/gx/tilix/prefeditor/prefdialog.d
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ private:
bh.bind(SETTINGS_ACCELERATORS_ENABLED, cbAccelerators, "active", GSettingsBindFlags.DEFAULT);

btnDefault = new Button("edit-undo-symbolic", IconSize.BUTTON);
btnDefault.setTooltipText(_("Set default"));
btnDefault.setTooltipText(_("Restore default shortcut for this action"));
btnDefault.setSensitive(false);
btnDefault.addOnClicked(delegate(Button) {
TreeIter iter = tvShortcuts.getSelectedIter();
Expand All @@ -811,9 +811,9 @@ private:
size_t length;
string defaultValue;
if (filter.getValueString(iter, COLUMN_SHORTCUT_TYPE) == SC_TYPE_ACTION) {
defaultValue = gsShortcuts.getDefaultValue(action).getString(length);
defaultValue = gsShortcuts.getDefaultValue(action).getString(length);
} else {
defaultValue = SHORTCUT_DISABLED;
defaultValue = SHORTCUT_DISABLED;
}
filter.convertIterToChildIter(iter, iter);
if (defaultValue == SHORTCUT_DISABLED) {
Expand Down

0 comments on commit 2853c6a

Please sign in to comment.