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

Commit

Permalink
收尾工作
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed May 30, 2019
1 parent 3ca388e commit 9338c17
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
3 changes: 2 additions & 1 deletion PixivFSUWP/SearchPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using PixivCS;
using Windows.UI.Xaml.Media.Imaging;
using PixivFSUWP.Interfaces;
using static PixivFSUWP.Data.OverAll;

// https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板

Expand Down Expand Up @@ -85,7 +86,7 @@ async Task loadContents()
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
((Frame.Parent as Grid)?.Parent as MainPage)?.SelectNavPlaceholder("搜索");
((Frame.Parent as Grid)?.Parent as MainPage)?.SelectNavPlaceholder(GetResourceString("SearchPagePlain"));
}

public async Task ShowSearch()
Expand Down
2 changes: 1 addition & 1 deletion PixivFSUWP/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void SetBackFlag(bool value)
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
((Frame.Parent as Grid)?.Parent as MainPage)?.SelectNavPlaceholder("设置");
((Frame.Parent as Grid)?.Parent as MainPage)?.SelectNavPlaceholder(GetResourceString("SettingsPagePlain"));
}

protected override void OnNavigatedFrom(NavigationEventArgs e)
Expand Down
44 changes: 44 additions & 0 deletions PixivFSUWP/Strings/zh/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
<value>所有时间</value>
<comment>ComboBoxItem</comment>
</data>
<data name="ArtistPlain" xml:space="preserve">
<value>画师</value>
<comment>PlainText</comment>
</data>
<data name="Birthday.Text" xml:space="preserve">
<value>生日</value>
<comment>TextBlock</comment>
Expand Down Expand Up @@ -209,6 +213,10 @@
<value>邮箱</value>
<comment>TextBlock</comment>
</data>
<data name="FemalePlain" xml:space="preserve">
<value>女</value>
<comment>PlainText</comment>
</data>
<data name="Following.Content" xml:space="preserve">
<value>关注</value>
<comment>NavigationViewItem</comment>
Expand Down Expand Up @@ -297,6 +305,10 @@
<value>*这将在您的所有Windows设备上退出登录</value>
<comment>TextBlock</comment>
</data>
<data name="MalePlain" xml:space="preserve">
<value>男</value>
<comment>PlainText</comment>
</data>
<data name="Monitor.Text" xml:space="preserve">
<value>显示器</value>
<comment>TextBlock</comment>
Expand Down Expand Up @@ -369,6 +381,10 @@
<value>已固定</value>
<comment>PlainText</comment>
</data>
<data name="PixivUserPlain" xml:space="preserve">
<value>Pixiv用户</value>
<comment>PlainText</comment>
</data>
<data name="PlayingUgoiraPlain" xml:space="preserve">
<value>正在播放动态剪影</value>
<comment>PlainText</comment>
Expand All @@ -381,6 +397,14 @@
<value>打印机</value>
<comment>TextBlock</comment>
</data>
<data name="PrivateOrNonePlain" xml:space="preserve">
<value>无/保密</value>
<comment>PlainText</comment>
</data>
<data name="PrivatePlain" xml:space="preserve">
<value>保密</value>
<comment>PlainText</comment>
</data>
<data name="QuickBookmark.Text" xml:space="preserve">
<value>快速收藏</value>
<comment>MenuFlyoutItem</comment>
Expand Down Expand Up @@ -469,6 +493,14 @@
<value>搜索选项</value>
<comment>TextBlock</comment>
</data>
<data name="SearchPagePlain" xml:space="preserve">
<value>搜索</value>
<comment>PlainText</comment>
</data>
<data name="SettingsPagePlain" xml:space="preserve">
<value>设置</value>
<comment>PlainText</comment>
</data>
<data name="Sex.Text" xml:space="preserve">
<value>性别</value>
<comment>TextBlock</comment>
Expand Down Expand Up @@ -509,10 +541,18 @@
<value>趋势标签</value>
<comment>TextBlock</comment>
</data>
<data name="UnknownPlain" xml:space="preserve">
<value>未知</value>
<comment>PlainText</comment>
</data>
<data name="Unpinned.Text" xml:space="preserve">
<value>未固定</value>
<comment>TextBlock</comment>
</data>
<data name="UserDetailPagePlain" xml:space="preserve">
<value>用户</value>
<comment>PlainText</comment>
</data>
<data name="UserID.Text" xml:space="preserve">
<value>用户标识</value>
<comment>TextBlock</comment>
Expand All @@ -521,6 +561,10 @@
<value>用户名</value>
<comment>TextBlock</comment>
</data>
<data name="UserShareTipPlain" xml:space="preserve">
<value>该用户页面的链接将被分享</value>
<comment>PlainText</comment>
</data>
<data name="VersionInfo.Text" xml:space="preserve">
<value>软件包版本信息</value>
<comment>TextBlock</comment>
Expand Down
2 changes: 1 addition & 1 deletion PixivFSUWP/UserDetailPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private void DataTransferManager_DataRequested(DataTransferManager sender, DataR

protected override void OnNavigatedTo(NavigationEventArgs e)
{
((Frame.Parent as Grid)?.Parent as MainPage)?.SelectNavPlaceholder("用户");
((Frame.Parent as Grid)?.Parent as MainPage)?.SelectNavPlaceholder(GetResourceString("UserDetailPagePlain"));
userid = (int)e.Parameter;
itemsSource = new UserIllustsCollection(userid.ToString());
itemsSource.CollectionChanged += ItemsSource_CollectionChanged;
Expand Down

0 comments on commit 9338c17

Please sign in to comment.