diff options
author | Adam <Adam@anope.org> | 2012-05-06 21:43:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-05-06 21:43:50 -0400 |
commit | 675b113c3e03cf1917b2a731c21fe82b5f1f2b2b (patch) | |
tree | 6a80aaeafa829a3cef5c41c938d92ffedd1bdad8 /src/language.cpp | |
parent | eb0e07d5645c06eb034cfcfbf91883158ba9dc00 (diff) |
Split up db/conf/lib/locale install directories, and allow alternate ones to be specified at runtime
Diffstat (limited to 'src/language.cpp')
-rw-r--r-- | src/language.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/language.cpp b/src/language.cpp index 8b680077b..2b41d755e 100644 --- a/src/language.cpp +++ b/src/language.cpp @@ -31,7 +31,7 @@ void InitLanguages() while (sep.GetToken(language)) { - if (!IsFile("languages/" + language + "/LC_MESSAGES/anope.mo")) + if (!IsFile(locale_dir + "/" + language + "/LC_MESSAGES/anope.mo")) { Log() << "Error loading language " << language << ", file does not exist!"; } @@ -42,10 +42,10 @@ void InitLanguages() } } - if (!bindtextdomain("anope", (services_dir + "/languages/").c_str())) + if (!bindtextdomain("anope", locale_dir.c_str())) Log() << "Error calling bindtextdomain, " << Anope::LastError(); else - Log(LOG_DEBUG) << "Successfully bound anope to " << services_dir << "/languages/"; + Log(LOG_DEBUG) << "Successfully bound anope to " << locale_dir; setlocale(LC_ALL, ""); #else |