Use l10n for map gamepad actions

This commit is contained in:
Alexei Kotov 2025-09-14 02:13:39 +03:00
parent baf575e594
commit b0055ec8e7
8 changed files with 44 additions and 6 deletions

View File

@ -835,9 +835,10 @@ namespace MWGui
if (Settings::gui().mControllerMenus) if (Settings::gui().mControllerMenus)
{ {
mControllerButtons.mB = "#{Interface:Back}"; mControllerButtons.mB = "#{Interface:Back}";
mControllerButtons.mX = global ? "#{sLocal}" : "#{sWorld}"; mControllerButtons.mX = global ? "#{Interface:Local}" : "#{Interface:World}";
mControllerButtons.mY = "#{sCenter}"; mControllerButtons.mY = "#{Interface:Center}";
mControllerButtons.mDpad = Settings::map().mAllowZooming ? "" : "#{sMove}"; if (!Settings::map().mAllowZooming)
mControllerButtons.mDpad = "#{Interface:Move}";
} }
} }
@ -1228,7 +1229,7 @@ namespace MWGui
mLocalMap->setVisible(!global); mLocalMap->setVisible(!global);
mButton->setCaptionWithReplacing(global ? "#{sLocal}" : "#{sWorld}"); mButton->setCaptionWithReplacing(global ? "#{sLocal}" : "#{sWorld}");
mControllerButtons.mX = global ? "#{sLocal}" : "#{sWorld}"; mControllerButtons.mX = global ? "#{Interface:Local}" : "#{Interface:World}";
MWBase::Environment::get().getWindowManager()->updateControllerButtonsOverlay(); MWBase::Environment::get().getWindowManager()->updateControllerButtonsOverlay();
} }
@ -1532,7 +1533,10 @@ namespace MWGui
ControllerButtons* EditNoteDialog::getControllerButtons() ControllerButtons* EditNoteDialog::getControllerButtons()
{ {
mControllerButtons.mX = getDeleteButtonShown() ? "#{sDelete}" : ""; if (getDeleteButtonShown())
mControllerButtons.mX = "#{Interface:Delete}";
else
mControllerButtons.mX.clear();
return &mControllerButtons; return &mControllerButtons;
} }

View File

@ -2,8 +2,10 @@ Ask: "sAsk"
Back: "sBack" Back: "sBack"
Buy: "sBuy" Buy: "sBuy"
Cancel: "sCancel" Cancel: "sCancel"
Center: "sCenter" # NB: in Russian and French localisations this has a trailing space
Close: "sClose" Close: "sClose"
Create: "sCreate" Create: "sCreate"
Delete: "sDelete"
DisposeOfCorpse: "sDisposeofCorpse" DisposeOfCorpse: "sDisposeofCorpse"
Done: "sDone" Done: "sDone"
Face: "sFace" Face: "sFace"
@ -12,8 +14,9 @@ Hair: "sHair"
Info: "sInfo" Info: "sInfo"
Inventory: "sInventory" Inventory: "sInventory"
Item: "sItem" Item: "sItem"
Local: "sLocal"
MagicEffects: "sMagicEffects" MagicEffects: "sMagicEffects"
# NB: sMouse exists but it is not localized in the Russian game and should not be used to translate Mouse # NB: sMouse and sMove exist but they are not localised in the Russian game and should not be used
Next: "sNext" Next: "sNext"
No: "sNo" No: "sNo"
None: "sNone" None: "sNone"
@ -35,4 +38,5 @@ Topics: "sTopics"
Travel: "sTravel" Travel: "sTravel"
UntilHealed: "sUntilHealed" UntilHealed: "sUntilHealed"
Wait: "sWait" Wait: "sWait"
World: "sWorld"
Yes: "sYes" Yes: "sYes"

View File

