Fix keybinds being saved in native/localized form

Keybinds are now both saved and read in portable form
and only converted to native one for display purposes, fixing
them not being read correctly when certain languages are set.

Also get rid of qPrintable() due to it using the system 8-bit codepage
instead of UTF-8, and some unnecessary QString ↔ C string conversions

Co-Authored-by: Cacodemon345 <wahil1976@outlook.com>
This commit is contained in:
Alexander Babikov
2025-05-07 19:03:10 +05:00
parent 19bfa0b442
commit 5918356719
30 changed files with 159 additions and 170 deletions

View File

@@ -630,8 +630,8 @@ msgstr "Неустранимая ошибка"
msgid " - PAUSED"
msgstr " - ПАУЗА"
msgid "Press %s to return to windowed mode."
msgstr "Нажмите %s для возврата в оконный режим."
msgid "Press %1 to return to windowed mode."
msgstr "Нажмите %1 для возврата в оконный режим."
msgid "Speed"
msgstr "Скорость"
@@ -717,11 +717,11 @@ msgstr "Другая периферия"
msgid "Click to capture mouse"
msgstr "Щёлкните мышью для захвата курсора"
msgid "Press %s to release mouse"
msgstr "Нажмите %s, чтобы освободить курсор"
msgid "Press %1 to release mouse"
msgstr "Нажмите %1, чтобы освободить курсор"
msgid "Press %s or middle button to release mouse"
msgstr "Нажмите %s или среднюю кнопку мыши, чтобы освободить курсор"
msgid "Press %1 or middle button to release mouse"
msgstr "Нажмите %1 или среднюю кнопку мыши, чтобы освободить курсор"
msgid "Bus"
msgstr "Шина"