diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-06 00:16:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-06 00:16:58 +0300 |
commit | 0cbb5fdd043733456565f705d1527ec67785a005 (patch) | |
tree | 3bed9953abf5bbbfc3d8e285b924cc309054a463 /src/gui | |
parent | bf435a79408d89072f5872ab98449949a8a077b0 (diff) | |
download | mv-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')
-rw-r--r-- | src/gui/skilldialog.cpp | 8 |
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; |