diff options
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"); + } +} |