diff options
-rw-r--r-- | src/resources/mapreader.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 3499c54a..8ba06ff5 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -31,7 +31,6 @@ #include "utils/base64.h" #include "utils/stringutils.h" -#include "utils/gettext.h" #include "utils/xml.h" #include <cassert> @@ -118,19 +117,19 @@ int inflateMemory(unsigned char *in, unsigned int inLength, { if (ret == Z_MEM_ERROR) { - logger->log(_("Error: Out of memory while decompressing map data!")); + logger->log("Error: Out of memory while decompressing map data!"); } else if (ret == Z_VERSION_ERROR) { - logger->log(_("Error: Incompatible zlib version!")); + logger->log("Error: Incompatible zlib version!"); } else if (ret == Z_DATA_ERROR) { - logger->log(_("Error: Incorrect zlib compressed data!")); + logger->log("Error: Incorrect zlib compressed data!"); } else { - logger->log(_("Error: Unknown error while decompressing map data!")); + logger->log("Error: Unknown error while decompressing map data!"); } free(out); @@ -143,7 +142,7 @@ int inflateMemory(unsigned char *in, unsigned int inLength, Map *MapReader::readMap(const std::string &filename) { - logger->log(_("Attempting to read map %s"), filename.c_str()); + logger->log("Attempting to read map %s", filename.c_str()); // Load the file through resource manager ResourceManager *resman = ResourceManager::getInstance(); int fileSize; @@ -152,7 +151,7 @@ Map *MapReader::readMap(const std::string &filename) if (buffer == NULL) { - logger->log(_("Map file not found (%s)"), filename.c_str()); + logger->log("Map file not found (%s)", filename.c_str()); return NULL; } @@ -168,8 +167,8 @@ Map *MapReader::readMap(const std::string &filename) if (inflated == NULL) { - logger->log(_("Could not decompress map file (%s)"), - filename.c_str()); + logger->log("Could not decompress map file (%s)", + filename.c_str()); return NULL; } } @@ -218,8 +217,9 @@ Map *MapReader::readMap(xmlNodePtr node, const std::string &path) if (tilew < 0 || tileh < 0) { - logger->log(_("MapReader: Warning: " - "Unitialized tile width or height value for map: %s"), path.c_str()); + logger->log("MapReader: Warning: " + "Unitialized tile width or height value for map: %s", + path.c_str()); return 0; } |