Test if Filipino even works

This commit is contained in:
Rick Falkvinge
2017-12-31 14:39:20 +01:00
parent 6e95f1dad3
commit 1bf33e8022
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -31,7 +31,7 @@ namespace Swarmops.Frontend.Pages.v5.User
private void PopulateRepeater()
{
string[] availableCultures = {"ar-AE", "de-DE", "es-ES", "nl-NL", "pt-PT", "ru-RU", "tr-TR", "sv-SE" };
string[] availableCultures = {"ar-AE", "de-DE", "es-ES", "fil-Latn", "nl-NL", "pt-PT", "ru-RU", "tr-TR", "sv-SE" };
Array.Sort (availableCultures);
// sort by locale string, and that's ok, that happens to give the same result as sorting on country name
@@ -59,6 +59,11 @@ namespace Swarmops.Frontend.Pages.v5.User
newLanguage.IconUrl = "/Images/Flags/Arabic-64px.png";
// crowdin's generic culture is ar-SA but Arabic is not country specific
}
else if (cultureId.StartsWith("fil"))
{
// Filipino flag can't be deduced from the culture string
newLanguage.IconUrl = "/Images/Flags/ph-64px.png";
}
else
{
newLanguage.IconUrl = "/Images/Flags/" + cultureId.Substring(3, 2).ToLowerInvariant() + "-64px.png";
+2
View File
@@ -785,6 +785,8 @@
<Content Include="Images\Abstract\ajaxloader-medium.gif" />
<Content Include="Images\Abstract\easyui-elements-downarrow.gif" />
<Content Include="Images\Abstract\swarmops-progressbar-animation.gif" />
<Content Include="Images\Flags\ph-24px.png" />
<Content Include="Images\Flags\ph-64px.png" />
<Content Include="Images\Flags\tr-24px.png" />
<Content Include="Images\Flags\tr-64px.png" />
<Content Include="Images\Icons\iconshock-pdf-128px.png" />