equal
deleted
inserted
replaced
173 keyDisplay = QString(SDL_GetKeyName(SDL_GetKeyFromScancode(km.getScancodeFromKeyname(sdlkeys[j][0])))); |
173 keyDisplay = QString(SDL_GetKeyName(SDL_GetKeyFromScancode(km.getScancodeFromKeyname(sdlkeys[j][0])))); |
174 |
174 |
175 bool kbFallback = keyDisplay.trimmed().isEmpty(); |
175 bool kbFallback = keyDisplay.trimmed().isEmpty(); |
176 if (kbFallback) |
176 if (kbFallback) |
177 { |
177 { |
178 // If SDL doesn't know a name, show fallback enclosed in brackets |
178 // If SDL doesn't know a name, show fallback name and a warning |
179 keyDisplay = QString(sdlkeys[j][1]) + QString(" ") + HWApplication::translate("binds (keys)", "(unsupported)"); |
179 //: Name of QWERTY US keyboard layout |
|
180 keyDisplay = QString(sdlkeys[j][1]) + QString(" ") + HWApplication::translate("binds (keys)", "(QWERTY)"); |
180 } |
181 } |
181 if (isKeyboard) |
182 if (isKeyboard) |
182 { |
183 { |
183 if (!kbFallback) |
184 if (!kbFallback) |
184 keyDisplay = HWApplication::translate("binds (keys)", keyDisplay.toUtf8().constData()); |
185 keyDisplay = HWApplication::translate("binds (keys)", keyDisplay.toUtf8().constData()); |