Skip to content

Commit

Permalink
translate more keys
Browse files Browse the repository at this point in the history
  • Loading branch information
siecvi committed Oct 13, 2024
1 parent 15a3685 commit fa7c779
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
18 changes: 17 additions & 1 deletion Resources/Locales/es/openspades.po
Original file line number Diff line number Diff line change
Expand Up @@ -2494,7 +2494,23 @@ msgctxt "Client"
msgid "[Esc]"
msgstr "[Esc]"

#: Sources/Client/Client_Draw.cpp:131
#: Sources/Client/Client_Draw.cpp:132
msgctxt "Client"
msgid "LEFT CTRL"
msgstr "CTRL IZQ"

msgctxt "Client"
msgid "RIGHT CTRL"
msgstr "CTRL DER"

msgctxt "Client"
msgid "CAPSLOCK"
msgstr "BLOQ MAYÚS"

msgctxt "Client"
msgid "HOME"
msgstr "INICIO"

msgctxt "Client"
msgid "SPACE"
msgstr "ESPACIO"
17 changes: 16 additions & 1 deletion Resources/Locales/pot/openspades.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,22 @@ msgctxt "Client"
msgid "[Esc]"
msgstr ""

#: Sources/Client/Client_Draw.cpp:131
msgctxt "Client"
msgid "LEFT CTRL"
msgstr ""

msgctxt "Client"
msgid "RIGHT CTRL"
msgstr ""

msgctxt "Client"
msgid "CAPSLOCK"
msgstr ""

msgctxt "Client"
msgid "HOME"
msgstr ""

msgctxt "Client"
msgid "SPACE"
msgstr ""
4 changes: 1 addition & 3 deletions Sources/Client/Client_Draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,10 @@ namespace spades {
return "RMB";
else if (name == "Control")
return "CTRL";
else if (name == "Space")
return _Tr("Client", "SPACE");
else if (name.empty())
return _Tr("Client", "Unbound");
else
return ToUpperCase(name);
return _Tr("Client", ToUpperCase(name));
}
} // namespace

Expand Down

0 comments on commit fa7c779

Please sign in to comment.