From f1ef299c10eb1fed8e40aa631e96931c319b70c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 12 Apr 2024 20:28:23 +0200 Subject: [PATCH] clapper-gtk: status: Fix missing translations --- src/lib/clapper-gtk/clapper-gtk-status.c | 10 +++++++--- src/lib/clapper-gtk/po/POTFILES | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/clapper-gtk/clapper-gtk-status.c b/src/lib/clapper-gtk/clapper-gtk-status.c index 0076f926..fbdfae02 100644 --- a/src/lib/clapper-gtk/clapper-gtk-status.c +++ b/src/lib/clapper-gtk/clapper-gtk-status.c @@ -19,9 +19,11 @@ #include "config.h" +#include #include #include "clapper-gtk-status-private.h" +#include "clapper-gtk-utils-private.h" #define NORMAL_SPACING 16 #define ADAPT_SPACING 8 @@ -74,7 +76,7 @@ void clapper_gtk_status_set_error (ClapperGtkStatus *self, const GError *error) { GST_DEBUG_OBJECT (self, "Status set to \"error\""); - _set_status (self, "dialog-warning-symbolic", "Unplayable Content", error->message); + _set_status (self, "dialog-warning-symbolic", _("Unplayable Content"), error->message); } void @@ -83,8 +85,9 @@ clapper_gtk_status_set_missing_plugin (ClapperGtkStatus *self, const gchar *name gchar *description; GST_DEBUG_OBJECT (self, "Status set to \"missing-plugin\""); - description = g_strdup_printf ("Your GStreamer installation is missing a plugin: %s", name); - _set_status (self, "dialog-information-symbolic", "Missing Plugin", description); + /* TRANSLATORS: Please do not try to translate "GStreamer" (it is a library name). */ + description = g_strdup_printf (_("Your GStreamer installation is missing a plugin: %s"), name); + _set_status (self, "dialog-information-symbolic", _("Missing Plugin"), description); g_free (description); } @@ -120,6 +123,7 @@ clapper_gtk_status_class_init (ClapperGtkStatusClass *klass) GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "clappergtkstatus", 0, "Clapper GTK Status"); + clapper_gtk_init_translations (); gobject_class->dispose = clapper_gtk_status_dispose; diff --git a/src/lib/clapper-gtk/po/POTFILES b/src/lib/clapper-gtk/po/POTFILES index cc4ca53f..1fbd4c32 100644 --- a/src/lib/clapper-gtk/po/POTFILES +++ b/src/lib/clapper-gtk/po/POTFILES @@ -1,5 +1,6 @@ src/lib/clapper-gtk/ui/clapper-gtk-extra-menu-button.ui src/lib/clapper-gtk/clapper-gtk-extra-menu-button.c +src/lib/clapper-gtk/clapper-gtk-status.c src/lib/clapper-gtk/clapper-gtk-stream-check-button.c src/lib/clapper-gtk/clapper-gtk-title-label.c