From edf053c18608b13ed25f2e4f6b1d1a60ae68f7e2 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Wed, 16 Dec 2015 16:45:30 +0100 Subject: [PATCH] Added complete language support. Added Japanese --- NavCityBreda/App.xaml.cs | 1 + NavCityBreda/Helpers/Settings.cs | 2 + NavCityBreda/NavCityBreda.csproj | 2 + NavCityBreda/Strings/ja-JP/Resources.resw | 147 ++++++++++++++++++++++ NavCityBreda/Views/SettingsView.xaml | 30 +++-- NavCityBreda/Views/SettingsView.xaml.cs | 56 +++++++-- 6 files changed, 218 insertions(+), 20 deletions(-) create mode 100644 NavCityBreda/Strings/ja-JP/Resources.resw diff --git a/NavCityBreda/App.xaml.cs b/NavCityBreda/App.xaml.cs index 71f8d32..ba25788 100644 --- a/NavCityBreda/App.xaml.cs +++ b/NavCityBreda/App.xaml.cs @@ -2,6 +2,7 @@ using NavCityBreda.Model; using System; using System.Collections.Generic; +using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; diff --git a/NavCityBreda/Helpers/Settings.cs b/NavCityBreda/Helpers/Settings.cs index 2bfd420..40707fa 100644 --- a/NavCityBreda/Helpers/Settings.cs +++ b/NavCityBreda/Helpers/Settings.cs @@ -23,5 +23,7 @@ namespace NavCityBreda.Helpers await Task.Delay(TimeSpan.FromMilliseconds(100)); App.rootFrame.Navigate(typeof(MainPage)); } + + public static string CurrentLanguage { get { return ApplicationLanguages.PrimaryLanguageOverride; } } } } diff --git a/NavCityBreda/NavCityBreda.csproj b/NavCityBreda/NavCityBreda.csproj index ef46416..99abbf5 100644 --- a/NavCityBreda/NavCityBreda.csproj +++ b/NavCityBreda/NavCityBreda.csproj @@ -90,6 +90,7 @@ + @@ -106,6 +107,7 @@ MainPage.xaml + diff --git a/NavCityBreda/Strings/ja-JP/Resources.resw b/NavCityBreda/Strings/ja-JP/Resources.resw new file mode 100644 index 0000000..3d80520 --- /dev/null +++ b/NavCityBreda/Strings/ja-JP/Resources.resw @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ヘルプ + + + 設定 + + + ようこそ + + + ヘルプ + + + 地図 + + + ルート + + + ルート 詳しく + + + 設定 + + + Waypoint + + \ No newline at end of file diff --git a/NavCityBreda/Views/SettingsView.xaml b/NavCityBreda/Views/SettingsView.xaml index fa804fd..96f0f92 100644 --- a/NavCityBreda/Views/SettingsView.xaml +++ b/NavCityBreda/Views/SettingsView.xaml @@ -8,17 +8,23 @@ mc:Ignorable="d"> - - - - - - - - - -