diff options
author | Kess Vargavind <vargavind@gmail.com> | 2009-08-07 13:33:14 +0200 |
---|---|---|
committer | Kess Vargavind <vargavind@gmail.com> | 2009-08-07 14:18:45 +0200 |
commit | 6460413ee2f50be561fd0824e3eaa9c2c09415b1 (patch) | |
tree | 86691035f8d0d3bfac86249b63a160fab924c43c /src/gui/skilldialog.cpp | |
parent | 6ab1e52df06baea2ad00d4e87378f220534795c8 (diff) | |
download | mana-6460413ee2f50be561fd0824e3eaa9c2c09415b1.tar.gz mana-6460413ee2f50be561fd0824e3eaa9c2c09415b1.tar.bz2 mana-6460413ee2f50be561fd0824e3eaa9c2c09415b1.tar.xz mana-6460413ee2f50be561fd0824e3eaa9c2c09415b1.zip |
Gettext fixes
Trying to use the same kind of capitalization and interpunctuation
for various parts of the gui, melding a few split strings, updating
POTFILES.in and adding translators' notes.
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); |