@ -2,9 +2,11 @@ Ask: "Fragen"
Back: "Zurück" Back: "Zurück"
Buy: "Kaufen" Buy: "Kaufen"
Cancel: "Abbruch" Cancel: "Abbruch"
Center: "Zentrieren"
Close: "Schließen" Close: "Schließen"
Copy: "Kopieren" Copy: "Kopieren"
Create: "Herstellen" Create: "Herstellen"
Delete: "Entfernen"
DisposeOfCorpse: "Leiche beseitigen" DisposeOfCorpse: "Leiche beseitigen"
Done: "Fertig" Done: "Fertig"
DurationDay: "{days} d " DurationDay: "{days} d "
@ -32,8 +34,10 @@ Hair: "Haar"
Info: "Info" Info: "Info"
Inventory: "Inventar" Inventory: "Inventar"
Item: "Gegenstand" Item: "Gegenstand"
Local: "Lokal"
MagicEffects: "Magischer Effekt" MagicEffects: "Magischer Effekt"
Mouse: "Maus" Mouse: "Maus"
Move: "Bewegen"
Next: "Weiter" Next: "Weiter"
No: "Nein" No: "Nein"
# This one is a bit tricky since it can be translated to # This one is a bit tricky since it can be translated to
@ -61,4 +65,5 @@ Topics: "Themen"
Travel: "Reisen" Travel: "Reisen"
UntilHealed: "Bis geheilt" UntilHealed: "Bis geheilt"
Wait: "Warten" Wait: "Warten"
World: "Welt"
Yes: "Ja" Yes: "Ja"

View File

@ -2,9 +2,11 @@ Ask: "Ask"
Back: "Back" Back: "Back"
Buy: "Buy" Buy: "Buy"
Cancel: "Cancel" Cancel: "Cancel"
Center: "Center"
Close: "Close" Close: "Close"
Copy: "Copy" Copy: "Copy"
Create: "Create" Create: "Create"
Delete: "Delete"
DisposeOfCorpse: "Dispose of Corpse" DisposeOfCorpse: "Dispose of Corpse"
Done: "Done" Done: "Done"
DurationDay: "{days} d " DurationDay: "{days} d "
@ -27,8 +29,10 @@ Hair: "Hair"
Info: "Info" Info: "Info"
Inventory: "Inventory" Inventory: "Inventory"
Item: "Item" Item: "Item"
Local: "Local"
MagicEffects: "Magic Effects" MagicEffects: "Magic Effects"
Mouse: "Mouse" Mouse: "Mouse"
Move: "Move"
Next: "Next" Next: "Next"
No: "No" No: "No"
None: "None" None: "None"
@ -52,4 +56,5 @@ Topics: "Topics"
Travel: "Travel" Travel: "Travel"
UntilHealed: "Until Healed" UntilHealed: "Until Healed"
Wait: "Wait" Wait: "Wait"
World: "World"
Yes: "Yes" Yes: "Yes"

View File

