[gnome-software: 1/2] gs-*-context-dialog: Use sentence case for dialogue titles




commit a44376f8e421b806666cc20b5b439f938a281c62
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Aug 4 11:33:46 2021 +0100

    gs-*-context-dialog: Use sentence case for dialogue titles
    
    See discussion on #1345 and
    https://gitlab.gnome.org/Teams/Design/hig-www/-/issues/89.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1345

 src/gs-age-rating-context-dialog.c       | 16 ++++++++--------
 src/gs-hardware-support-context-dialog.c |  8 ++++----
 src/gs-safety-context-dialog.c           |  6 +++---
 3 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/gs-age-rating-context-dialog.c b/src/gs-age-rating-context-dialog.c
index cfbfa11de..2eccd1d39 100644
--- a/src/gs-age-rating-context-dialog.c
+++ b/src/gs-age-rating-context-dialog.c
@@ -670,7 +670,7 @@ update_attributes_list (GsAgeRatingContextDialog *self)
        if (is_unknown) {
                /* Translators: It’s unknown what age rating this app has. The
                 * placeholder is the app name. */
-               title = g_strdup_printf (("%s Has an Unknown Age Rating"), gs_app_get_name (self->app));
+               title = g_strdup_printf (("%s has an unknown age rating"), gs_app_get_name (self->app));
        } else {
                guint age;
 
@@ -680,32 +680,32 @@ 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. */
-                       title = g_strdup_printf (("%s is Suitable for Children"), gs_app_get_name 
(self->app));
+                       title = g_strdup_printf (("%s is suitable for children"), gs_app_get_name 
(self->app));
                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 b2b050f83..e8ac456fd 100644
--- a/src/gs-hardware-support-context-dialog.c
+++ b/src/gs-hardware-support-context-dialog.c
@@ -690,28 +690,28 @@ 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:
                icon_name = "test-pass-symbolic";
                /* Translators: The app will work on the current hardware.
                 * The placeholder is the app name. */
-               title = g_strdup_printf (_("%s Works on This Device"), gs_app_get_name (self->app));
+               title = g_strdup_printf (_("%s works on this device"), gs_app_get_name (self->app));
                css_class = "green";
                break;
        case GS_CONTEXT_DIALOG_ROW_IMPORTANCE_WARNING:
                icon_name = "dialog-question-symbolic";
                /* Translators: The app may not work fully on the current hardware.
                 * The placeholder is the app name. */
-               title = g_strdup_printf (_("%s Will Not Work Properly on This Device"), gs_app_get_name 
(self->app));
+               title = g_strdup_printf (_("%s will not work properly on this device"), gs_app_get_name 
(self->app));
                css_class = "yellow";
                break;
        case GS_CONTEXT_DIALOG_ROW_IMPORTANCE_IMPORTANT:
                icon_name = "dialog-warning-symbolic";
                /* Translators: The app will not work properly on the current hardware.
                 * The placeholder is the app name. */
-               title = g_strdup_printf (_("%s Will Not Work on This Device"), gs_app_get_name (self->app));
+               title = g_strdup_printf (_("%s will not work on this device"), gs_app_get_name (self->app));
                css_class = "red";
                break;
        default:
diff --git a/src/gs-safety-context-dialog.c b/src/gs-safety-context-dialog.c
index 7ad7f983d..850d742fa 100644
--- a/src/gs-safety-context-dialog.c
+++ b/src/gs-safety-context-dialog.c
@@ -328,21 +328,21 @@ update_permissions_list (GsSafetyContextDialog *self)
                icon_name = "safety-symbolic";
                /* Translators: The app is considered safe to install and run.
                 * The placeholder is the app name. */
-               title = g_strdup_printf (_("%s is Safe"), gs_app_get_name (self->app));
+               title = g_strdup_printf (_("%s is safe"), gs_app_get_name (self->app));
                css_class = "green";
                break;
        case GS_CONTEXT_DIALOG_ROW_IMPORTANCE_WARNING:
                icon_name = "dialog-question-symbolic";
                /* Translators: The app is considered potentially unsafe to install and run.
                 * The placeholder is the app name. */
-               title = g_strdup_printf (_("%s is Potentially Unsafe"), gs_app_get_name (self->app));
+               title = g_strdup_printf (_("%s is potentially unsafe"), gs_app_get_name (self->app));
                css_class = "yellow";
                break;
        case GS_CONTEXT_DIALOG_ROW_IMPORTANCE_IMPORTANT:
                icon_name = "dialog-warning-symbolic";
                /* Translators: The app is considered unsafe to install and run.
                 * The placeholder is the app name. */
-               title = g_strdup_printf (_("%s is Unsafe"), gs_app_get_name (self->app));
+               title = g_strdup_printf (_("%s is unsafe"), gs_app_get_name (self->app));
                css_class = "red";
                break;
        default:


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