diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-04 15:44:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-04 16:24:42 +0300 |
commit | bc2c095db69be01837d07af1151b0f0a3061713f (patch) | |
tree | 98009b4483d873f45f7b4f2897a4a7ba5118d39e /src/net/eathena/skillrecv.cpp | |
parent | 9b5b48739b62fca4bb30cd04be1031ac3f80095d (diff) | |
download | mv-bc2c095db69be01837d07af1151b0f0a3061713f.tar.gz mv-bc2c095db69be01837d07af1151b0f0a3061713f.tar.bz2 mv-bc2c095db69be01837d07af1151b0f0a3061713f.tar.xz mv-bc2c095db69be01837d07af1151b0f0a3061713f.zip |
Add missing TRANSLATORS comments to translation strings.
Diffstat (limited to 'src/net/eathena/skillrecv.cpp')
-rw-r--r-- | src/net/eathena/skillrecv.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp index 26ce946cc..214cd88d9 100644 --- a/src/net/eathena/skillrecv.cpp +++ b/src/net/eathena/skillrecv.cpp @@ -220,17 +220,27 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg) SkillInfo *const info = skillDialog->getSkill(bskill); if (info) + { txt = info->errorText; + } else + { + // TRANSLATORS: skill error message txt = strprintf(_("Unknown skill error: %d"), bskill); + } } else { SkillInfo *const info = skillDialog->getSkill(skillId); if (info) + { txt = info->errorText + "."; + } else + { + // TRANSLATORS: skill error message txt = strprintf(_("Unknown skill error: %d."), skillId); + } } txt.append(" "); @@ -292,11 +302,13 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg) const ItemInfo &info = ItemDB::get(itemId); if (amount == 1) { + // TRANSLATORS: skill error message txt.append(strprintf(_("Need equipment %s."), info.getLink().c_str())); } else { + // TRANSLATORS: skill error message txt.append(strprintf(_("Need equipment %s and amount %d"), info.getLink().c_str(), amount)); @@ -310,11 +322,13 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg) const ItemInfo &info = ItemDB::get(itemId); if (amount == 1) { + // TRANSLATORS: skill error message txt.append(strprintf(_("Need item %s."), info.getLink().c_str())); } else { + // TRANSLATORS: skill error message txt.append(strprintf(_("Need item %s and amount %d"), info.getLink().c_str(), amount)); |