Translate menu labels after locale setup

This commit is contained in:
Mario Fetka
2026-07-15 07:09:38 +02:00
parent e8ae4c4f70
commit c197beacf7
4 changed files with 18 additions and 5 deletions
+13
View File
@@ -672,6 +672,19 @@ int main(int argc, char **argv)
bind_textdomain_codeset(PACKAGE, "UTF-8");
textdomain(PACKAGE);
/* menuitems has static storage and is constructed before setlocale().
Refresh its labels now that the selected gettext domain is active. */
menuitems[0].label(_("&File"));
menuitems[1].label(_("&New URL"));
menuitems[2].label(_("&Preferences"));
menuitems[3].label(_("&Quit"));
menuitems[5].label(_("&Download"));
menuitems[6].label(_("&Start"));
menuitems[7].label(_("&Stop"));
menuitems[8].label(_("&Remove from list"));
menuitems[10].label(_("&Help"));
menuitems[11].label(_("&About"));
apply_desktop_scheme();
set_defaults(&argc, &argv);