Command line translation now works, the gettext stuff needed to be called _before_ the command line parameter parsing.

This commit is contained in:
evilynux 2007-07-18 00:12:38 +00:00
parent e6990bab89
commit f5ef7c9a0d
1 changed files with 2 additions and 2 deletions

View File

@ -612,13 +612,13 @@ common_gtk_glade_main( struct configured_features *my_config) {
int main(int argc, char *argv[]) {
struct configured_features my_config;
init_configured_features( &my_config);
// Localization
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
init_configured_features( &my_config);
if (!g_thread_supported())
g_thread_init( NULL);