mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Merge pull request #1652 from IvanSavenko/localization_fix
Localization fix
This commit is contained in:
@@ -120,10 +120,11 @@
|
|||||||
"vcmi.questLog.hideComplete.hover" : "Hide complete quests",
|
"vcmi.questLog.hideComplete.hover" : "Hide complete quests",
|
||||||
"vcmi.questLog.hideComplete.help" : "Hide all quests that already completed",
|
"vcmi.questLog.hideComplete.help" : "Hide all quests that already completed",
|
||||||
|
|
||||||
"vcmi.randomMapTab.widgets.defaultTemplate" : "default",
|
"vcmi.randomMapTab.widgets.defaultTemplate" : "(default)",
|
||||||
"vcmi.randomMapTab.widgets.templateLabel" : "Template",
|
"vcmi.randomMapTab.widgets.templateLabel" : "Template",
|
||||||
"vcmi.randomMapTab.widgets.teamAlignmentsButton" : "Setup...",
|
"vcmi.randomMapTab.widgets.teamAlignmentsButton" : "Setup...",
|
||||||
"vcmi.randomMapTab.widgets.teamAlignmentsLabel" : "Team alignments",
|
"vcmi.randomMapTab.widgets.teamAlignmentsLabel" : "Team Alignments",
|
||||||
|
"vcmi.randomMapTab.widgets.roadTypesLabel" : "Road Types",
|
||||||
|
|
||||||
// few strings from WoG used by vcmi
|
// few strings from WoG used by vcmi
|
||||||
"vcmi.stackExperience.description" : "» S t a c k E x p e r i e n c e D e t a i l s «\n\nCreature Type ................... : %s\nExperience Rank ................. : %s (%i)\nExperience Points ............... : %i\nExperience Points to Next Rank .. : %i\nMaximum Experience per Battle ... : %i%% (%i)\nNumber of Creatures in stack .... : %i\nMaximum New Recruits\n without losing current Rank .... : %i\nExperience Multiplier ........... : %.2f\nUpgrade Multiplier .............. : %.2f\nExperience after Rank 10 ........ : %i\nMaximum New Recruits to remain at\n Rank 10 if at Maximum Experience : %i",
|
"vcmi.stackExperience.description" : "» S t a c k E x p e r i e n c e D e t a i l s «\n\nCreature Type ................... : %s\nExperience Rank ................. : %s (%i)\nExperience Points ............... : %i\nExperience Points to Next Rank .. : %i\nMaximum Experience per Battle ... : %i%% (%i)\nNumber of Creatures in stack .... : %i\nMaximum New Recruits\n without losing current Rank .... : %i\nExperience Multiplier ........... : %.2f\nUpgrade Multiplier .............. : %.2f\nExperience after Rank 10 ........ : %i\nMaximum New Recruits to remain at\n Rank 10 if at Maximum Experience : %i",
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
"vcmi.systemOptions.fullscreenButton.hover" : "Vollbild",
|
"vcmi.systemOptions.fullscreenButton.hover" : "Vollbild",
|
||||||
"vcmi.systemOptions.fullscreenButton.help" : "{Fullscreen}\n\n Wenn ausgewählt wird VCMI im Vollbildmodus laufen, ansonsten im Fenstermodus",
|
"vcmi.systemOptions.fullscreenButton.help" : "{Fullscreen}\n\n Wenn ausgewählt wird VCMI im Vollbildmodus laufen, ansonsten im Fenstermodus",
|
||||||
"vcmi.systemOptions.resolutionButton.hover" : "Auflösung",
|
"vcmi.systemOptions.resolutionButton.hover" : "Auflösung: %wx%h",
|
||||||
"vcmi.systemOptions.resolutionButton.help" : "{Select resolution}\n\n Ändert die Spielauflösung. Spielneustart ist erforderlich um neue Auflösung zu übernehmen.",
|
"vcmi.systemOptions.resolutionButton.help" : "{Select resolution}\n\n Ändert die Spielauflösung. Spielneustart ist erforderlich um neue Auflösung zu übernehmen.",
|
||||||
"vcmi.systemOptions.resolutionMenu.hover" : "Wähle Auflösung",
|
"vcmi.systemOptions.resolutionMenu.hover" : "Wähle Auflösung",
|
||||||
"vcmi.systemOptions.resolutionMenu.help" : "Ändere die Spielauflösung.",
|
"vcmi.systemOptions.resolutionMenu.help" : "Ändere die Spielauflösung.",
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
"vcmi.systemOptions.fullscreenButton.hover" : "Pełny ekran",
|
"vcmi.systemOptions.fullscreenButton.hover" : "Pełny ekran",
|
||||||
"vcmi.systemOptions.fullscreenButton.help" : "{Fullscreen}\n\n Po wybraniu VCMI uruchomi się w trybie pełnoekranowym, w przeciwnym wypadku uruchomi się w oknie",
|
"vcmi.systemOptions.fullscreenButton.help" : "{Fullscreen}\n\n Po wybraniu VCMI uruchomi się w trybie pełnoekranowym, w przeciwnym wypadku uruchomi się w oknie",
|
||||||
"vcmi.systemOptions.resolutionButton.hover" : "Rozdzielczość",
|
"vcmi.systemOptions.resolutionButton.hover" : "Rozdzielczość: %wx%h",
|
||||||
"vcmi.systemOptions.resolutionButton.help" : "{Select resolution}\n\n Zmień rozdzielczość ekranu w grze. Restart gry jest wymagany, by zmiany zostały uwzględnione.",
|
"vcmi.systemOptions.resolutionButton.help" : "{Select resolution}\n\n Zmień rozdzielczość ekranu w grze. Restart gry jest wymagany, by zmiany zostały uwzględnione.",
|
||||||
"vcmi.systemOptions.resolutionMenu.hover" : "Wybierz rozdzielczość",
|
"vcmi.systemOptions.resolutionMenu.hover" : "Wybierz rozdzielczość",
|
||||||
"vcmi.systemOptions.resolutionMenu.help" : "Zmień rozdzielczość ekranu w grze.",
|
"vcmi.systemOptions.resolutionMenu.help" : "Zmień rozdzielczość ekranu w grze.",
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
"vcmi.systemOptions.fullscreenButton.help" : "{Повноекранний режим}\n\n Якщо обрано, VCMI буде запускатися в режимі на весь екран, інакше — віконний режим",
|
"vcmi.systemOptions.fullscreenButton.help" : "{Повноекранний режим}\n\n Якщо обрано, VCMI буде запускатися в режимі на весь екран, інакше — віконний режим",
|
||||||
"vcmi.systemOptions.resolutionButton.hover" : "Роздільна здатність: %wx%h",
|
"vcmi.systemOptions.resolutionButton.hover" : "Роздільна здатність: %wx%h",
|
||||||
"vcmi.systemOptions.resolutionButton.help" : "{Роздільна здатність}\n\n Зміна розширення екрану в грі. Аби зміни набули чинності необхідно перезавантажити гру.",
|
"vcmi.systemOptions.resolutionButton.help" : "{Роздільна здатність}\n\n Зміна розширення екрану в грі. Аби зміни набули чинності необхідно перезавантажити гру.",
|
||||||
"vcmi.systemOptions.resolutionMenu.hover" : "Обрати роздільну здатність екрану",
|
"vcmi.systemOptions.resolutionMenu.hover" : "Обрати роздільну здатність",
|
||||||
"vcmi.systemOptions.resolutionMenu.help" : "Змінити роздільну здатність екрану в грі.",
|
"vcmi.systemOptions.resolutionMenu.help" : "Змінити роздільну здатність екрану в грі.",
|
||||||
"vcmi.systemOptions.fullscreenFailed" : "{Повноекранний режим}\n\n Не вдалося перейти в повноекранний режим! Поточна роздільна здатність не підтримується дисплеєм!",
|
"vcmi.systemOptions.fullscreenFailed" : "{Повноекранний режим}\n\n Не вдалося перейти в повноекранний режим! Поточна роздільна здатність не підтримується дисплеєм!",
|
||||||
"vcmi.systemOptions.framerateButton.hover" : "Лічильник кадрів",
|
"vcmi.systemOptions.framerateButton.hover" : "Лічильник кадрів",
|
||||||
@@ -122,10 +122,11 @@
|
|||||||
"vcmi.questLog.hideComplete.hover" : "Приховати завершені квести",
|
"vcmi.questLog.hideComplete.hover" : "Приховати завершені квести",
|
||||||
"vcmi.questLog.hideComplete.help" : "Приховує всі квести, які вже мають стан виконаних",
|
"vcmi.questLog.hideComplete.help" : "Приховує всі квести, які вже мають стан виконаних",
|
||||||
|
|
||||||
"vcmi.randomMapTab.widgets.defaultTemplate" : "за замовчуванням",
|
"vcmi.randomMapTab.widgets.defaultTemplate" : "(за замовчуванням)",
|
||||||
"vcmi.randomMapTab.widgets.templateLabel" : "Шаблон",
|
"vcmi.randomMapTab.widgets.templateLabel" : "Шаблон",
|
||||||
"vcmi.randomMapTab.widgets.teamAlignmentsButton" : "Налаштувати...",
|
"vcmi.randomMapTab.widgets.teamAlignmentsButton" : "Налаштувати...",
|
||||||
"vcmi.randomMapTab.widgets.teamAlignmentsLabel" : "Розподіл команд",
|
"vcmi.randomMapTab.widgets.teamAlignmentsLabel" : "Розподіл команд",
|
||||||
|
"vcmi.randomMapTab.widgets.roadTypesLabel" : "Види доріг",
|
||||||
|
|
||||||
"core.bonus.ADDITIONAL_ATTACK.name" : "Подвійний удар",
|
"core.bonus.ADDITIONAL_ATTACK.name" : "Подвійний удар",
|
||||||
"core.bonus.ADDITIONAL_ATTACK.description" : "Атакує двічі",
|
"core.bonus.ADDITIONAL_ATTACK.description" : "Атакує двічі",
|
||||||
|
@@ -37,9 +37,19 @@ static void setBoolSetting(std::string group, std::string field, bool value)
|
|||||||
entry->Bool() = value;
|
entry->Bool() = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string resolutionToString(int w, int h)
|
static std::string resolutionToEntryString( int w, int h)
|
||||||
{
|
{
|
||||||
auto string = CGI->generaltexth->translate("vcmi.systemOptions.resolutionButton.hover");
|
std::string string = "%wx%h";
|
||||||
|
|
||||||
|
boost::replace_all(string, "%w", std::to_string(w));
|
||||||
|
boost::replace_all(string, "%h", std::to_string(h));
|
||||||
|
|
||||||
|
return string;
|
||||||
|
}
|
||||||
|
|
||||||
|
static std::string resolutionToLabelString( int w, int h)
|
||||||
|
{
|
||||||
|
std::string string = CGI->generaltexth->translate("vcmi.systemOptions.resolutionButton.hover");
|
||||||
|
|
||||||
boost::replace_all(string, "%w", std::to_string(w));
|
boost::replace_all(string, "%w", std::to_string(w));
|
||||||
boost::replace_all(string, "%h", std::to_string(h));
|
boost::replace_all(string, "%h", std::to_string(h));
|
||||||
@@ -106,7 +116,7 @@ GeneralOptionsTab::GeneralOptionsTab()
|
|||||||
|
|
||||||
std::shared_ptr<CLabel> resolutionLabel = widget<CLabel>("resolutionLabel");
|
std::shared_ptr<CLabel> resolutionLabel = widget<CLabel>("resolutionLabel");
|
||||||
const auto & currentResolution = settings["video"]["screenRes"];
|
const auto & currentResolution = settings["video"]["screenRes"];
|
||||||
resolutionLabel->setText(resolutionToString(currentResolution["width"].Integer(), currentResolution["height"].Integer()));
|
resolutionLabel->setText(resolutionToLabelString(currentResolution["width"].Integer(), currentResolution["height"].Integer()));
|
||||||
|
|
||||||
std::shared_ptr<CToggleButton> spellbookAnimationCheckbox = widget<CToggleButton>("spellbookAnimationCheckbox");
|
std::shared_ptr<CToggleButton> spellbookAnimationCheckbox = widget<CToggleButton>("spellbookAnimationCheckbox");
|
||||||
spellbookAnimationCheckbox->setSelected(settings["video"]["spellbookAnimation"].Bool());
|
spellbookAnimationCheckbox->setSelected(settings["video"]["spellbookAnimation"].Bool());
|
||||||
@@ -159,8 +169,8 @@ void GeneralOptionsTab::selectGameResolution()
|
|||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
for(const auto & it : selectableResolutions)
|
for(const auto & it : selectableResolutions)
|
||||||
{
|
{
|
||||||
auto resolutionStr = resolutionToString(it.x, it.y);
|
auto resolutionStr = resolutionToEntryString(it.x, it.y);
|
||||||
if(widget<CLabel>("resolutionLabel")->getText() == resolutionStr)
|
if(widget<CLabel>("resolutionLabel")->getText() == resolutionToLabelString(it.x, it.y))
|
||||||
currentResolutionIndex = i;
|
currentResolutionIndex = i;
|
||||||
|
|
||||||
items.push_back(std::move(resolutionStr));
|
items.push_back(std::move(resolutionStr));
|
||||||
@@ -189,7 +199,7 @@ void GeneralOptionsTab::setGameResolution(int index)
|
|||||||
gameRes["width"].Float() = resolution.x;
|
gameRes["width"].Float() = resolution.x;
|
||||||
gameRes["height"].Float() = resolution.y;
|
gameRes["height"].Float() = resolution.y;
|
||||||
|
|
||||||
widget<CLabel>("resolutionLabel")->setText(resolutionToString(resolution.x, resolution.y));
|
widget<CLabel>("resolutionLabel")->setText(resolutionToLabelString(resolution.x, resolution.y));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralOptionsTab::setFullscreenMode(bool on)
|
void GeneralOptionsTab::setFullscreenMode(bool on)
|
||||||
@@ -218,7 +228,7 @@ void GeneralOptionsTab::setFullscreenMode(bool on)
|
|||||||
gameRes["width"].Float() = currentResolution.x;
|
gameRes["width"].Float() = currentResolution.x;
|
||||||
gameRes["height"].Float() = currentResolution.y;
|
gameRes["height"].Float() = currentResolution.y;
|
||||||
|
|
||||||
widget<CLabel>("resolutionLabel")->setText(resolutionToString(currentResolution.x, currentResolution.y));
|
widget<CLabel>("resolutionLabel")->setText(resolutionToLabelString(currentResolution.x, currentResolution.y));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user