The RNG names added to the GTK combobox are translated using gettext(), but OptionsOK() was comparing the selected name with the untranslated entries of aszRNG[].
If translation changed the RNG name (e.g. Blum-Blum-Shub in ja.po), the search could fail and RNG_MANUAL would be selected instead. gettext() is now also used during the comparison. We might need to compare them using an enum or something regardless of the translated strings, but I've attached a patch for now. Best regards, -- TAKAHASHI Kaoru
>From 19d35b1b50e48ffd924410ee9979195d18ecf3ff Mon Sep 17 00:00:00 2001 From: TAKAHASHI Kaoru <[email protected]> Date: Sat, 22 Aug 2026 04:15:36 +0900 Subject: [PATCH] Fix translated RNG selection in GTK options --- gtk/gtkoptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkoptions.c b/gtk/gtkoptions.c index 4d4543c6..db2e0ce3 100644 --- a/gtk/gtkoptions.c +++ b/gtk/gtkoptions.c @@ -1906,7 +1906,7 @@ OptionsOK(GtkWidget * pw, optionswidget * pow) if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(pow->apwDice[0]))) { /* rng selected */ char *selRNG = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(pow->pwRngComboBox)); for (i = 0; i < NUM_RNGS - 3; i++) { - if (!strcmp(selRNG, aszRNG[i])) + if (!strcmp(selRNG, gettext(aszRNG[i]))) break; } g_free(selRNG); -- 2.47.3
