summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-10 20:16:22 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-10 20:16:22 -0600
commit56865a2c98a589a1e530e296b1681e369e2ae48f (patch)
treec3ea1115b5afcca197c87e1a257f34583b2d57ce /src/gui/skilldialog.cpp
parent7a7018c517948c2cc567d28d221c5cd8a91f2c12 (diff)
parent0ebdce30ee61d7b038e81bc64ae7d1e27d98a144 (diff)
downloadmana-56865a2c98a589a1e530e296b1681e369e2ae48f.tar.gz
mana-56865a2c98a589a1e530e296b1681e369e2ae48f.tar.bz2
mana-56865a2c98a589a1e530e296b1681e369e2ae48f.tar.xz
mana-56865a2c98a589a1e530e296b1681e369e2ae48f.zip
Merge branch 'master' of git@gitorious.org:tmw/mainline
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 2f970184..a0bfaf53 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -340,9 +340,18 @@ void SkillEntry::update()
setVisible(true);
- std::string skillLevel("Lvl: " + toString(baseLevel));
+ std::string skillLevel;
+
if (effLevel != baseLevel)
- skillLevel += strprintf(" (%+d)", baseLevel - effLevel);
+ {
+ skillLevel = strprintf(_("Lvl: %d (%+d)"),
+ baseLevel, baseLevel - effLevel);
+ }
+ else
+ {
+ skillLevel = strprintf(_("Lvl: %d"), baseLevel);
+ }
+
mLevelLabel->setCaption(skillLevel);
std::pair<int, int> exp = player_node->getExperience(mInfo->id);