/[adonthell]/adonthell-0.3/src/nls.cc
ViewVC logotype

Diff of /adonthell-0.3/src/nls.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by ksterker, Sun Jan 5 23:00:15 2003 UTC revision 1.9 by ksterker, Sun Apr 17 16:38:22 2005 UTC
# Line 38  void nls::init (config &myconfig) Line 38  void nls::init (config &myconfig)
38      // otherwise overwrite any environment variables      // otherwise overwrite any environment variables
39      else      else
40          set_language (myconfig.language);          set_language (myconfig.language);
41        
42      // open the message catalogue      // open the message catalogue
43      std::string location = myconfig.gamedir + "/locale";      std::string location = myconfig.gamedir + "/locale";
44      bindtextdomain (myconfig.game_name.c_str (), location.c_str ());      const char *domain = myconfig.game_name.c_str ();
45      textdomain (myconfig.game_name.c_str ());  
46        bindtextdomain (domain, location.c_str ());
47        textdomain (domain);
48        bind_textdomain_codeset(domain, "UTF-8");
49  #endif  #endif
50  }  }
51    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26