gui: Translate names of aggregation functions in bar chart dialog.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 25 Mar 2024 16:24:25 +0000 (09:24 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 25 Mar 2024 16:24:25 +0000 (09:24 -0700)
Thanks to Mindaugus for reporting the problem.

src/ui/gui/psppire-dialog-action-barchart.c

index 20ff009a36fe2c9ef6fd2e5cd085c0c33d414c96..e1c42bc5516646b7e84cbd8d85536d445d976c77 100644 (file)
@@ -32,6 +32,8 @@
 
 #include "language/commands/chart-category.h"
 
+#include <gettext.h>
+
 static void
 psppire_dialog_action_barchart_class_init (PsppireDialogActionBarchartClass *class);
 
@@ -99,7 +101,7 @@ populate_combo_model (GtkComboBox *cb)
 
       gtk_list_store_append (list, &iter);
       gtk_list_store_set (list, &iter,
-                          0, af->description,
+                          0, gettext (af->description),
                           1, af->name,
                           -1);
     }