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

Commit

Permalink
Traditional Chinese v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ProJend committed Jun 21, 2020
1 parent eefef9d commit 22b1c6e
Show file tree
Hide file tree
Showing 11 changed files with 1,858 additions and 476 deletions.
42 changes: 6 additions & 36 deletions PixivFSUWP/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Windows.System;
using Windows.UI;
using Windows.UI.Popups;
using Windows.UI.ViewManagement;
Expand Down Expand Up @@ -249,55 +248,26 @@ private void NavControl_BackRequested(NavigationView sender, NavigationViewBackR

private async void btnReport_Click(object sender, RoutedEventArgs e)
{
////在新窗口中打开发送反馈的窗口
//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
{

}
//在新窗口中打开发送反馈的窗口
await ShowNewWindow(typeof(ReportIssuePage), null);
}

/// <summary>
/// 实验性功能警告。可以用来关闭实验性功能。
/// </summary>
private async void btnExperimentalWarning_Click(object sender, RoutedEventArgs e)
{
MessageDialog warningDialog = new MessageDialog(GetResourceString("ExperimentalWarningPlain"));
warningDialog.Commands.Add(new UICommand(GetResourceString("YesButtonPlain"), async (_) =>
var warningDialog = new MessageDialog(GetResourceString("ExperimentalWarningPlain"));
warningDialog.Commands.Add(new UICommand("Sure", async (_) =>
{
//关闭直连
Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
localSettings.Values["directConnection"] = false;
//通知重启应用生效
MessageDialog restartDialog = new MessageDialog(GetResourceString("RestartApplyColorTheme"));
var restartDialog = new MessageDialog("请重启本程序来应用更改。\nPlease restart this app to apply the changes.");
await restartDialog.ShowAsync();
}));
warningDialog.Commands.Add(new UICommand(GetResourceString("NoButtonPlain")));
warningDialog.Commands.Add(new UICommand("Not Yet"));
await warningDialog.ShowAsync();
}
}
Expand Down
27 changes: 14 additions & 13 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
</trans-unit>
<trans-unit id="CreatingTimelinePlain" translate="yes" xml:space="preserve">
<source>Generating Windows® Timeline™</source>
<target state="translated">Windows® Timeline™を作成しています</target>
<source>Generating Windows® Timeline™...</source>
<target state="needs-review-translation">Windows® Timeline™を作成しています</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText</note>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
</trans-unit>
<trans-unit id="CurrentUser.Text" translate="yes" xml:space="preserve">
<source>Current User</source>
Expand Down Expand Up @@ -752,47 +753,47 @@ Do you want to disable them?</target>
<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>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock (❌Unworkable)</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>
<note from="MultilingualBuild" annotates="source" priority="2">TextBlock (❌Unworkable)</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>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</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>
<note from="MultilingualBuild" annotates="source" priority="2">HyperlinkButton (❌Unworkable)</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>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</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>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</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>
<source>Cancel</source>
<target state="new">Cancel</target>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</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>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</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>
<note from="MultilingualBuild" annotates="source" priority="2">PlainText (❌Unworkable)</note>
</trans-unit>
<trans-unit id="CopiedInfoPlain" translate="yes" xml:space="preserve">
<source>Valuable information has been copied to clipboard.</source>
Expand Down
Loading

0 comments on commit 22b1c6e

Please sign in to comment.