From 175027e204d936b2c775fe587e7d3f14e71e1233 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 14 Jan 2011 01:39:58 +0200 Subject: Add unification for inventory/storage/cart name. --- src/inventory.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/inventory.cpp') 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 #include @@ -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"); + } +} -- cgit v1.2.3-60-g2f50