gettextize and some rough translations
[super-star-trek.git] / src / io.c
index 5c5ac644526dc4c91ba5f9db6be3e20b04fab22f..b513f26af4efe625d0cddb238ba06491de6057b7 100644 (file)
--- a/src/io.c
+++ b/src/io.c
@@ -1,10 +1,7 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <unistd.h>
-#include <curses.h>
-#include <signal.h>
-#include <ctype.h>
-#include <stdarg.h>
 
 
+#include "config.h"
 #include "sst.h"
 #include "sstlinux.h"
 
 #include "sst.h"
 #include "sstlinux.h"
 
@@ -34,6 +31,11 @@ static void outro(void)
 
 void iostart(void) 
 {
 
 void iostart(void) 
 {
+    setlocale(LC_ALL, "");
+    bindtextdomain(PACKAGE, LOCALEDIR);
+    textdomain(PACKAGE);
+    gettext("");
+
     if (!(game.options & OPTION_CURSES)) {
        rows = atoi(getenv("LINES"));
     } else {
     if (!(game.options & OPTION_CURSES)) {
        rows = atoi(getenv("LINES"));
     } else {