summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-14 01:39:58 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-14 01:39:58 +0200
commit175027e204d936b2c775fe587e7d3f14e71e1233 (patch)
treead0e56e5da67ef47aa94ff0bc9f4757afc9b57d7 /src/inventory.cpp
parent0b3368c1675e774954068de6427d0fad282a9293 (diff)
downloadmanaplus-175027e204d936b2c775fe587e7d3f14e71e1233.tar.gz
manaplus-175027e204d936b2c775fe587e7d3f14e71e1233.tar.bz2
manaplus-175027e204d936b2c775fe587e7d3f14e71e1233.tar.xz
manaplus-175027e204d936b2c775fe587e7d3f14e71e1233.zip
Add unification for inventory/storage/cart name.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp16
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");
+ }
+}