[gnome-software] gs-content-rating: Update categories for ESRA rating system



commit 689268d72e1696ef84583c6fd9d5d4cfe1697968
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Jan 8 14:05:08 2019 +0000

    gs-content-rating: Update categories for ESRA rating system
    
    It seems that, at some point in the last 3 years, ESRA has changed their
    set of ratings categories from
       +3, +7, +12, +18, +25
    to
       +3, +7, +12, +15, +18
    
    Update our list to match.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 src/gs-content-rating.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-content-rating.c b/src/gs-content-rating.c
index c7741dd0..f140977c 100644
--- a/src/gs-content-rating.c
+++ b/src/gs-content-rating.c
@@ -450,11 +450,12 @@ gs_utils_content_rating_age_to_str (GsContentRatingSystem system, guint age)
                        return "6";
                return "0";
        }
+       /* Reference: http://www.esra.org.ir/ */
        if (system == GS_CONTENT_RATING_SYSTEM_ESRA) {
-               if (age >= 25)
-                       return "+25";
                if (age >= 18)
                        return "+18";
+               if (age >= 15)
+                       return "+15";
                if (age >= 12)
                        return "+12";
                if (age >= 7)


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