diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-09 22:36:32 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-09 22:36:32 +0100 |
commit | 7ec3ae46caf310cf83ece9e90e8e0f668179144b (patch) | |
tree | 74d140005099009bb71040d34a9e08d467ad1f4d /src/resources | |
parent | bade85c7890c2255dba41b084132ef892bf365fa (diff) | |
download | mana-7ec3ae46caf310cf83ece9e90e8e0f668179144b.tar.gz mana-7ec3ae46caf310cf83ece9e90e8e0f668179144b.tar.bz2 mana-7ec3ae46caf310cf83ece9e90e8e0f668179144b.tar.xz mana-7ec3ae46caf310cf83ece9e90e8e0f668179144b.zip |
Don't translate the log
It's not meant for the user, translating it only burdens both us and our
translators unnecessarily.
Diffstat (limited to 'src/resources')
-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; } |