From 92e27198cbd990b385baa8d4b0d6326cccc49826 Mon Sep 17 00:00:00 2001 From: Thomas May Date: Fri, 22 Nov 2024 01:52:27 +0000 Subject: [PATCH] Begin localisation work + Twitter mode --- UniSky/App.xaml | 8 +- UniSky/App.xaml.cs | 3 + UniSky/DataTemplates/FeedTemplates.xaml | 8 +- UniSky/Helpers/Composition/BirdAnimation.cs | 8 +- UniSky/Pages/ProfilePage.xaml | 6 +- UniSky/Resources/en-GB/Resources.resw | 153 ++++++++++++++++++ .../en-GB/custom-twitter/Resources.resw | 135 ++++++++++++++++ UniSky/UniSky.csproj | 2 + UniSky/ViewModels/Post/PostViewModel.cs | 1 - .../Profile/ProfileFeedViewModel.cs | 9 +- 10 files changed, 321 insertions(+), 12 deletions(-) create mode 100644 UniSky/Resources/en-GB/Resources.resw create mode 100644 UniSky/Resources/en-GB/custom-twitter/Resources.resw diff --git a/UniSky/App.xaml b/UniSky/App.xaml index ead1411..1967dbd 100644 --- a/UniSky/App.xaml +++ b/UniSky/App.xaml @@ -30,7 +30,13 @@ M13.873 3.77C21.21 9.243 29.103 20.342 32 26.3v15.732c0-.335-.13.043-.41.858-1.512 4.414-7.418 21.642-20.923 7.87-7.111-7.252-3.819-14.503 9.125-16.692-7.405 1.252-15.73-.817-18.014-8.93C1.12 22.804 0 8.431 0 6.488 0-3.237 8.579-.18 13.873 3.77ZM50.127 3.77C42.79 9.243 34.897 20.342 32 26.3v15.732c0-.335.13.043.41.858 1.512 4.414 7.418 21.642 20.923 7.87 7.111-7.252 3.819-14.503-9.125-16.692 7.405 1.252 15.73-.817 18.014-8.93C62.88 22.804 64 8.431 64 6.488 64-3.237 55.422-.18 50.127 3.77Z - + 64 + 57 + + + 0,1,0,0 0,0,0,0 diff --git a/UniSky/App.xaml.cs b/UniSky/App.xaml.cs index b01404d..b3a3032 100644 --- a/UniSky/App.xaml.cs +++ b/UniSky/App.xaml.cs @@ -10,6 +10,7 @@ using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.ApplicationModel.Core; +using Windows.ApplicationModel.Resources.Core; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.Storage; @@ -38,6 +39,8 @@ public App() this.Suspending += OnSuspending; this.ConfigureServices(); + + ResourceContext.SetGlobalQualifierValue("Custom", "Twitter", ResourceQualifierPersistence.None); } private void ConfigureServices() diff --git a/UniSky/DataTemplates/FeedTemplates.xaml b/UniSky/DataTemplates/FeedTemplates.xaml index 66e2b37..e41190d 100644 --- a/UniSky/DataTemplates/FeedTemplates.xaml +++ b/UniSky/DataTemplates/FeedTemplates.xaml @@ -217,7 +217,7 @@ Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}" FontSize="12" Margin="8,0"> - Reposted by + @@ -238,7 +238,7 @@ Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}" FontSize="12" Margin="8,0"> - Replying to + @@ -305,6 +305,7 @@