diff options
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r-- | src/gui/skilldialog.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index a27a2775..14e0e5a4 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -328,9 +328,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); |