From 12ebce86d17596542edf094c179ee2e75bb9308e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Jul 2016 15:58:51 +0300 Subject: Translate map names. --- src/resources/mapreader.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 9ede3db7a..b4905eb67 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -59,6 +59,8 @@ #include "utils/physfstools.h" #include "utils/stringmap.h" +#include "utils/translation/podict.h" + #include #include "debug.h" @@ -514,7 +516,12 @@ void MapReader::readProperties(const XmlNodePtrConst node, const std::string value = XML::getProperty(childNode, "value", ""); if (!name.empty() && !value.empty()) - props->setProperty(name, value); + { + if (name == "name") + props->setProperty(name, translator->getStr(value)); + else + props->setProperty(name, value); + } } BLOCK_END("MapReader::readProperties") } -- cgit v1.2.3-70-g09d2