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. --- timerapplet/src/timerapplet.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'timerapplet/src') diff --git a/timerapplet/src/timerapplet.c b/timerapplet/src/timerapplet.c index c5cb2107b..ce5ca009e 100644 --- a/timerapplet/src/timerapplet.c +++ b/timerapplet/src/timerapplet.c @@ -316,7 +316,11 @@ timer_preferences_callback (GtkAction *action, TimerApplet *applet) GtkDialog *dialog; gint duration, hours, minutes, seconds; - builder = gtk_builder_new_from_resource ("/org/mate/mate-applets/timerapplet/timerapplet-preferences.ui"); + builder = gtk_builder_new (); + gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE); + gtk_builder_add_from_resource (builder, + "/org/mate/mate-applets/timerapplet/timerapplet-preferences.ui", + NULL); dialog = GET_DIALOG ("preferences_dialog"); applet->hours = GET_SPIN_BUTTON ("hours_spinbutton"); -- cgit v1.2.1