@ -2,10 +2,12 @@ Ask: "Demander"
Back: "En arrière" Back: "En arrière"
Buy: "Acheter" Buy: "Acheter"
Cancel: "Annuler" Cancel: "Annuler"
Center: "Centrer"
Close: "Fermer" Close: "Fermer"
Copy: "Copier" Copy: "Copier"
Create: "Créer" Create: "Créer"
DisposeOfCorpse: "Supprimer cadavre" DisposeOfCorpse: "Supprimer cadavre"
Delete: "Effacer"
Done: "Fait" Done: "Fait"
DurationDay: |- DurationDay: |-
{days, plural, {days, plural,
@ -27,8 +29,10 @@ Hair: "Cheveux"
Info: "Info" Info: "Info"
Inventory: "Inventaire" Inventory: "Inventaire"
Item: "Objet" Item: "Objet"
Local: "Local"
MagicEffects: "Effets magiques" MagicEffects: "Effets magiques"
Mouse: "Souris" Mouse: "Souris"
Move: "Déplacement"
Next: "Suivant" Next: "Suivant"
No: "Non" No: "Non"
None: "Aucun" None: "Aucun"
@ -52,4 +56,5 @@ Topics: "Sujets"
Travel: "Voyager" Travel: "Voyager"
UntilHealed: "Récup. totale" UntilHealed: "Récup. totale"
Wait: "Attendre" Wait: "Attendre"
World: "Monde"
Yes: "Oui" Yes: "Oui"

View File

@ -2,9 +2,11 @@ Ask: "Zapytaj"
Back: "Wstecz" Back: "Wstecz"
Buy: "Kup" Buy: "Kup"
Cancel: "Anuluj" Cancel: "Anuluj"
Center: "Centruj"
Close: "Zamknij" Close: "Zamknij"
Copy: "Kopiuj" Copy: "Kopiuj"
Create: "Utwórz" Create: "Utwórz"
Delete: "Usuń"
DisposeOfCorpse: "Usuń zwłoki" DisposeOfCorpse: "Usuń zwłoki"
Done: "Koniec" Done: "Koniec"
DurationDay: "{days} d. " DurationDay: "{days} d. "
@ -25,8 +27,10 @@ Hair: "Włosy"
Info: "Info" Info: "Info"
Inventory: "Ekwipunek" Inventory: "Ekwipunek"
Item: "Przedmiot" Item: "Przedmiot"
Local: "Okolica"
MagicEffects: "Magiczne efekty" MagicEffects: "Magiczne efekty"
Mouse: "Mysz" Mouse: "Mysz"
Move: "Przenieś"
Next: "Nast." Next: "Nast."
No: "Nie" No: "Nie"
None: "Brak" None: "Brak"
@ -50,4 +54,5 @@ Topics: "Tematy"
Travel: "Podróż" Travel: "Podróż"
UntilHealed: "Do wyzdr." UntilHealed: "Do wyzdr."
Wait: "Czekaj" Wait: "Czekaj"
World: "Świat"
Yes: "Tak" Yes: "Tak"

View File

@ -2,9 +2,11 @@ Ask: "Спросить"
Back: "Назад" Back: "Назад"
Buy: "Купить" Buy: "Купить"
Cancel: "Отмена" Cancel: "Отмена"
Center: "Центр"
Close: "Закрыть" Close: "Закрыть"
Copy: "Скопировать" Copy: "Скопировать"
Create: "Создать" Create: "Создать"
Delete: "Удалить"
DisposeOfCorpse: "Убрать тело" DisposeOfCorpse: "Убрать тело"
Done: "Готово" Done: "Готово"
DurationDay: "{days} д " DurationDay: "{days} д "
@ -24,8 +26,10 @@ Hair: "Прическа"
Info: "Инфо" Info: "Инфо"
Inventory: "Инвентарь" Inventory: "Инвентарь"
Item: "Предмет" Item: "Предмет"
Local: "Местность"
MagicEffects: "Маг. эффекты" MagicEffects: "Маг. эффекты"
Mouse: "Мышь" Mouse: "Мышь"
Move: "Переместить"
Next: "След" Next: "След"
No: "Нет" No: "Нет"
None: "Нет" None: "Нет"
@ -49,4 +53,5 @@ Topics: "Темы"
Travel: "Путешествие" Travel: "Путешествие"
UntilHealed: "Выздороветь" UntilHealed: "Выздороветь"
Wait: "Ждать" Wait: "Ждать"
World: "Мир"
Yes: "Да" Yes: "Да"

View File

@ -2,9 +2,11 @@ Ask: "Fråga"
Back: "Bakåt" Back: "Bakåt"
Buy: "Köp" Buy: "Köp"
Cancel: "Avbryt" Cancel: "Avbryt"
Center: "Centrera"
Close: "Stäng" Close: "Stäng"
Copy: "Kopiera" Copy: "Kopiera"
Create: "Skapa" Create: "Skapa"
Delete: "Radera"
DisposeOfCorpse: "Undanröj liket" DisposeOfCorpse: "Undanröj liket"
Done: "Klar" Done: "Klar"
DurationDay: "{days} d " DurationDay: "{days} d "
@ -27,8 +29,10 @@ Hair: "Hår"
Info: "Info" Info: "Info"
Item: "Föremål" Item: "Föremål"
Inventory: "Inventariet" Inventory: "Inventariet"
Local: "Lokal"
MagicEffects: "Magiska effekter" MagicEffects: "Magiska effekter"
Mouse: "Mus" Mouse: "Mus"
Move: "Flytta"
Next: "Nästa" Next: "Nästa"
No: "Nej" No: "Nej"
None: "Inget" None: "Inget"
@ -52,4 +56,5 @@ Topics: "Ämnen"
Travel: "Res" Travel: "Res"
UntilHealed: "Tills återställd" UntilHealed: "Tills återställd"
Wait: "Vänta" Wait: "Vänta"
World: "Värld"
Yes: "Ja" Yes: "Ja"