summaryrefslogtreecommitdiff
path: root/src/resources/db/itemdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/itemdb.cpp')
-rw-r--r--src/resources/db/itemdb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index be196f615..935455c9c 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -385,9 +385,14 @@ void ItemDB::loadXmlFile(const std::string &fileName,
// TRANSLATORS: item info name
itemInfo->setName(name.empty() ? _("unnamed") : name);
if (nameEn.empty())
+ {
+ // TRANSLATORS: item info name
itemInfo->setNameEn(name.empty() ? _("unnamed") : name);
+ }
else
+ {
itemInfo->setNameEn(nameEn);
+ }
if (description.empty() && inheritItemInfo)
description = inheritItemInfo->getDescription();