summaryrefslogtreecommitdiff
path: root/shared/i18n.cpp
blob: a5fb32dd11a342c9fe9faff4532db4d5b273e25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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