diff options
| author | Adam <Adam@anope.org> | 2011-02-04 15:30:31 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-02-04 15:30:31 -0500 |
| commit | 08583dc107974252312fb7c87532c9deb68e7f63 (patch) | |
| tree | 0c42ec7422752cabd8352b49be976b4dc100c56c /include/services.h | |
| parent | c362a1e077d5ede9eadbe79483f2a755b5883e9a (diff) | |
Moved the language strings which are only used once
out of the core and into the modules that use them.
Diffstat (limited to 'include/services.h')
| -rw-r--r-- | include/services.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/services.h b/include/services.h index fbc6420fb..b5394287e 100644 --- a/include/services.h +++ b/include/services.h @@ -140,6 +140,13 @@ extern "C" void __pfnBkCheck() {} # undef int32 #endif +#if GETTEXT_FOUND +# include LIBINTL +# define _(x) anope_gettext(x) +#else +# define _(x) x +#endif + /** This definition is used as shorthand for the various classes * and functions needed to make a module loadable by the OS. * It defines the class factory and external AnopeInit and AnopeFini functions. @@ -776,7 +783,6 @@ enum * user is kicked. */ -#include "language.h" #include "users.h" #include "account.h" #include "bots.h" @@ -792,7 +798,7 @@ struct LevelInfo { int what; Anope::string name; - LanguageString desc; + const char *desc; }; #include "channels.h" @@ -852,7 +858,7 @@ struct NewsMessages { NewsType type; Anope::string name; - LanguageString msgs[10]; + const char *msgs[10]; }; struct NewsItem @@ -938,6 +944,7 @@ struct Uplink; class ServerConfig; #include "extern.h" +#include "language.h" #include "operserv.h" #include "mail.h" #include "servers.h" |
