[gnome-software: 1/2] gs-age-rating-context-dialog: Add translatable string context for ‘All’




commit 160b17f1db5d829a2bc27239f728c6d364319481
Author: Philip Withnall <pwithnall endlessos org>
Date:   Mon May 30 11:40:30 2022 +0100

    gs-age-rating-context-dialog: Add translatable string context for ‘All’
    
    The same string is used in two different contexts and needs context to
    allow correct translations.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Fixes: #1780

 lib/gs-category.c                  | 2 +-
 src/gs-age-rating-context-dialog.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/gs-category.c b/lib/gs-category.c
index b311c4941..77f288c58 100644
--- a/lib/gs-category.c
+++ b/lib/gs-category.c
@@ -211,7 +211,7 @@ gs_category_get_name (GsCategory *category)
        if (g_strcmp0 (category_id, "all") == 0) {
                /* TRANSLATORS: this is a subcategory matching all the
                 * different apps in the parent category, e.g. "Games" */
-               return _("All");
+               return C_("Category", "All");
        }
        if (g_strcmp0 (category_id, "featured") == 0) {
                /* TRANSLATORS: this is a subcategory of featured apps */
diff --git a/src/gs-age-rating-context-dialog.c b/src/gs-age-rating-context-dialog.c
index 52a617e7d..4ecf9c5dc 100644
--- a/src/gs-age-rating-context-dialog.c
+++ b/src/gs-age-rating-context-dialog.c
@@ -933,7 +933,7 @@ gs_age_rating_context_dialog_update_lozenge (GsApp     *app,
        if (content_rating != NULL && age_text == NULL && age == 0)
                /* Translators: The app is considered suitable to be run by all ages of people.
                 * This is displayed in a context tile, so the string should be short. */
-               age_text = g_strdup (_("All"));
+               age_text = g_strdup (C_("Age rating", "All"));
 
        /* We currently only support OARS-1.0 and OARS-1.1 */
        if (age_text == NULL ||


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