Fix for Yoruba
This commit is contained in:
@@ -38,6 +38,7 @@ namespace Swarmops.Frontend.Pages.v5.User
|
||||
nonStandardFlagNames["ar"] = "Arabic"; // Arabic doesn't have a country flag per se
|
||||
nonStandardFlagNames["fil"] = "ph"; // Philippines / Filipino
|
||||
nonStandardFlagNames["el"] = "gr"; // Greece / Ελληνικά
|
||||
nonStandardFlagNames["yo"] = "ng"; // Nigeria / Yoruba
|
||||
nonStandardFlagNames["zh"] = "ch"; // China / Chinese
|
||||
|
||||
|
||||
@@ -57,6 +58,13 @@ namespace Swarmops.Frontend.Pages.v5.User
|
||||
// Do not display country, just the language name
|
||||
newLanguage.DisplayName = newLanguage.DisplayName.Split (' ')[0];
|
||||
|
||||
string cultureFirstPart = cultureId.Split('-')[0];
|
||||
|
||||
if (nonStandardFlagNames.ContainsKey(cultureFirstPart)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if (cultureId.StartsWith("en"))
|
||||
{
|
||||
newLanguage.IconUrl = "/Images/Flags/uk-64px.png";
|
||||
|
||||
Reference in New Issue
Block a user