diff --git a/xqf/ChangeLog b/xqf/ChangeLog index 7f02126..e83ecd4 100644 --- a/xqf/ChangeLog +++ b/xqf/ChangeLog @@ -1,3 +1,6 @@ +Nov 17, 2002: Jordi Mallach +- Initialize i18n for xqf-rcon. + Nov 16, 2002: Alex Burger - Changed version to 0.9.10.1 diff --git a/xqf/src/rcon.c b/xqf/src/rcon.c index 8ec2bcb..e6cb31d 100644 --- a/xqf/src/rcon.c +++ b/xqf/src/rcon.c @@ -31,6 +31,9 @@ #include // select #ifdef RCON_STANDALONE +# ifdef ENABLE_NLS +# include +# endif #include #include #include @@ -614,6 +617,17 @@ int main(int argc, char* argv[]) char* buf = NULL; int res; +#ifdef ENABLE_NLS +# ifdef HAVE_LC_MESSAGES + setlocale(LC_CTYPE, ""); + setlocale(LC_MESSAGES, ""); +# else + setlocale(LC_ALL, ""); +# endif + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); +#endif + rcon_servertype = Q3_SERVER; if(argc>1)