summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-07-17 14:31:36 +0200
committerKess Vargavind <vargavind@gmail.com>2009-07-17 15:21:53 +0200
commit8b0a65f00c0e5afb2c177462acd30013afa99b64 (patch)
treee34427ff57870c0e96065ccdacd296e9dddd445a /src/localplayer.cpp
parent18aaa873abcaa617bbd296f73138d062423662b8 (diff)
downloadmana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.gz
mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.bz2
mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.xz
mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.zip
Various gettext fixes
* Merged a few split strings * Fixed some spellings and wordings * Turned a couple of std::cout and std::cerr into logger messages
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 18bc77b0..970204d0 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -869,15 +869,24 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount)
}
else
{
- // TRANSLATORS: Used as in "You picked up a ...", when picking up
- // only one item.
const std::string amountStr = (amount > 1) ? toString(amount) : _("a");
if (config.getValue("showpickupchat", 1))
{
- localChatTab->chatLog(strprintf(_("You picked up %s [@@%d|%s@@]."),
- amountStr.c_str(), itemInfo.getId(),
- itemInfo.getName().c_str()), BY_SERVER);
+ if (amount == 1)
+ {
+ // TRANSLATORS: Used as in "You picked up a [Candy]", when
+ // picking up only one item.
+ localChatTab->chatLog(strprintf(_("You picked up a [@@%d|%s@@]."),
+ itemInfo.getId(), itemInfo.getName().c_str()), BY_SERVER);
+ }
+ else
+ {
+ // TRANSLATORS: Used as in "You picked up 4 [Candy]", when
+ // picking up more than one item.
+ localChatTab->chatLog(strprintf(_("You picked up %d [@@%d|%s@@]."),
+ amount, itemInfo.getId(), itemInfo.getName().c_str()), BY_SERVER);
+ }
}
if (mMap && config.getValue("showpickupparticle", 0))