summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-06 00:16:58 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-06 00:16:58 +0300
commit0cbb5fdd043733456565f705d1527ec67785a005 (patch)
tree3bed9953abf5bbbfc3d8e285b924cc309054a463 /src/gui/skilldialog.cpp
parentbf435a79408d89072f5872ab98449949a8a077b0 (diff)
downloadmv-0cbb5fdd043733456565f705d1527ec67785a005.tar.gz
mv-0cbb5fdd043733456565f705d1527ec67785a005.tar.bz2
mv-0cbb5fdd043733456565f705d1527ec67785a005.tar.xz
mv-0cbb5fdd043733456565f705d1527ec67785a005.zip
Use client data translation. For now language same as gui language.
Fix some untranslated gettext lines.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 4ee674325..430705b1d 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -382,8 +382,8 @@ void SkillDialog::loadSkills(const std::string &file)
SkillInfo *skill = new SkillInfo;
skill->id = 1;
- skill->name = "basic";
- skill->dispName = "Skill: basic, Id: 1";
+ skill->name = _("basic");
+ skill->dispName = _("Skill: basic, Id: 1");
skill->setIcon("");
skill->modifiable = true;
skill->visible = true;
@@ -428,14 +428,14 @@ void SkillDialog::loadSkills(const std::string &file)
if (xmlNameEqual(node, "skill"))
{
int id = atoi(XML::getProperty(node, "id", "-1").c_str());
- std::string name = XML::getProperty(node, "name",
+ std::string name = XML::langProperty(node, "name",
strprintf(_("Skill %d"), id));
std::string icon = XML::getProperty(node, "icon", "");
SkillInfo *skill = new SkillInfo;
skill->id = static_cast<short unsigned>(id);
skill->name = name;
- skill->dispName = strprintf("Skill: %s, Id: %d",
+ skill->dispName = strprintf(_("Skill: %s, Id: %d"),
name.c_str(), skill->id);
skill->setIcon(icon);
skill->modifiable = false;