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 Sep 29, 2019
1 parent a22d093 commit 54f2b2b
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PixivFSUWP/Data/CommentsCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ in ChildrenComments
{
foreach (var childschild in child.ChildrenComments)
{
childschild.Comment = string.Format("RE {0}: {1}",
childschild.Comment = string.Format("Re: {0}: {1}",
child.UserName, childschild.Comment);
recommendmodel.ChildrenComments.Add(childschild);
}
Expand Down
6 changes: 5 additions & 1 deletion PixivFSUWP/IllustDetailPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@
</ToggleButton>
</StackPanel>
<TextBlock x:Name="txtCaption" Margin="15,15,15,0" Height="Auto" TextWrapping="WrapWholeWords"/>
<TextBlock x:Name="txtCommentTitle" Margin="15,15,15,0" Height="Auto" FontSize="20" FontWeight="Bold"/>
<StackPanel Margin="15,15,15,0" Orientation="Horizontal">
<TextBlock x:Name="txtCommentTitle" Height="Auto" FontSize="20" FontWeight="Bold"/>
<Button x:Uid="NewComment" Height="Auto" Style="{StaticResource ButtonRevealStyle}" Visibility="Collapsed"
Margin="5,0,0,0" Background="#99F3F3F3" BorderThickness="1.5" x:Name="btnNewComment"/>
</StackPanel>
<ListView x:Name="listComments" Margin="0,15" IncrementalLoadingTrigger="None" SelectionMode="None"
ScrollViewer.VerticalScrollMode="Disabled" ScrollViewer.HorizontalScrollMode="Disabled">
<ListView.ItemTemplate>
Expand Down
1 change: 1 addition & 0 deletions PixivFSUWP/IllustDetailPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ private async Task loadContent()
txtAuthorAccount.Text = string.Format("@{0}", illust.AuthorAccount);
txtCaption.Text = (illust.Caption == "") ? GetResourceString("NoCaptionPlain") : Regex.Replace(illust.Caption.Replace("<br />", "\n"), "<[^>]+>", "");
txtCommentTitle.Text = GetResourceString("CommentsPlain");
btnNewComment.Visibility = Visibility.Visible;
listComments.ItemsSource = new Data.CommentsCollection(illustID.ToString());
txtLoadingStatus.Text = GetResourceString("CreatingTimelinePlain");
AdaptiveCard card = new AdaptiveCard("1.1");
Expand Down
5 changes: 5 additions & 0 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@
<target state="translated">Direct Connection (!Experimental!)</target>
<note from="MultilingualBuild" annotates="source" priority="2">CheckBox</note>
</trans-unit>
<trans-unit id="NewComment.Content" translate="yes" xml:space="preserve">
<source>New comment</source>
<target state="new">New comment</target>
<note from="MultilingualBuild" annotates="source" priority="2">ToggleButton</note>
</trans-unit>
</group>
</body>
</file>
Expand Down
5 changes: 5 additions & 0 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.zh-Hans.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@
<target state="translated">直连(实验性,可以绕过中国大陆的封锁)</target>
<note from="MultilingualBuild" annotates="source" priority="2">CheckBox</note>
</trans-unit>
<trans-unit id="NewComment.Content" translate="yes" xml:space="preserve">
<source>New comment</source>
<target state="translated">撰写评论</target>
<note from="MultilingualBuild" annotates="source" priority="2">ToggleButton</note>
</trans-unit>
</group>
</body>
</file>
Expand Down
5 changes: 5 additions & 0 deletions PixivFSUWP/MultilingualResources/PixivFSUWP.zh-Hant.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@
<target state="translated">直连(实验性,可以绕过中国大陆的封锁)</target>
<note from="MultilingualBuild" annotates="source" priority="2">CheckBox</note>
</trans-unit>
<trans-unit id="NewComment.Content" translate="yes" xml:space="preserve">
<source>New comment</source>
<target state="translated">撰写评论</target>
<note from="MultilingualBuild" annotates="source" priority="2">ToggleButton</note>
</trans-unit>
</group>
</body>
</file>
Expand Down
4 changes: 4 additions & 0 deletions PixivFSUWP/Strings/en/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@
<value>Draft</value>
<comment>PlainText</comment>
</data>
<data name="NewComment.Content" xml:space="preserve">
<value>New comment</value>
<comment>ToggleButton</comment>
</data>
<data name="NoCaptionPlain" xml:space="preserve">
<value>No caption</value>
<comment>PlainText</comment>
Expand Down
4 changes: 4 additions & 0 deletions PixivFSUWP/Strings/zh-Hans/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -492,4 +492,8 @@
<value>直连(实验性,可以绕过中国大陆的封锁)</value>
<comment>CheckBox</comment>
</data>
<data name="NewComment.Content" xml:space="preserve">
<value>撰写评论</value>
<comment>ToggleButton</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions PixivFSUWP/Strings/zh-Hant/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -492,4 +492,8 @@
<value>直连(实验性,可以绕过中国大陆的封锁)</value>
<comment>CheckBox</comment>
</data>
<data name="NewComment.Content" xml:space="preserve">
<value>撰写评论</value>
<comment>ToggleButton</comment>
</data>
</root>

0 comments on commit 54f2b2b

Please sign in to comment.