summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 12:35:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 12:51:43 +0300
commita7c723b681ddefdcaa84cb9b16681c65818d7110 (patch)
tree3c7100a90db00c3eacc41977cdb5bbae99e6ca40 /src/gui/skilldialog.cpp
parent04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff)
downloadmv-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz
mv-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2
mv-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz
mv-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip
add comments for translators
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index a6c01cbb5..093db57bc 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -266,13 +266,16 @@ class SkillTab final : public Tab
};
SkillDialog::SkillDialog() :
+ // TRANSLATORS: skills dialog name
Window(_("Skills"), false, nullptr, "skills.xml"),
gcn::ActionListener(),
mSkills(),
mTabs(new TabbedArea(this)),
mDeleteTabs(),
mPointsLabel(new Label(this, "0")),
+ // TRANSLATORS: skills dialog button
mUseButton(new Button(this, _("Use"), "use", this)),
+ // TRANSLATORS: skills dialog button
mIncreaseButton(new Button(this, _("Up"), "inc", this)),
mDefaultModel(nullptr)
{
@@ -384,6 +387,7 @@ std::string SkillDialog::update(const int id)
void SkillDialog::update()
{
+ // TRANSLATORS: skills dialog label
mPointsLabel->setCaption(strprintf(_("Skill points available: %d"),
PlayerInfo::getAttribute(PlayerInfo::SKILL_POINTS)));
mPointsLabel->adjustSize();
@@ -436,8 +440,10 @@ void SkillDialog::loadSkills()
SkillInfo *const skill = new SkillInfo;
skill->id = 1;
+ // TRANSLATORS: skills dialog default skills tab
skill->data->name = _("basic");
skill->data->description.clear();
+ // TRANSLATORS: skills dialog default skill name
skill->data->dispName = _("basic, 1");
skill->data->shortName = "bas";
skill->data->setIcon("");
@@ -474,6 +480,7 @@ void SkillDialog::loadSkills()
{
setCount++;
setName = XML::getProperty(set, "name",
+ // TRANSLATORS: skills dialog default skill tab
strprintf(_("Skill Set %d"), setCount));
SkillModel *const model = new SkillModel();
@@ -507,6 +514,7 @@ void SkillDialog::loadSkills()
}
std::string name = XML::langProperty(node, "name",
+ // TRANSLATORS: skills dialog. skill id
strprintf(_("Skill %d"), id));
std::string icon = XML::getProperty(node, "icon", "");
const int level = XML::getProperty(node, "level", 0);
@@ -600,6 +608,7 @@ void SkillDialog::addSkill(const int id, const int level, const int range,
skill->visible = false;
skill->model = mDefaultModel;
skill->level = level;
+ // TRANSLATORS: skills dialog. skill level
skill->skillLevel = strprintf(_("Lvl: %d"), level);
skill->range = range;
skill->update();
@@ -744,9 +753,14 @@ void SkillInfo::update()
visible = true;
if (baseLevel == 0)
+ {
skillLevel.clear();
+ }
else
+ {
+ // TRANSLATORS: skills dialog. skill level
skillLevel = strprintf(_("Lvl: %d"), baseLevel);
+ }
level = baseLevel;
skillLevelWidth = -1;