summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/skillrecv.cpp')
-rw-r--r--src/net/eathena/skillrecv.cpp14
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));