diff --git a/GetStoreApp/GetStoreApp.csproj b/GetStoreApp/GetStoreApp.csproj
index ccc06c4bb..3d81c1fdb 100644
--- a/GetStoreApp/GetStoreApp.csproj
+++ b/GetStoreApp/GetStoreApp.csproj
@@ -19,6 +19,7 @@
true
latest
Size
+ False
WinExe
x86;x64;ARM64
FileSystem
@@ -156,10 +157,10 @@
-
+
diff --git a/GetStoreApp/Services/Controls/Settings/LanguageService.cs b/GetStoreApp/Services/Controls/Settings/LanguageService.cs
index ff19282a7..42088b1f8 100644
--- a/GetStoreApp/Services/Controls/Settings/LanguageService.cs
+++ b/GetStoreApp/Services/Controls/Settings/LanguageService.cs
@@ -90,7 +90,6 @@ private static DictionaryEntry GetLanguage()
{
SetLanguage(currentLanguage);
FlowDirection = currentCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
- System.IO.File.AppendAllText("D:\\01.txt", currentCulture.TextInfo.IsRightToLeft.ToString() + Environment.NewLine);
return currentLanguage;
}
else
@@ -102,7 +101,6 @@ private static DictionaryEntry GetLanguage()
{
SetLanguage(currentParentLanguage);
FlowDirection = currentParentCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
- System.IO.File.AppendAllText("D:\\01.txt", currentCulture.TextInfo.IsRightToLeft.ToString() + Environment.NewLine);
return currentParentLanguage;
}
@@ -111,7 +109,6 @@ private static DictionaryEntry GetLanguage()
{
SetLanguage(DefaultAppLanguage);
FlowDirection = CultureInfo.GetCultureInfo(DefaultAppLanguage.Value.ToString()).TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
- System.IO.File.AppendAllText("D:\\01.txt", currentCulture.TextInfo.IsRightToLeft.ToString() + Environment.NewLine);
return DefaultAppLanguage;
}
}
@@ -120,7 +117,7 @@ private static DictionaryEntry GetLanguage()
{
CultureInfo savedCultureInfo = CultureInfo.GetCultureInfo(language.ToString());
FlowDirection = savedCultureInfo.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
- return LanguageList.Find(item => item.Value.ToString().Contains(language.ToString(), StringComparison.OrdinalIgnoreCase));
+ return LanguageList.Find(item => language.ToString().Contains(item.Value.ToString(), StringComparison.OrdinalIgnoreCase));
}
}
diff --git a/GetStoreApp/Strings/zh-hans-cn/About.resw b/GetStoreApp/Strings/zh-hans/About.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/About.resw
rename to GetStoreApp/Strings/zh-hans/About.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/AppManager.resw b/GetStoreApp/Strings/zh-hans/AppManager.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/AppManager.resw
rename to GetStoreApp/Strings/zh-hans/AppManager.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/AppUpdate.resw b/GetStoreApp/Strings/zh-hans/AppUpdate.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/AppUpdate.resw
rename to GetStoreApp/Strings/zh-hans/AppUpdate.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Console.resw b/GetStoreApp/Strings/zh-hans/Console.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Console.resw
rename to GetStoreApp/Strings/zh-hans/Console.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Dialog.resw b/GetStoreApp/Strings/zh-hans/Dialog.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Dialog.resw
rename to GetStoreApp/Strings/zh-hans/Dialog.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Download.resw b/GetStoreApp/Strings/zh-hans/Download.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Download.resw
rename to GetStoreApp/Strings/zh-hans/Download.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Notification.resw b/GetStoreApp/Strings/zh-hans/Notification.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Notification.resw
rename to GetStoreApp/Strings/zh-hans/Notification.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Resources.resw b/GetStoreApp/Strings/zh-hans/Resources.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Resources.resw
rename to GetStoreApp/Strings/zh-hans/Resources.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Settings.resw b/GetStoreApp/Strings/zh-hans/Settings.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Settings.resw
rename to GetStoreApp/Strings/zh-hans/Settings.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Store.resw b/GetStoreApp/Strings/zh-hans/Store.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Store.resw
rename to GetStoreApp/Strings/zh-hans/Store.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/WebView.resw b/GetStoreApp/Strings/zh-hans/WebView.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/WebView.resw
rename to GetStoreApp/Strings/zh-hans/WebView.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/WinGet.resw b/GetStoreApp/Strings/zh-hans/WinGet.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/WinGet.resw
rename to GetStoreApp/Strings/zh-hans/WinGet.resw
diff --git a/GetStoreApp/Strings/zh-hans-cn/Window.resw b/GetStoreApp/Strings/zh-hans/Window.resw
similarity index 100%
rename from GetStoreApp/Strings/zh-hans-cn/Window.resw
rename to GetStoreApp/Strings/zh-hans/Window.resw
diff --git a/GetStoreApp/Views/Pages/SettingsPage.xaml b/GetStoreApp/Views/Pages/SettingsPage.xaml
index ab1a59d62..4364f291d 100644
--- a/GetStoreApp/Views/Pages/SettingsPage.xaml
+++ b/GetStoreApp/Views/Pages/SettingsPage.xaml
@@ -701,7 +701,7 @@
Grid.Column="0"
Margin="0,0,12,0"
FontSize="16"
- Glyph="" />
+ Glyph="" />
private void OnOpened(object sender, object args)
{
+ foreach (LanguageModel languageItem in LanguageCollection)
+ {
+ if (languageItem.IsChecked)
+ {
+ LanguageListView.ScrollIntoView(languageItem);
+ break;
+ }
+ }
}
///
diff --git a/GetStoreAppPackage/GetStoreAppPackage.wapproj b/GetStoreAppPackage/GetStoreAppPackage.wapproj
index e15fb9438..085dd96da 100644
--- a/GetStoreAppPackage/GetStoreAppPackage.wapproj
+++ b/GetStoreAppPackage/GetStoreAppPackage.wapproj
@@ -39,7 +39,7 @@
False
DXFeatureLevel
x86|x64|arm64
- Language=EN-US;ZH-HANS-CN
+ Language=AR;EN-US;ZH-HANS
True
SHA256
http://timestamp.digicert.com
diff --git a/GetStoreAppPackage/Package.appxmanifest b/GetStoreAppPackage/Package.appxmanifest
index 4cf0c8fc2..c1b025349 100644
--- a/GetStoreAppPackage/Package.appxmanifest
+++ b/GetStoreAppPackage/Package.appxmanifest
@@ -27,7 +27,7 @@
-
+