From b9c7f05dca400eac0177f3e28d1c49895098841c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Sun, 18 Oct 2026 08:14:50 +0200 Subject: Set gettext domain for GtkBuilder The translation domain needs to be set before loading GtkBuilder files to get the translated strings when the applets are built as in-process. --- command/src/command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'command/src') diff --git a/command/src/command.c b/command/src/command.c index 8df976304..05c4c44e2 100644 --- a/command/src/command.c +++ b/command/src/command.c @@ -226,7 +226,11 @@ command_settings_callback (GtkAction *action, CommandApplet *command_applet) GtkDialog *dialog; GtkBuilder *builder; - builder = gtk_builder_new_from_resource ("/org/mate/mate-applets/command/command-preferences.ui"); + builder = gtk_builder_new (); + gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE); + gtk_builder_add_from_resource (builder, + "/org/mate/mate-applets/command/command-preferences.ui", + NULL); dialog = GET_DIALOG ("preferences_dialog"); -- cgit v1.2.1