Initialize i18n for xqf-rcon.
git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@384 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
parent
c9a01e1295
commit
180a86c146
@ -1,3 +1,6 @@
|
||||
Nov 17, 2002: Jordi Mallach <jordi@sindominio.net>
|
||||
- Initialize i18n for xqf-rcon.
|
||||
|
||||
Nov 16, 2002: Alex Burger <alex_b@users.sourceforge.net>
|
||||
- Changed version to 0.9.10.1
|
||||
|
||||
|
@ -31,6 +31,9 @@
|
||||
#include <sys/time.h> // select
|
||||
|
||||
#ifdef RCON_STANDALONE
|
||||
# ifdef ENABLE_NLS
|
||||
# include <locale.h>
|
||||
# endif
|
||||
#include <stdlib.h>
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user