diff options
Diffstat (limited to 'src/ui/bindingswidget.c')
-rw-r--r-- | src/ui/bindingswidget.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c index 558bdcd5..c73982b3 100644 --- a/src/ui/bindingswidget.c +++ b/src/ui/bindingswidget.c | |||
@@ -26,6 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
26 | #include "command.h" | 26 | #include "command.h" |
27 | #include "util.h" | 27 | #include "util.h" |
28 | #include "app.h" | 28 | #include "app.h" |
29 | #include "lang.h" | ||
29 | #if defined (iPlatformAppleDesktop) | 30 | #if defined (iPlatformAppleDesktop) |
30 | # include "macos.h" | 31 | # include "macos.h" |
31 | #endif | 32 | #endif |
@@ -97,6 +98,7 @@ static void updateItems_BindingsWidget_(iBindingsWidget *d) { | |||
97 | iBindingItem *item = new_BindingItem(); | 98 | iBindingItem *item = new_BindingItem(); |
98 | item->id = bind->id; | 99 | item->id = bind->id; |
99 | set_String(&item->label, &bind->label); | 100 | set_String(&item->label, &bind->label); |
101 | translate_Lang(&item->label); | ||
100 | toString_Sym(bind->key, bind->mods, &item->key); | 102 | toString_Sym(bind->key, bind->mods, &item->key); |
101 | addItem_ListWidget(d->list, item); | 103 | addItem_ListWidget(d->list, item); |
102 | } | 104 | } |
@@ -118,8 +120,8 @@ void init_BindingsWidget(iBindingsWidget *d) { | |||
118 | updateItems_BindingsWidget_(d); | 120 | updateItems_BindingsWidget_(d); |
119 | d->menu = makeMenu_Widget( | 121 | d->menu = makeMenu_Widget( |
120 | w, | 122 | w, |
121 | (iMenuItem[]){ { "Reset to Default", 0, 0, "binding.reset" }, | 123 | (iMenuItem[]){ { "${menu.binding.reset}", 0, 0, "binding.reset" }, |
122 | { uiTextCaution_ColorEscape "Clear", 0, 0, "binding.clear" } }, | 124 | { uiTextCaution_ColorEscape "${menu.binding.clear}", 0, 0, "binding.clear" } }, |
123 | 2); | 125 | 2); |
124 | } | 126 | } |
125 | 127 | ||
@@ -143,9 +145,9 @@ static void setActiveItem_BindingsWidget_(iBindingsWidget *d, size_t pos) { | |||
143 | #if defined (iPlatformAppleDesktop) | 145 | #if defined (iPlatformAppleDesktop) |
144 | /* Native menus must be disabled while grabbing keys so the shortcuts don't trigger. */ | 146 | /* Native menus must be disabled while grabbing keys so the shortcuts don't trigger. */ |
145 | const iBool enableNativeMenus = (d->activePos == iInvalidPos); | 147 | const iBool enableNativeMenus = (d->activePos == iInvalidPos); |
146 | enableMenu_MacOS("Edit", enableNativeMenus); | 148 | enableMenu_MacOS("${menu.title.edit}", enableNativeMenus); |
147 | enableMenu_MacOS("View", enableNativeMenus); | 149 | enableMenu_MacOS("${menu.title.view}", enableNativeMenus); |
148 | enableMenu_MacOS("Identity", enableNativeMenus); | 150 | enableMenu_MacOS("${menu.title.identity}", enableNativeMenus); |
149 | #endif | 151 | #endif |
150 | } | 152 | } |
151 | 153 | ||