Base: Rename some keymaps to use xx-xx format where appropriate

- en.json -> en-us.json
- gb.json -> en-gb.json
- ptbr.json -> pt-br.json
- ptpt.json -> pt-pt.json
This commit is contained in:
Linus Groh 2021-02-01 19:12:41 +01:00 committed by Andreas Kling
parent de676bbf97
commit ee41d6e154
Notes: sideshowbarker 2024-07-18 22:38:10 +09:00
7 changed files with 4 additions and 4 deletions

View File

@ -18,11 +18,11 @@ Loading by name will search for keyboard layout files in `/res/keymaps/*.json`.
Load a keyboard layout by name:
```sh
# keymap en
# keymap en-us
```
Load a keyboard layout using a file:
```sh
# keymap /res/keymaps/en.json
# keymap /res/keymaps/en-us.json
# keymap ./map.json
```

View File

@ -404,7 +404,7 @@ KeyboardDevice::KeyboardDevice()
: IRQHandler(IRQ_KEYBOARD)
, CharacterDevice(85, 1)
, m_controller(I8042Controller::the())
, m_character_map("en", DEFAULT_CHARACTER_MAP)
, m_character_map("en-us", DEFAULT_CHARACTER_MAP)
{
}

View File

@ -73,7 +73,7 @@ int main(int argc, char** argv)
auto character_map = Keyboard::CharacterMap::load_from_file(path);
if (!character_map.has_value()) {
warnln("Cannot read keymap {}", path);
warnln("Hint: Must be either a keymap name (e.g. 'en') or a full path.");
warnln("Hint: Must be either a keymap name (e.g. 'en-us') or a full path.");
return 1;
}