summaryrefslogtreecommitdiff
path: root/shared/i18n.cpp
blob: 8c0e900c6f2c6bc8fa56ef4890ee5b647908e5b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "i18n.h"
#include <memory>

using namespace zen;

namespace
{
std::auto_ptr<TranslationHandler> globalHandler;
}

void zen::setTranslator(TranslationHandler* newHandler)
{
    globalHandler.reset(newHandler);
}


TranslationHandler* zen::getTranslator()
{
    return globalHandler.get();
}
bgstack15