Archived
1
0

Fullscreen and miniview mode fixed; Playlist tab on video page

This commit is contained in:
Michael Gordeev
2018-08-24 00:07:05 +03:00
parent ed29af9463
commit 4639b9c77b
6 changed files with 145 additions and 47 deletions
+9
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
@@ -47,6 +48,14 @@ namespace FoxTube
} catch { }
try
{
if (settings.Values["language"] == null)
{
List<string> cultures = new List<string>() { "ua", "ru", "by", "kz", "kg", "md", "lv", "ee" };
if (cultures.Contains(CultureInfo.InstalledUICulture.ThreeLetterISOLanguageName))
settings.Values.Add("language", "ru-RU");
else
settings.Values.Add("language", "en-US");
}
ApplicationLanguages.PrimaryLanguageOverride = (string)settings.Values["language"];
}
catch { }