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 |
|
|