summaryrefslogtreecommitdiff
path: root/shared/i18n.cpp
blob: f22dca568796acd0493c7fcd628de9783e3b8538 (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::unique_ptr<TranslationHandler> globalHandler;
}

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


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