From ab66b37ef14e84cfcecaa1b4ae6810368021376d Mon Sep 17 00:00:00 2001 From: AntonyCorbett Date: Tue, 25 Dec 2018 12:25:41 +0000 Subject: [PATCH] preparation for localisation --- OnlyV/Pages/EditTextPage.xaml | 8 +- OnlyV/Pages/PreviewPage.xaml | 10 +- OnlyV/Pages/ScripturesPage.xaml | 9 +- OnlyV/Pages/ScripturesPage.xaml.cs | 2 +- OnlyV/Pages/SettingsPage.xaml | 86 ++--- OnlyV/Pages/StartupPage.xaml | 3 +- OnlyV/Properties/Resources.Designer.cs | 297 ++++++++++++++++++ OnlyV/Properties/Resources.resx | 131 ++++++++ .../ViewModel/ShouldSaveViewModel.cs | 1 + 9 files changed, 493 insertions(+), 54 deletions(-) diff --git a/OnlyV/Pages/EditTextPage.xaml b/OnlyV/Pages/EditTextPage.xaml index 24631be1..b11ca208 100644 --- a/OnlyV/Pages/EditTextPage.xaml +++ b/OnlyV/Pages/EditTextPage.xaml @@ -67,7 +67,7 @@ Margin="10,0,0,0" IsEnabled="{Binding IsFocused}" Focusable="False" - ToolTip="Insert opening quotation mark" + ToolTip="{x:Static resx:Resources.INSERT_OPENING_QUOTE}" HorizontalAlignment="Left" Click="OpeningQuoteButtonClick"> + ToolTip="{x:Static resx:Resources.RESET_VERSE_TEXT}" + Content="{x:Static resx:Resources.RESET}" /> diff --git a/OnlyV/Pages/PreviewPage.xaml b/OnlyV/Pages/PreviewPage.xaml index 404320bb..ec70b7af 100644 --- a/OnlyV/Pages/PreviewPage.xaml +++ b/OnlyV/Pages/PreviewPage.xaml @@ -9,6 +9,7 @@ DataContext="{Binding Source={StaticResource Locator}, Path=Preview}" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" + xmlns:resx="clr-namespace:OnlyV.Properties" TextElement.Foreground="{DynamicResource MaterialDesignBody}" TextElement.FontWeight="Medium" TextElement.FontSize="14" @@ -70,7 +71,7 @@ - + d:DesignHeight="650" d:DesignWidth="900" Loaded="UserControlLoaded">