1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-15 06:26:38 +00:00

Use l10n for journal gamepad actions

This commit is contained in:
Alexei Kotov 2025-09-05 00:44:58 +03:00
parent 1dbd5fd571
commit cac8d59db9
7 changed files with 24 additions and 5 deletions

View file

@ -226,7 +226,7 @@ namespace
mControllerButtons.mA = "#{Interface:Select}";
mControllerButtons.mX = "#{OMWEngine:JournalQuests}";
mControllerButtons.mY = "#{sTopics}";
mControllerButtons.mY = "#{Interface:Topics}";
mQuestMode = false;
mAllQuests = false;
@ -696,10 +696,23 @@ namespace
MWGui::ControllerButtons* getControllerButtons() override
{
mControllerButtons.mB = mOptionsMode || mStates.size() > 1 ? "#{sBack}" : "#{Interface:Close}";
mControllerButtons.mL1 = mOptionsMode ? "" : "#{sPrev}";
mControllerButtons.mR1 = mOptionsMode ? "" : "#{sNext}";
mControllerButtons.mR3 = mOptionsMode && mQuestMode ? "#{OMWEngine:JournalShowAll}" : "";
if (mOptionsMode || mStates.size() > 1)
mControllerButtons.mB = "#{Interface:Back}";
else
mControllerButtons.mB = "#{Interface:Close}";
mControllerButtons.mL1.clear();
mControllerButtons.mR1.clear();
mControllerButtons.mR3.clear();
if (!mOptionsMode)
{
mControllerButtons.mL1 = "#{Interface:Prev}";
mControllerButtons.mR1 = "#{Interface:Next}";
}
else if (mQuestMode)
{
mControllerButtons.mR3 = "#{OMWEngine:JournalShowAll}";
}
return &mControllerButtons;
}

View file

@ -24,4 +24,5 @@ Select: "sSelect"
Soul: "sSoulGem"
Take: "sTake"
TakeAll: "sTakeAll"
Topics: "sTopics"
Yes: "sYes"

View file

@ -50,4 +50,5 @@ Select: "Auswählen"
Soul: "Seele"
Take: "Nehmen"
TakeAll: "Alles nehmen"
Topics: "Themen"
Yes: "Ja"

View file

@ -41,4 +41,5 @@ Select: "Select"
Soul: "Soul"
Take: "Take"
TakeAll: "Take All"
Topics: "Topics"
Yes: "Yes"

View file

@ -41,4 +41,5 @@ Select: "Sélectionner"
Soul: "Ame"
Take: "Prendre"
TakeAll: "Tout prendre"
Topics: "Sujets"
Yes: "Oui"

View file

@ -39,4 +39,5 @@ Select: "Wybierz"
Soul: "Dusza"
Take: "Weź"
TakeAll: "Weź wszystko"
Topics: "Tematy"
Yes: "Tak"

View file

@ -38,4 +38,5 @@ Select: "Выбрать"
Soul: "Душа"
Take: "Взять"
TakeAll: "Взять все"
Topics: "Темы"
Yes: "Да"