mirror of
https://github.com/znc/znc.git
synced 2026-06-27 13:31:32 +02:00
Test module translation of commands
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <znc/Translation.h>
|
||||
#include <znc/FileUtils.h>
|
||||
#include <znc/znc.h>
|
||||
|
||||
#ifdef HAVE_I18N
|
||||
#include <boost/locale.hpp>
|
||||
@@ -88,6 +89,7 @@ const std::locale& CTranslation::LoadTranslation(const CString& sDomain) {
|
||||
if (lang_it == domain.end()) {
|
||||
boost::locale::generator gen;
|
||||
gen.add_messages_path(LOCALE_DIR);
|
||||
gen.add_messages_path(CZNC::Get().GetModPath() + "/locale");
|
||||
gen.add_messages_domain(sDomain);
|
||||
std::tie(lang_it, std::ignore) =
|
||||
domain.emplace(sLanguage, gen(sLanguage + ".UTF-8"));
|
||||
|
||||
Reference in New Issue
Block a user