diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-14 01:39:58 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-14 01:39:58 +0200 |
commit | 175027e204d936b2c775fe587e7d3f14e71e1233 (patch) | |
tree | ad0e56e5da67ef47aa94ff0bc9f4757afc9b57d7 /src/inventory.cpp | |
parent | 0b3368c1675e774954068de6427d0fad282a9293 (diff) | |
download | plus-175027e204d936b2c775fe587e7d3f14e71e1233.tar.gz plus-175027e204d936b2c775fe587e7d3f14e71e1233.tar.bz2 plus-175027e204d936b2c775fe587e7d3f14e71e1233.tar.xz plus-175027e204d936b2c775fe587e7d3f14e71e1233.zip |
Add unification for inventory/storage/cart name.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index 23387cadb..f9956798f 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -28,6 +28,8 @@ #include "resources/iteminfo.h" +#include "utils/gettext.h" + #include <algorithm> #include <string> @@ -223,3 +225,17 @@ Item *Inventory::findItemBySprite(std::string spritePath, Gender gender) return 0; } + +std::string Inventory::getName() +{ + switch (mType) + { + case INVENTORY: + default: + return N_("Inventory"); + case STORAGE: + return N_("Storage"); + case CART: + return N_("Cart"); + } +} |