Skip to content

Commit

Permalink
言語リソースを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Jan 17, 2024
1 parent 75169d5 commit c66aaa8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 16 deletions.
18 changes: 18 additions & 0 deletions src/Beutl.Language/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/Beutl.Language/Strings.ja.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1006,4 +1006,10 @@ b-editorがダウンロードURLを管理します。</value>
<data name="ColorKey" xml:space="preserve">
<value>カラーキー</value>
</data>
<data name="SaveAsImage" xml:space="preserve">
<value>画像として保存</value>
</data>
<data name="CopyAsImage" xml:space="preserve">
<value>画像としてコピー</value>
</data>
</root>
6 changes: 6 additions & 0 deletions src/Beutl.Language/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1006,4 +1006,10 @@ and b-editor maintains the download URL.</value>
<data name="ColorKey" xml:space="preserve">
<value>Color key</value>
</data>
<data name="SaveAsImage" xml:space="preserve">
<value>Save as image</value>
</data>
<data name="CopyAsImage" xml:space="preserve">
<value>Copy as image</value>
</data>
</root>
7 changes: 1 addition & 6 deletions src/Beutl/Helpers/WindowsClipboard.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;

using Beutl.Graphics;
using Beutl.Media;
Expand Down
14 changes: 4 additions & 10 deletions src/Beutl/Views/EditView.axaml.MouseControl.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System.Runtime.InteropServices;

using Avalonia.Controls;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Platform.Storage;

using Beutl.Animation;
Expand All @@ -14,14 +11,11 @@
using Beutl.Media;
using Beutl.Media.Pixel;
using Beutl.ProjectSystem;
using Beutl.Rendering;
using Beutl.Services;
using Beutl.ViewModels;

using FluentAvalonia.UI.Controls;

using SkiaSharp;

using AvaImage = Avalonia.Controls.Image;
using AvaPoint = Avalonia.Point;
using AvaRect = Avalonia.Rect;
Expand Down Expand Up @@ -475,15 +469,15 @@ public void OnReleased(PointerReleasedEventArgs e)
{
var copyAsString = new MenuFlyoutItem()
{
Text = "選択範囲をコピー",
Text = Strings.Copy,
IconSource = new SymbolIconSource()
{
Symbol = Symbol.Copy
}
};
var saveAsImage = new MenuFlyoutItem()
{
Text = "選択範囲を画像として保存",
Text = Strings.SaveAsImage,
IconSource = new SymbolIconSource()
{
Symbol = Symbol.SaveAs
Expand Down Expand Up @@ -532,7 +526,7 @@ public void OnReleased(PointerReleasedEventArgs e)
{
var copyAsImage = new MenuFlyoutItem()
{
Text = "選択範囲を画像としてコピー",
Text = Strings.CopyAsImage,
IconSource = new SymbolIconSource()
{
Symbol = Symbol.ImageCopy
Expand Down

0 comments on commit c66aaa8

Please sign in to comment.