1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

translation

This commit is contained in:
Laserlicht 2023-11-16 23:03:41 +01:00 committed by GitHub
parent 514811dc89
commit a6dd5c2887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 6 deletions

View File

@ -172,6 +172,14 @@
"vcmi.battleResultsWindow.applyResultsLabel" : "Apply battle result", "vcmi.battleResultsWindow.applyResultsLabel" : "Apply battle result",
"vcmi.tutorialWindow.title" : "Touchscreen Introduction",
"vcmi.tutorialWindow.decription.RightClick" : "Touch and hold the element on which you want to right-click. Touch the free area to close.",
"vcmi.tutorialWindow.decription.MapPanning" : "Panning with one finger to move the map.",
"vcmi.tutorialWindow.decription.MapZooming" : "Pinching with two fingers to zoom the map. Standard zoom has a snap-in effect.",
"vcmi.tutorialWindow.decription.BattleDirection" : "To attack from a defined side, swipe in the corresponding direction from which the attack is to be made.",
"vcmi.tutorialWindow.decription.BattleDirectionAbort" : "The attack direction gesture can be canceled if the finger is far enough away.",
"vcmi.tutorialWindow.decription.AbortSpell" : "A spell can be canceled by touching and holding.",
"vcmi.otherOptions.availableCreaturesAsDwellingLabel.hover" : "Show Available Creatures", "vcmi.otherOptions.availableCreaturesAsDwellingLabel.hover" : "Show Available Creatures",
"vcmi.otherOptions.availableCreaturesAsDwellingLabel.help" : "{Show Available Creatures}\n\nShow the number of creatures available to purchase instead of their growth in town summary (bottom-left corner of town screen).", "vcmi.otherOptions.availableCreaturesAsDwellingLabel.help" : "{Show Available Creatures}\n\nShow the number of creatures available to purchase instead of their growth in town summary (bottom-left corner of town screen).",
"vcmi.otherOptions.creatureGrowthAsDwellingLabel.hover" : "Show Weekly Growth of Creatures", "vcmi.otherOptions.creatureGrowthAsDwellingLabel.hover" : "Show Weekly Growth of Creatures",

View File

@ -13,6 +13,7 @@
#include "../eventsSDL/InputHandler.h" #include "../eventsSDL/InputHandler.h"
#include "../../lib/CConfigHandler.h" #include "../../lib/CConfigHandler.h"
#include "../../lib/CondSh.h" #include "../../lib/CondSh.h"
#include "../../lib/CGeneralTextHandler.h"
#include "../CPlayerInterface.h" #include "../CPlayerInterface.h"
#include "../CGameInfo.h" #include "../CGameInfo.h"
#include "../CVideoHandler.h" #include "../CVideoHandler.h"
@ -42,8 +43,9 @@ CTutorialWindow::CTutorialWindow(const TutorialMode & m)
if(mode == TutorialMode::TOUCH_ADVENTUREMAP) videos = { "RightClick", "MapPanning", "MapZooming" }; if(mode == TutorialMode::TOUCH_ADVENTUREMAP) videos = { "RightClick", "MapPanning", "MapZooming" };
else if(mode == TutorialMode::TOUCH_BATTLE) videos = { "BattleDirection", "BattleDirectionAbort", "AbortSpell" }; else if(mode == TutorialMode::TOUCH_BATTLE) videos = { "BattleDirection", "BattleDirectionAbort", "AbortSpell" };
labelTitle = std::make_shared<CLabel>(190, 15, FONT_BIG, ETextAlignment::CENTER, Colors::YELLOW, "Touchscreen Intro"); labelTitle = std::make_shared<CLabel>(190, 15, FONT_BIG, ETextAlignment::CENTER, Colors::YELLOW, CGI->generaltexth->translate("vcmi.tutorialWindow.title"));
buttonOk = std::make_shared<CButton>(Point(159, 367), AnimationPath::builtin("IOKAY"), CButton::tooltip(), std::bind(&CTutorialWindow::close, this), EShortcut::GLOBAL_ACCEPT); //62x28 labelInformation = std::make_shared<CMultiLineLabel>(Rect(5, 40, 370, 60), EFonts::FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE, "");
buttonOk = std::make_shared<CButton>(Point(159, 367), AnimationPath::builtin("IOKAY"), CButton::tooltip(), std::bind(&CTutorialWindow::exit, this), EShortcut::GLOBAL_ACCEPT); //62x28
buttonLeft = std::make_shared<CButton>(Point(5, 217), AnimationPath::builtin("HSBTNS3"), CButton::tooltip(), std::bind(&CTutorialWindow::previous, this), EShortcut::MOVE_LEFT); //22x46 buttonLeft = std::make_shared<CButton>(Point(5, 217), AnimationPath::builtin("HSBTNS3"), CButton::tooltip(), std::bind(&CTutorialWindow::previous, this), EShortcut::MOVE_LEFT); //22x46
buttonRight = std::make_shared<CButton>(Point(352, 217), AnimationPath::builtin("HSBTNS5"), CButton::tooltip(), std::bind(&CTutorialWindow::next, this), EShortcut::MOVE_RIGHT); //22x46 buttonRight = std::make_shared<CButton>(Point(352, 217), AnimationPath::builtin("HSBTNS5"), CButton::tooltip(), std::bind(&CTutorialWindow::next, this), EShortcut::MOVE_RIGHT); //22x46
@ -57,7 +59,7 @@ void CTutorialWindow::setContent()
buttonLeft->block(page<1); buttonLeft->block(page<1);
buttonRight->block(page>videos.size() - 2); buttonRight->block(page>videos.size() - 2);
labelInformation = std::make_shared<CMultiLineLabel>(Rect(5, 40, 370, 60), EFonts::FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE, "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."); labelInformation->setText(CGI->generaltexth->translate("vcmi.tutorialWindow.decription." + videos[page]));
} }
void CTutorialWindow::openWindowFirstTime(const TutorialMode & m) void CTutorialWindow::openWindowFirstTime(const TutorialMode & m)
@ -73,12 +75,12 @@ void CTutorialWindow::openWindowFirstTime(const TutorialMode & m)
} }
} }
void CTutorialWindow::close() void CTutorialWindow::exit()
{ {
if(LOCPLINT) if(LOCPLINT)
LOCPLINT->showingDialog->setn(false); LOCPLINT->showingDialog->setn(false);
WindowBase::close(); close();
} }
void CTutorialWindow::next() void CTutorialWindow::next()

View File

@ -39,7 +39,7 @@ class CTutorialWindow : public CWindowObject
int page; int page;
void close(); void exit();
void next(); void next();
void previous(); void previous();
void setContent(); void setContent();