diff --git a/src/MeoAsstGui/Helper/Localization.cs b/src/MeoAsstGui/Helper/Localization.cs index 7e369f3e88..f36f3d4db8 100644 --- a/src/MeoAsstGui/Helper/Localization.cs +++ b/src/MeoAsstGui/Helper/Localization.cs @@ -24,7 +24,8 @@ namespace MeoAsstGui { "zh-tw", "繁體中文" }, { "en-us", "English" }, { "ja-jp", "日本語" }, - { "ko-kr", "한국어 (help us!)" } + { "ko-kr", "한국어 (help us!)" }, + { "pallas", "呀,博士。你今天走起路来,怎么看着摇摇晃晃的?" } }; public static string DefaultLanguage @@ -52,9 +53,9 @@ namespace MeoAsstGui public static void Load() { - var cultureInfo = new CultureInfo(culture); - Thread.CurrentThread.CurrentUICulture = cultureInfo; - Thread.CurrentThread.CurrentCulture = cultureInfo; + //var cultureInfo = new CultureInfo(culture); + //Thread.CurrentThread.CurrentUICulture = cultureInfo; + //Thread.CurrentThread.CurrentCulture = cultureInfo; var dictionary = new ResourceDictionary { diff --git a/src/MeoAsstGui/MeoAsstGui.csproj b/src/MeoAsstGui/MeoAsstGui.csproj index 3649afef85..fb918b2e63 100644 --- a/src/MeoAsstGui/MeoAsstGui.csproj +++ b/src/MeoAsstGui/MeoAsstGui.csproj @@ -163,6 +163,10 @@ Designer MSBuild:Compile + + MSBuild:Compile + Designer + Designer MSBuild:Compile diff --git a/src/MeoAsstGui/Resources/Localizations/pallas.py b/src/MeoAsstGui/Resources/Localizations/pallas.py new file mode 100644 index 0000000000..7185ee0fb2 --- /dev/null +++ b/src/MeoAsstGui/Resources/Localizations/pallas.py @@ -0,0 +1,21 @@ +import re +import random + +f = open('pallas.xaml', encoding='utf8') +txt = f.read() +f.close() + + +def wine_and_dance(m): + rep = '' + for i in range(len(m.group(1)) + 1): + rep += random.choice(['💃', '🕺', + '🍷', '🍸', '🍺', '🍻', + '🍷', '🍸', '🍺', '🍻']) + return f'>{rep}' + + +pattern = re.compile('>(.*)') +out = pattern.sub(wine_and_dance, txt) + +print(out) diff --git a/src/MeoAsstGui/Resources/Localizations/pallas.xaml b/src/MeoAsstGui/Resources/Localizations/pallas.xaml new file mode 100644 index 0000000000..9b1e46e0ce --- /dev/null +++ b/src/MeoAsstGui/Resources/Localizations/pallas.xaml @@ -0,0 +1,342 @@ + + + 🍸🍷 + 🍸💃🍷 + 🍷🍺🍸 + 🍸🍺🍸 + 🍺🍷🍻 + 💃🍷🍷 + 🍺🕺💃 + 🍻🕺🍺 + 🍸🍸💃 + 🍸🍺🍻 + 🍷🍸🍸 + 🍸🍷🍺 + + 💃🍻 + + 🍻💃 + 🕺🍺 + 🍺🍺 + 🍺🍸 + 🍺🍻 + 🕺🍸 + 🍻🍸🍻 + + 🍻🍻🍸🍷 + 🍻🍺🍸💃 + 🍻🍺🍻🍺 + 🍸🍸🍷💃 + 🍸🍸🍻🍷 + 🍸🍻🍻🍻🍻 + 🍺🍻🍷🍷 + + 🍻🍸🕺 + 🍺🕺🍻 + 🍷🍺🍸💃 + 🍻💃🍺 + 🍷🍸🍺 + 🍸💃💃 + 🍻🍺🍺🍻 + 🍻🍷🍺 + + 🍸🍻🍷🍻💃 + + 🕺🍺🕺🕺🍺🍷🍻🍺 + 🍺🍻🍻🍷🍺🍸🕺🍺 + + 💃🍺 + 🕺🍺 + 🍷🍸🍷🍷🍸 + 💃🍸🍺🍷🍻🍺🍻🍸 + 🍸🕺🍸🍺🍸🍸🍷 + 🍷💃🍸🍸🍸🍺🍻 + 🕺🍺💃🍸🍷🍻 + + 🍷💃 + + 🍺💃🍷 + 💃💃🍺 + + 🍷🕺🕺🍻🍸🍻🍻🍷🍻🍸🍷🍻💃🍷🍸🍷🍷🍻🍺💃 + 🍻🍷🍸🍻🍺🍻🍺🍺🍺🍺🍸🍷🕺🍻🍻🕺🍷💃🍷💃🍻 + 🍻🍺🍻🍻🕺🍻🍺🍸🍸🍻🍸🍺🍻🍷🕺🍷🍻🍻🍷 + + 🍺🍸🍻💃 + + 🍻🍺🕺 + 🕺🍺 + 🍺🍸💃🕺🍻🍸💃🍻🕺💃🍷🍸🕺🍷 + 🕺🍺 + 🍷🍻 + 💃🍷 + + 🍷🍺🍸🕺 + 🍺🍺🍺🍺🍸💃 + 🍻🍻🕺🍻🍸🍻🍸🍻 + + 🍸🍺🍸🍺 + 🍷🕺🕺🍷 + 🍺🕺🕺💃🕺 + 🍻🍷🍸🍷🍺🍷🍺 + 🍻🍷🕺 + + 🍸🕺🍸🍻🍸🍸🍷🍷 + 🍸💃 + + 🍸🍷🍸🍸 + 🍷🍸🕺🍻 + 🍻🍺🕺 + 🍷🍷🍻🍷🍻💃 + 🍷🍸💃🍻🍻🕺🍻 + 🍺🍸💃 + 🍸🍸 + 🕺🍺💃 + + 🍷🍻 + 🍻🍷🍸🍷 + 🍺🍻🍺🍺 + 🍸🍸🍻🍸🍷🍺 + + 🍻🕺🍷🍻🕺🍸🍻🍻 + + 🍺🍷🕺 + 🍸🕺💃🍺🕺🕺🍻🍺 + 🍸🍺🕺🍻🍺🍸🍷 + + 🍷🍷🍷 + + 🍷🕺🍻🍷🕺 + 🍻💃🍻🍸🍷🍸 + 🍻🍸🍷🍺🍺🍸🍸 + 🍷🍺🍻🍺🍸🍺 + + 🕺💃🍸🍷🍸💃🍸 + 🍻🕺🍻 + 🍸🍷🍻 + + + + 🍺🍻💃 + + 🍸💃💃 + 🍸🍺🍻 + 🍺🍸🍺 + 🍸🍷 + 🍺🍸🍷 + 🍻🍺🍸🍻 + 🍺🍸🕺🍸 + 🍺🍸🍸 + + 🍻💃 + 🍸🍻 + 💃🍸 + + 💃🕺 + 🍻💃 + 🍸🍺🍸🍸 + 🍷🍻🕺🍷 + 💃💃🍸 + 🍺🍷🍸🍸🍷 + 💃🍷 + 🍷🍷 + + 🍻🍻🍻🍺🍸💃 + 🍺🍻 + + + 🕺🍺🍷 + 🍻🍷💃 + 🍺🍻💃 + 💃🍷🍺 + 🕺🕺🍸 + 🍷🍻🍷 + 🍺🍺 + + + 🕺🍷🍷 + 🍷💃 + 💃💃🕺🍻 + 🍺🍸🍺 + 🍻🍸🍻 + 🍸🍷🍷🍸 + + 🕺🍸🍻 + 🍺🍻🍺🍺 + 🍸🍻🍷 + 🍺💃🍷🍸 + 🍻🕺🕺 + 🕺🍷🍺🍻 + 🍷🍸🍷 + 💃🕺💃🍸 + + 🍷🍸🍺🍸🍷 + 🍻🕺💃🍻🍺 + 💃🍷🍷🍷🍺 + 🍻🍻🍻🍸🍺 + 🍸🍺🍻💃🍺 + 🍸🕺🍷🍸 + 🍸🕺🍻 + 🍻🍻🕺 + 💃🍷💃 + 🍸🍷🕺 + 💃🍸🍷🍷🍺🍻 + 🍺🍺🍸🍸🍺🍸 + + + + 🍸🕺🍻💃🕺 + 🍺🍸🍻 + 🍷🍻🍷🍺 + 💃🍺 + 🕺🍸🍻🍷 + 🍸🍸🍺 + 🍺🍷🕺 + 🍻🍷🍺🍻 + 🍷🍻🕺🍷 + 🍸🍻🍻🍸🍷🍺🍸🍸 + 🍷🍻 + 🍺💃🍺🍻🍻 + + + + + 💃🍸🍺 + 🕺💃💃🕺🍺💃🕺🍻🍷🍸🕺🕺🍺🍸🍻🍺🍻🕺🍷🍺🍸 + 🕺🍸🍸🍻 + 🍻🍺🍺🍻🍷🍷 + 🍺🍺🍸🍻🍻🍻 + 🍸🍻🕺🍻💃🍺 + 🍸🕺🍷🍷🍸🕺 + 🍻🍻🍻 + + + 💃🍸🍷🍸 + + + + + 🍻🍷🍻🍷🍻 + 🍺🕺🍸🍸💃 + 🍻🍺🍺 + 🍷🍺🍷🍷🍸🍷🍻💃🍻🍺🍻🍻 + 🍸🍸🕺 + 🕺🍷💃🍻💃🍺🍷🍸🕺🍷 + + 🕺🍷 + + 🍻🍸💃 + 🍻🍷🕺 + + + 🍻🍸🍷 + 🍺🕺🍸🕺🍻🍷🍻🍷🍷💃🍷💃🍺 + 💃🍺🍺🍺🍺💃💃🍻🍸💃🍻🍻🍻 + 🍷💃🍸🍷🍷🍺🍻🍻🍺🍻🍷🍸🍻🍻🍺🍺 + 💃🕺🍺🍺🕺🕺🍸🍻🍻🍺🍺🍷🕺🍷🍸🍻🍻🍺🍺🍷🍸 + 🕺🍺💃🍸🍻🍺🍺🕺🕺💃🍸🍷🍻🍸🍷🕺🍷🍺🍺🕺🍺🕺 + + 🍸🍸🍻🍷 + 🍻🍻🍸🍻🍺 + 🍷💃🍷🍷🍺 + 🍻🍻🍻🕺🕺 + 💃🍺🍺 + 🍺🍷🍸🕺🍺 + + + + + 🍸💃🍺🕺 + 🍻🕺 + 🍺🍺🍸🍸 + 🍺🍺🍸🕺🍺🍻💃🍻🍺🍸🍸🕺🍻🍷🍻🍺🍷🍻 + 🍷🍷🕺🍺🍻🍸🕺🍺🍷🍸💃🍻💃🍺🍷 + 🕺🍷🍷🍻🍺🍻🍻 + 🍻💃🍸🍷🍷 + 🍻🍸🍻🍺🍸🕺 + 🍺🍺🍷 + 🍷🕺🍺 + 🕺🍻💃 + 🍷🍻🍸 + 🍸🍸🕺 + 🍸🍺🍻 + 🍸🍸🍸 + 🍸🍸💃🍸🍺 + 🍻🍸🍻🍸🍸🍺🍸🍸 + 🍸🍺💃 + 🍷🍻 + 🍷💃🍺🍷 + 🍻🍺🍺🍺💃 + 🍻🍸🍻🍷🍷 + 🕺🍷🍺 + 🍷 + 🕺🍸🍻🍷 + 🍻🍻💃 + 🍷🍷🕺🕺 + 🍻💃🍻 + 🍷🍺🍸 + 🍺🍸🍷 + 🍷🍺🕺 + 🕺🕺 + 🕺🍻💃💃 + 🍺💃🍷 + 🍷🍸🍸 + 🕺🍷🍺🍷 + 🍷🍻🍺🍺🍻 + 🍻🍷🍻🍻🍷 + 🍻🍻🍷🍻 + 🍸🍷🍷🍺🍻 + 🍸🍸🍷🍻 + 🍻🍸🍸💃 + 🕺🍺🍸🍻 + 🍸🕺🍺🍻 + 🍻 + 💃🍺🍻 + 🍷💃🍷 + 🍻🍻🍺 + 🍻🍷🍸🍻 + 🍷🍺🍺 + 🍻🍻💃🍻🍺🍻💃 + 🍸🍷🕺🕺🍷 + 🍷🍸 + 🍻🕺🍺🍺 + 🍸🍺🍺🍸 + 🍻🍷🍸🍺 + 🍷💃🕺 + 🍸🕺🍷 + 💃🍷🍺 + 🕺🍺🍺🍻🍺🍺🍷🍷🍻🍷🍸🍸🍺🍸 + 🍺🍻🍺 + 🕺🍸🍻 + 🍸🍺🍺💃💃 + 🍷🍷🍻🍷🍷🍷🍸🍺 + + + + 🍺🍺 + + + + 🍸🍷🍺🍺 + 💃🍺💃🍻💃 + 🕺🍷🍸🍺🍷🕺🍺 + 🍻🍺🍻🍷 + 🍷💃 + 🍺🍻 + 🍷💃🕺 + 🍺💃🕺 + + + + 🕺🍸🍺🍻🍸🍺💃 + 🍸🍷🍸🍻🍻 + 🍸🍺💃🍸🕺🍺 + 🍺🍸🍷🍺💃 + 🍸🍸🍻🍸🍻 + 🍷🍺🍷🍷💃 + 🍺🍺🍸🍻🍷 + 🕺💃🍺🍸🍻 + 🍸🍻💃🍸🍻💃🍻🍸🍻🕺🍺💃🍺🍷💃🕺🍸 + + \ No newline at end of file diff --git a/src/MeoAsstGui/UserControl/GUISettingsUserControl.xaml b/src/MeoAsstGui/UserControl/GUISettingsUserControl.xaml index bb5c2a434e..7e9b11c3f0 100644 --- a/src/MeoAsstGui/UserControl/GUISettingsUserControl.xaml +++ b/src/MeoAsstGui/UserControl/GUISettingsUserControl.xaml @@ -28,13 +28,13 @@ - + Width="300" /> \ No newline at end of file