Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Traditional Chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
ProJend committed Jun 20, 2020
1 parent 5be80fe commit eefef9d
Show file tree
Hide file tree
Showing 12 changed files with 670 additions and 1,657 deletions.
52 changes: 35 additions & 17 deletions PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
using PixivFSUWP.Data;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.ApplicationModel.Core;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.System;
using Windows.UI;
using Windows.UI.Popups;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using static PixivFSUWP.Data.OverAll;

// https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x804 上介绍了“空白页”项模板
Expand Down Expand Up @@ -260,8 +249,37 @@ private void NavControl_BackRequested(NavigationView sender, NavigationViewBackR

private async void btnReport_Click(object sender, RoutedEventArgs e)
{
//在新窗口中打开发送反馈的窗口
await ShowNewWindow(typeof(ReportIssuePage), null);
////在新窗口中打开发送反馈的窗口
//await ShowNewWindow(typeof(ReportIssuePage), null);
var reportIssue = new ContentDialog()
{
Content = new ReportIssuePage(),
FullSizeDesired = false,

Title = GetResourceString("ReportIssueTitlePlain"),
PrimaryButtonText = GetResourceString("PrimayButtonPlain"),
SecondaryButtonText = GetResourceString("SecondButtonPlain"),
CloseButtonText = GetResourceString("CancelButtonPlain"),

PrimaryButtonStyle = (Style)this.Resources["AccentButtonStyle"],
SecondaryButtonStyle = (Style)this.Resources["ButtonRevealStyle"],
CloseButtonStyle = (Style)this.Resources["ButtonRevealStyle"],
};
var a = await reportIssue.ShowAsync();
if (a == ContentDialogResult.Primary)
{
await Launcher.LaunchUriAsync(new
Uri(@"https://github.com/tobiichiamane/pixivfs-uwp/issues/new/choose"));
}
else if (a == ContentDialogResult.Secondary)
{
await Launcher.LaunchUriAsync(new
Uri(@"mailto:tobiichiamane@outlook.jp"));
}
else
{

}
}

/// <summary>
Expand All @@ -270,16 +288,16 @@ private async void btnReport_Click(object sender, RoutedEventArgs e)
private async void btnExperimentalWarning_Click(object sender, RoutedEventArgs e)
{
MessageDialog warningDialog = new MessageDialog(GetResourceString("ExperimentalWarningPlain"));
warningDialog.Commands.Add(new UICommand("Yes", async (_) =>
warningDialog.Commands.Add(new UICommand(GetResourceString("YesButtonPlain"), async (_) =>
{
//关闭直连
Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
localSettings.Values["directConnection"] = false;
//通知重启应用生效
MessageDialog restartDialog = new MessageDialog("请重启本程序来应用更改。\nPlease restart this app to apply the changes.");
MessageDialog restartDialog = new MessageDialog(GetResourceString("RestartApplyColorTheme"));
await restartDialog.ShowAsync();
}));
warningDialog.Commands.Add(new UICommand("No"));
warningDialog.Commands.Add(new UICommand(GetResourceString("NoButtonPlain")));
await warningDialog.ShowAsync();
}
}
Expand Down
79 changes: 77 additions & 2 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,84 @@ Do you want to disable them?</target>
<target state="new">Light</target>
<note from="MultilingualBuild" annotates="source" priority="2">ComboBoxItem</note>
</trans-unit>
<trans-unit id="ContributorsReadingErrorPlain" translate="yes" xml:space="preserve">
<source>Error : Failed to load contributors.</source>
<target state="new">Error : Failed to load contributors.</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="RestartApplyColorTheme" translate="yes" xml:space="preserve">
<source>Restart the application to take effect</source>
<target state="new">Restart the application to take effect</target>
<source>Please restart the application to take effect.</source>
<target state="new">Please restart the application to take effect.</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="ReleasedID" translate="yes" xml:space="preserve">
<source>ID : </source>
<target state="new">ID : </target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="ReleasedTime" translate="yes" xml:space="preserve">
<source>TIme : </source>
<target state="new">TIme : </target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="ReleasedVersion" translate="yes" xml:space="preserve">
<source>Version : </source>
<target state="new">Version : </target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="Info.Text" translate="yes" xml:space="preserve">
<source>Don't worry. The information you just copied does not contain any private data.</source>
<target state="new">Don't worry. The information you just copied does not contain any private data.</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
<trans-unit id="Report.Text" translate="yes" xml:space="preserve">
<source>You are going to report an issue. We've collected some details.</source>
<target state="new">You are going to report an issue. We've collected some details.</target>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock</note>
</trans-unit>
<trans-unit id="ReportIssueTitlePlain" translate="yes" xml:space="preserve">
<source>Report An Issue</source>
<target state="new">Report An Issue</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="Copy.Content" translate="yes" xml:space="preserve">
<source>Copy All</source>
<target state="new">Copy All</target>
<note from="MultilingualBuild" annotates="source" priority="2">HyperlinkButton</note>
</trans-unit>
<trans-unit id="NoButtonPlain" translate="yes" xml:space="preserve">
<source>Not Yet</source>
<target state="new">Not Yet</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="YesButtonPlain" translate="yes" xml:space="preserve">
<source>Sure</source>
<target state="new">Sure</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="CancelButtonPlain" translate="yes" xml:space="preserve">
<source>Cancle</source>
<target state="new">Cancle</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="PrimayButtonPlain" translate="yes" xml:space="preserve">
<source>GitHub</source>
<target state="new">GitHub</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="SecondButtonPlain" translate="yes" xml:space="preserve">
<source>Email</source>
<target state="new">Email</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="CopiedInfoPlain" translate="yes" xml:space="preserve">
<source>Valuable information has been copied to clipboard.</source>
<target state="new">Valuable information has been copied to clipboard.</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="CopiedPlain" translate="yes" xml:space="preserve">
<source>Copied</source>
<target state="new">Copied</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
</group>
Expand Down

0 comments on commit eefef9d

Please sign in to comment.