diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-03 20:36:26 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-03 20:36:26 +0000 |
commit | ee5830a18757f5b34890a27a239e6a9214f8ac62 (patch) | |
tree | 7061779ec307ecdf9d10ad8ebda55b16a3aa68c7 /src/localplayer.cpp | |
parent | b047811ba2e0fd8ced277f9b3f7bc35d6c274e09 (diff) | |
download | mana-ee5830a18757f5b34890a27a239e6a9214f8ac62.tar.gz mana-ee5830a18757f5b34890a27a239e6a9214f8ac62.tar.bz2 mana-ee5830a18757f5b34890a27a239e6a9214f8ac62.tar.xz mana-ee5830a18757f5b34890a27a239e6a9214f8ac62.zip |
Skill gui beautifications by roderic.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 3c70c228..f581db27 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -41,6 +41,7 @@ #include "net/protocol.h" #include "utils/tostring.h" +#include "utils/gettext.h" LocalPlayer *player_node = NULL; @@ -445,20 +446,21 @@ void LocalPlayer::lowerAttribute(size_t attr) const std::string& LocalPlayer::getSkillName(int skill) { static const std::string skills[CHAR_SKILL_NB + 1] = - { "Unarmed", // CHAR_SKILL_WEAPON_NONE - "Knife", // CHAR_SKILL_WEAPON_KNIFE - "Sword", // CHAR_SKILL_WEAPON_SWORD - "Polearm", // CHAR_SKILL_WEAPON_POLEARM - "Staff", // CHAR_SKILL_WEAPON_STAFF - "Whip", // CHAR_SKILL_WEAPON_WHIP - "Bow", // CHAR_SKILL_WEAPON_BOW - "Shooting", // CHAR_SKILL_WEAPON_SHOOTING - "Mace", // CHAR_SKILL_WEAPON_MACE - "Axe", // CHAR_SKILL_WEAPON_AXE - "Thrown", // CHAR_SKILL_WEAPON_THROWN - "Magic", // CHAR_SKILL_MAGIC_IAMJUSTAPLACEHOLDER - "Craft", // CHAR_SKILL_CRAFT_IAMJUSTAPLACEHOLDER - "Unknown Skill" + { + _("Unarmed"), // CHAR_SKILL_WEAPON_NONE + _("Knife"), // CHAR_SKILL_WEAPON_KNIFE + _("Sword"), // CHAR_SKILL_WEAPON_SWORD + _("Polearm"), // CHAR_SKILL_WEAPON_POLEARM + _("Staff"), // CHAR_SKILL_WEAPON_STAFF + _("Whip"), // CHAR_SKILL_WEAPON_WHIP + _("Bow"), // CHAR_SKILL_WEAPON_BOW + _("Shooting"), // CHAR_SKILL_WEAPON_SHOOTING + _("Mace"), // CHAR_SKILL_WEAPON_MACE + _("Axe"), // CHAR_SKILL_WEAPON_AXE + _("Thrown"), // CHAR_SKILL_WEAPON_THROWN + _("Magic"), // CHAR_SKILL_MAGIC_IAMJUSTAPLACEHOLDER + _("Craft"), // CHAR_SKILL_CRAFT_IAMJUSTAPLACEHOLDER + _("Unknown Skill") }; if ((skill < 0) || (skill > CHAR_SKILL_NB)) |