Enable runtime translations
This commit is contained in:
+7
-5
@@ -220,6 +220,13 @@ main(int argc, char **argv)
|
||||
int ret;
|
||||
char *opt_file = NULL;
|
||||
|
||||
/* Initialise gettext before parsing options so --help, --version and
|
||||
command-line errors use the selected locale as well. */
|
||||
setlocale(LC_ALL, "");
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
||||
textdomain(PACKAGE);
|
||||
|
||||
proz_init(argc, argv); //init libprozilla
|
||||
set_defaults(); //set some reasonable defaults
|
||||
load_prefs(); //load values from the config file
|
||||
@@ -498,11 +505,6 @@ main(int argc, char **argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Gettext stuff */
|
||||
setlocale(LC_ALL, "");
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
textdomain(PACKAGE);
|
||||
|
||||
/*delete the ~/.prozilla/debug.log file if present at the start of each run */
|
||||
proz_debug_delete_log();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user