Wrong rating systems selected due to selected them based in language instead of territory
Hello,
In my opinion there is a wrong assumption gs_utils_content_rating_system_from_locale function.
Look for example at: https://gitlab.gnome.org/GNOME/gnome-software/blob/master/src/gs-content-rating.c#L725
What is happening is that the rating is selected driven by user language instead of territory (territory I believe is the right thing)
Note also that in line 729 you are looking for a language with code MX that does not exist (it's a country code).
Problems due to the current logic:
1 - For example, if you are in MX-ES (Mexico locale) this is selected: https://gitlab.gnome.org/GNOME/gnome-software/blob/master/src/gs-content-rating.c#L680 instead of: https://gitlab.gnome.org/GNOME/gnome-software/blob/master/src/gs-content-rating.c#L729
As result for Mexico selecting GS_CONTENT_RATING_SYSTEM_PEGI
instead of GS_CONTENT_RATING_SYSTEM_ESRB
that is incorrect.
2 - If you have ca-ES (Catalan language in Spain), GS_CONTENT_RATING_SYSTEM_IARC
is selected instead of GS_CONTENT_RATING_SYSTEM_PEGI
since here you do not cover all the languages in Spain like Catalan, Galician, etc:
https://gitlab.gnome.org/GNOME/gnome-software/blob/master/src/gs-content-rating.c#L637
As result the wrong rating system is selected also. In my opinion, the selection of rating system should be driven by territory not language.
Hopefully this helps