Skip to content

Commit

Permalink
use DisplayName for Resources.SaveBeforeClosingPrompt
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Feb 17, 2025
1 parent 9b925dd commit 3399b18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ public override async Task<bool> CanCloseAsync(CancellationToken cancellationTok
return true;

var result = MessageBox.Show(
Resources.SaveBeforeClosingPrompt.Format(FileName),
FileName,
Resources.SaveBeforeClosingPrompt.Format(DisplayName),
Resources.Warning,
MessageBoxButton.YesNoCancel,
MessageBoxImage.Warning,
MessageBoxResult.Cancel);
Expand Down
3 changes: 3 additions & 0 deletions OngekiFumenEditor/Properties/Resources.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1872,4 +1872,7 @@
<data name="InvalidColorId" xml:space="preserve">
<value>颜色Id(ColorId)值无效: {0}</value>
</data>
<data name="SaveBeforeClosingPrompt" xml:space="preserve">
<value>关闭文档前是否要保存文件 {0} ?</value>
</data>
</root>

0 comments on commit 3399b18

Please sign in to comment.