[gnome-software/i18n-strings-fix] Makes these strings avaiable for translation by including the right gettext reference



commit 03ed73c49a0783da061a170e3a97f491ad21acee
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Aug 22 06:20:41 2021 +0200

    Makes these strings avaiable for translation by including the right gettext reference

 src/gs-age-rating-context-dialog.c       | 12 ++++++------
 src/gs-hardware-support-context-dialog.c |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gs-age-rating-context-dialog.c b/src/gs-age-rating-context-dialog.c
index 82526ab31..c81f9ae59 100644
--- a/src/gs-age-rating-context-dialog.c
+++ b/src/gs-age-rating-context-dialog.c
@@ -681,15 +681,15 @@ update_attributes_list (GsAgeRatingContextDialog *self)
                if (age == 0)
                        /* Translators: This is a dialogue title which indicates that an app is suitable
                         * for all ages. The placeholder is the app name. */
-                       title = g_strdup_printf (("%s is suitable for everyone"), gs_app_get_name 
(self->app));
+                       title = g_strdup_printf (_("%s is suitable for everyone"), gs_app_get_name 
(self->app));
                else if (age <= 3)
                        /* Translators: This is a dialogue title which indicates that an app is suitable
                         * for children up to around age 3. The placeholder is the app name. */
-                       title = g_strdup_printf (("%s is suitable for toddlers"), gs_app_get_name 
(self->app));
+                       title = g_strdup_printf (_("%s is suitable for toddlers"), gs_app_get_name 
(self->app));
                else if (age <= 5)
                        /* Translators: This is a dialogue title which indicates that an app is suitable
                         * for children up to around age 5. The placeholder is the app name. */
-                       title = g_strdup_printf (("%s is suitable for young children"), gs_app_get_name 
(self->app));
+                       title = g_strdup_printf (_("%s is suitable for young children"), gs_app_get_name 
(self->app));
                else if (age <= 12)
                        /* Translators: This is a dialogue title which indicates that an app is suitable
                         * for children up to around age 12. The placeholder is the app name. */
@@ -697,16 +697,16 @@ update_attributes_list (GsAgeRatingContextDialog *self)
                else if (age <= 18)
                        /* Translators: This is a dialogue title which indicates that an app is suitable
                         * for people up to around age 18. The placeholder is the app name. */
-                       title = g_strdup_printf (("%s is suitable for teenagers"), gs_app_get_name 
(self->app));
+                       title = g_strdup_printf (_("%s is suitable for teenagers"), gs_app_get_name 
(self->app));
                else if (age < G_MAXUINT)
                        /* Translators: This is a dialogue title which indicates that an app is suitable
                         * for people aged up to and over 18. The placeholder is the app name. */
-                       title = g_strdup_printf (("%s is suitable for adults"), gs_app_get_name (self->app));
+                       title = g_strdup_printf (_("%s is suitable for adults"), gs_app_get_name (self->app));
                else
                        /* Translators: This is a dialogue title which indicates that an app is suitable
                         * for a specified age group. The first placeholder is the app name, the second
                         * is the age group. */
-                       title = g_strdup_printf (("%s is suitable for %s"), gs_app_get_name (self->app),
+                       title = g_strdup_printf (_("%s is suitable for %s"), gs_app_get_name (self->app),
                                                 gtk_label_get_text (self->age));
        }
 
diff --git a/src/gs-hardware-support-context-dialog.c b/src/gs-hardware-support-context-dialog.c
index d472b5e2f..a017bd351 100644
--- a/src/gs-hardware-support-context-dialog.c
+++ b/src/gs-hardware-support-context-dialog.c
@@ -693,7 +693,7 @@ update_relations_list (GsHardwareSupportContextDialog *self)
                icon_name = "desktop-symbolic";
                /* Translators: It’s unknown whether this app is supported on
                 * the current hardware. The placeholder is the app name. */
-               title = g_strdup_printf (("%s probably works on this device"), gs_app_get_name (self->app));
+               title = g_strdup_printf (_("%s probably works on this device"), gs_app_get_name (self->app));
                css_class = "grey";
                break;
        case GS_CONTEXT_DIALOG_ROW_IMPORTANCE_UNIMPORTANT:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]