1
0
forked from mirrors/0ad

huge cleanup and conversion of most string handling (especially paths) to unicode

please note: format strings must be %hs for char* arguments and %ls for
wchar_t*

This was SVN commit r7161.
This commit is contained in:
janwas
2009-11-03 21:46:35 +00:00
parent a46f3432f3
commit 8a52113e60
317 changed files with 2517 additions and 2588 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ template<typename T> void delete_fn(T* v) { delete v; }
#include <iostream>
#include "ps/CLogger.h"
#define LOG_CATEGORY "i18n"
#define LOG_CATEGORY L"i18n"
using namespace I18n;
@@ -44,7 +44,7 @@ I18n::StringBuffer::operator Str()
if (Variables.size() != String->VarCount)
{
LOG(CLogger::Error, LOG_CATEGORY, "I18n: Incorrect number of parameters passed to Translate");
LOG(CLogger::Error, LOG_CATEGORY, L"I18n: Incorrect number of parameters passed to Translate");
// Tidy up
std::for_each(Variables.begin(), Variables.end(), delete_fn<BufferVariable>);