code_review: PR (#307)

* locale selection is sorted by name
* add en_US fallback for de_DE
This commit is contained in:
leo 2024-08-01 09:57:03 +08:00
parent c8c881c38a
commit 425b713d1e
No known key found for this signature in database
3 changed files with 6 additions and 1 deletions

View file

@ -9,10 +9,10 @@ namespace SourceGit.Models
public static readonly List<Locale> Supported = new List<Locale>() {
new Locale("English", "en_US"),
new Locale("Deutsch", "de_DE"),
new Locale("Português (Brasil)", "pt_BR"),
new Locale("简体中文", "zh_CN"),
new Locale("繁體中文", "zh_TW"),
new Locale("Deutsch", "de_DE")
};
public Locale(string name, string key)

View file

@ -1,4 +1,7 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://SourceGit/Resources/Locales/en_US.axaml"/>
</ResourceDictionary.MergedDictionaries>
<x:String x:Key="Text.About" xml:space="preserve">Info</x:String>
<x:String x:Key="Text.About.Menu" xml:space="preserve">Über SourceGit</x:String>
<x:String x:Key="Text.About.BuildWith" xml:space="preserve">• Erstellen mit </x:String>