Enable runtime translations

This commit is contained in:
Mario Fetka
2026-07-15 07:01:01 +02:00
parent 5bac50f36f
commit 00473056a9
4 changed files with 12 additions and 8 deletions
+7 -5
View File
@@ -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();