Changeset 45 for trunk/src/main.cxx

Show
Ignore:
Timestamp:
04/12/06 16:17:43 (3 years ago)
Author:
jordi
Message:

Added support for native language and added the Spanish and Catalan translations.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cxx

    r43 r45  
    1919#include <stdlib.h> 
    2020#include <gettext.h> 
     21#include <locale.h> 
    2122#include <gtk/gtk.h> 
    2223#include <IMainView.h> 
     
    2930main (int argc, char **argv) 
    3031{ 
     32    // Enable NLS support. 
     33    setlocale (LC_ALL, ""); 
     34    bindtextdomain (PACKAGE, LOCALEDIR); 
     35    bind_textdomain_codeset (PACKAGE, "UTF-8"); 
     36    textdomain (PACKAGE); 
    3137    // Initialize the GTK library. 
    3238    gtk_init (&argc, &argv);