diff options
| author | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
| commit | a1b36ec0a527e6d7a9d224b56bf9571619d5f92e (patch) | |
| tree | 5e74290f46205ef1ad86700e1f04ec016b1f66fd /include/extern.h | |
| parent | 48e995ddf2cd30a05222a51e665c02b1e7ae567a (diff) | |
Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules
Diffstat (limited to 'include/extern.h')
| -rw-r--r-- | include/extern.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/extern.h b/include/extern.h index 8aa5428a7..91312d1ab 100644 --- a/include/extern.h +++ b/include/extern.h @@ -93,12 +93,12 @@ E void pmodule_ircd_message(IRCdMessage *message); /**** language.cpp ****/ E std::vector<Anope::string> languages; +E std::vector<Anope::string> domains; E void InitLanguages(); -E const Anope::string GetString(NickCore *nc, const char *string); -E const Anope::string GetString(const Anope::string &domain, const Anope::string &lang, const char *string); -E void PushLanguage(const Anope::string &, Anope::string); -E void PopLanguage(); -E const char *anope_gettext(const char *string); +E const char *translate(const char *string); +E const char *translate(User *u, const char *string); +E const char *translate(NickCore *nc, const char *string); +E const char *anope_gettext(const char *lang, const char *string); E void SyntaxError(CommandSource &source, const Anope::string &command, const Anope::string &message); /**** main.c ****/ |
