mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 12:03:36 +00:00
16 lines
382 B
C++
16 lines
382 B
C++
#include "../Platform/stdafx.h"
|
|
#include "Language.h"
|
|
#include "I18n.h"
|
|
|
|
Language* I18n::lang = Language::getInstance();
|
|
// 4jcraft const & into va_start is ub
|
|
std::wstring I18n::get(std::wstring id, ...) {
|
|
va_list va;
|
|
va_start(va, id);
|
|
return I18n::get(id, va);
|
|
}
|
|
|
|
std::wstring I18n::get(const std::wstring& id, va_list args) {
|
|
return lang->getElement(id, args);
|
|
}
|