mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
translation
This commit is contained in:
@@ -836,6 +836,9 @@
|
|||||||
"vcmi.optionsTab.simturns.blocked1" : "Simturns: 1 week, contacts blocked",
|
"vcmi.optionsTab.simturns.blocked1" : "Simturns: 1 week, contacts blocked",
|
||||||
"vcmi.optionsTab.simturns.blocked2" : "Simturns: 2 weeks, contacts blocked",
|
"vcmi.optionsTab.simturns.blocked2" : "Simturns: 2 weeks, contacts blocked",
|
||||||
"vcmi.optionsTab.simturns.blocked4" : "Simturns: 1 month, contacts blocked",
|
"vcmi.optionsTab.simturns.blocked4" : "Simturns: 1 month, contacts blocked",
|
||||||
|
|
||||||
|
"vcmi.campaignSet.chronicles" : "Chronicles",
|
||||||
|
"vcmi.campaignSet.hota" : "Horn of the Abyss",
|
||||||
|
|
||||||
// Translation note: translate strings below using form that is correct for "0 days", "1 day" and "2 days" in your language
|
// Translation note: translate strings below using form that is correct for "0 days", "1 day" and "2 days" in your language
|
||||||
// Using this information, VCMI will automatically select correct plural form for every possible amount
|
// Using this information, VCMI will automatically select correct plural form for every possible amount
|
||||||
|
|||||||
@@ -835,6 +835,9 @@
|
|||||||
"vcmi.optionsTab.simturns.blocked1" : "Simzüge: 1 Woche, Kontakte block.",
|
"vcmi.optionsTab.simturns.blocked1" : "Simzüge: 1 Woche, Kontakte block.",
|
||||||
"vcmi.optionsTab.simturns.blocked2" : "Simzüge: 2 Wochen, Kontakte block.",
|
"vcmi.optionsTab.simturns.blocked2" : "Simzüge: 2 Wochen, Kontakte block.",
|
||||||
"vcmi.optionsTab.simturns.blocked4" : "Simzüge: 1 Monat, Kontakte block.",
|
"vcmi.optionsTab.simturns.blocked4" : "Simzüge: 1 Monat, Kontakte block.",
|
||||||
|
|
||||||
|
"vcmi.campaignSet.chronicles" : "Chronicles",
|
||||||
|
"vcmi.campaignSet.hota" : "Horn of the Abyss",
|
||||||
|
|
||||||
// Translation note: translate strings below using form that is correct for "0 days", "1 day" and "2 days" in your language
|
// Translation note: translate strings below using form that is correct for "0 days", "1 day" and "2 days" in your language
|
||||||
// Using this information, VCMI will automatically select correct plural form for every possible amount
|
// Using this information, VCMI will automatically select correct plural form for every possible amount
|
||||||
|
|||||||
@@ -267,10 +267,10 @@ SelectionTab::SelectionTab(ESelectionScreen Type)
|
|||||||
oneCampaignExists = true;
|
oneCampaignExists = true;
|
||||||
|
|
||||||
if(oneCampaignExists)
|
if(oneCampaignExists)
|
||||||
namesWithIndex.push_back({set.second["index"].isNull() ? std::numeric_limits<si64>::max() : set.second["index"].Integer(), { set.first, set.first + " translation" }});
|
namesWithIndex.push_back({set.second["index"].isNull() ? std::numeric_limits<si64>::max() : set.second["index"].Integer(), { set.first, set.second["text"].isNull() ? set.first : LIBRARY->generaltexth->translate(set.second["text"].String()) }});
|
||||||
}
|
}
|
||||||
|
|
||||||
std::sort(namesWithIndex.begin(), namesWithIndex.end(), [](const std::pair<int, std::pair<std::string, std::string>>& a, const std::pair<int, std::pair<std::string, std::string>>& b)
|
std::sort(namesWithIndex.begin(), namesWithIndex.end(), [](const std::pair<si64, std::pair<std::string, std::string>>& a, const std::pair<si64, std::pair<std::string, std::string>>& b)
|
||||||
{
|
{
|
||||||
if (a.first != b.first) return a.first < b.first;
|
if (a.first != b.first) return a.first < b.first;
|
||||||
return a.second.second < b.second.second;
|
return a.second.second < b.second.second;
|
||||||
@@ -1169,7 +1169,7 @@ CampaignSetSelector::CampaignSetSelector(const std::vector<std::string> & texts,
|
|||||||
: CWindowObject(BORDERED), texts(texts), cb(cb)
|
: CWindowObject(BORDERED), texts(texts), cb(cb)
|
||||||
{
|
{
|
||||||
OBJECT_CONSTRUCTION;
|
OBJECT_CONSTRUCTION;
|
||||||
pos = center(Rect(0, 0, 128 + 16, std::min(static_cast<int>(texts.size()), LINES) * 40));
|
pos = center(Rect(0, 0, 200 + 16, std::min(static_cast<int>(texts.size()), LINES) * 40));
|
||||||
filledBackground = std::make_shared<FilledTexturePlayerColored>(Rect(0, 0, pos.w, pos.h));
|
filledBackground = std::make_shared<FilledTexturePlayerColored>(Rect(0, 0, pos.w, pos.h));
|
||||||
filledBackground->setPlayerColor(PlayerColor(1));
|
filledBackground->setPlayerColor(PlayerColor(1));
|
||||||
|
|
||||||
@@ -1189,7 +1189,7 @@ void CampaignSetSelector::update(int to)
|
|||||||
if(i>=texts.size())
|
if(i>=texts.size())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto button = std::make_shared<CToggleButton>(Point(0, 10 + (i - to) * 40), AnimationPath::builtin("GSPBUT2"), CButton::tooltip(), [this, i](bool on){ close(); cb(i); });
|
auto button = std::make_shared<CToggleButton>(Point(0, 10 + (i - to) * 40), AnimationPath::builtin("GSPBUTT"), CButton::tooltip(), [this, i](bool on){ close(); cb(i); });
|
||||||
button->setTextOverlay(texts[i], EFonts::FONT_SMALL, Colors::WHITE);
|
button->setTextOverlay(texts[i], EFonts::FONT_SMALL, Colors::WHITE);
|
||||||
buttons.emplace_back(button);
|
buttons.emplace_back(button);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"roe" :
|
"roe" :
|
||||||
{
|
{
|
||||||
"index" : 0,
|
"index" : 0,
|
||||||
|
"text" : "core.genrltxt.762",
|
||||||
"images" : [ {"x": 0, "y": 0, "name":"CAMPBACK"} ],
|
"images" : [ {"x": 0, "y": 0, "name":"CAMPBACK"} ],
|
||||||
"exitbutton" : {"x": 658, "y": 482, "name":"CMPSCAN" },
|
"exitbutton" : {"x": 658, "y": 482, "name":"CMPSCAN" },
|
||||||
"items":
|
"items":
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
"ab" :
|
"ab" :
|
||||||
{
|
{
|
||||||
"index" : 1,
|
"index" : 1,
|
||||||
|
"text" : "core.genrltxt.745",
|
||||||
"images" :
|
"images" :
|
||||||
[
|
[
|
||||||
{"x": 0, "y": 0, "name":"CampaignBackground6"},
|
{"x": 0, "y": 0, "name":"CampaignBackground6"},
|
||||||
@@ -37,6 +39,7 @@
|
|||||||
"sod":
|
"sod":
|
||||||
{
|
{
|
||||||
"index" : 2,
|
"index" : 2,
|
||||||
|
"text" : "core.genrltxt.746",
|
||||||
"images" : [ {"x": 0, "y": 0, "name":"CAMPBKX2"} ],
|
"images" : [ {"x": 0, "y": 0, "name":"CAMPBKX2"} ],
|
||||||
"exitbutton" : {"x": 658, "y": 482, "name":"CMPSCAN" },
|
"exitbutton" : {"x": 658, "y": 482, "name":"CMPSCAN" },
|
||||||
"items":
|
"items":
|
||||||
@@ -53,6 +56,7 @@
|
|||||||
"chr":
|
"chr":
|
||||||
{
|
{
|
||||||
"index" : 3,
|
"index" : 3,
|
||||||
|
"text" : "vcmi.campaignSet.chronicles",
|
||||||
"images" : [ {"x": 0, "y": 0, "name":"CampaignBackground8"} ],
|
"images" : [ {"x": 0, "y": 0, "name":"CampaignBackground8"} ],
|
||||||
"exitbutton" : {"x": 658, "y": 482, "name":"CMPSCAN" },
|
"exitbutton" : {"x": 658, "y": 482, "name":"CMPSCAN" },
|
||||||
"items":
|
"items":
|
||||||
|
|||||||
Reference in New Issue
Block a user