画布部分语言适配

This commit is contained in:
李志鹏
2025-10-10 13:44:44 +08:00
parent 251d1a6951
commit 1a17e70e1a
4 changed files with 2844 additions and 2842 deletions

View File

@@ -145,10 +145,10 @@
</div> </div>
<div class="dialog-buttons"> <div class="dialog-buttons">
<button class="cancel-btn" @click="cancelFeather"> <button class="cancel-btn" @click="cancelFeather">
{{ $t("取消") }} {{ $t("Canvas.close") }}
</button> </button>
<button class="confirm-btn" @click="applyFeather"> <button class="confirm-btn" @click="applyFeather">
{{ $t("确认") }} {{ $t("Canvas.confirmEdit") }}
</button> </button>
</div> </div>
</div> </div>
@@ -159,7 +159,7 @@
<div v-if="showColorPicker" class="dialog-overlay"> <div v-if="showColorPicker" class="dialog-overlay">
<div class="dialog-container"> <div class="dialog-container">
<div class="dialog-header"> <div class="dialog-header">
<h3>{{ $t("选择填充颜色") }}</h3> <h3>{{ $t("Canvas.SelectFillColor") }}</h3>
<button class="close-dialog-btn" @click="cancelColorPicker"> <button class="close-dialog-btn" @click="cancelColorPicker">
× ×
</button> </button>
@@ -168,10 +168,10 @@
<input type="color" v-model="fillColor" class="color-picker" /> <input type="color" v-model="fillColor" class="color-picker" />
<div class="dialog-buttons"> <div class="dialog-buttons">
<button class="cancel-btn" @click="cancelColorPicker"> <button class="cancel-btn" @click="cancelColorPicker">
{{ $t("取消") }} {{ $t("Canvas.close") }}
</button> </button>
<button class="confirm-btn" @click="confirmColorPicker"> <button class="confirm-btn" @click="confirmColorPicker">
{{ $t("确认") }} {{ $t("Canvas.confirmEdit") }}
</button> </button>
</div> </div>
</div> </div>

View File

@@ -770,7 +770,7 @@ export class ToolManager {
title, title,
content, content,
okText: this.t("Canvas.ConfirmRasterization"), okText: this.t("Canvas.ConfirmRasterization"),
cancelText: "取消", cancelText: this.t("Canvas.close"),
centered: true, centered: true,
icon: h("span", { style: "color: #faad14;" }, "⚠️"), icon: h("span", { style: "color: #faad14;" }, "⚠️"),
onOk: () => { onOk: () => {

View File

@@ -1095,6 +1095,7 @@ export default {
Drawing: "画笔", Drawing: "画笔",
Eraser: "橡皮擦", Eraser: "橡皮擦",
FillColor: "填充颜色", FillColor: "填充颜色",
SelectFillColor: '选择填充颜色',
Pan: "整体拖拽", Pan: "整体拖拽",
Select: "选择", Select: "选择",
Liquefying: "液化", Liquefying: "液化",

View File

@@ -1095,6 +1095,7 @@ export default {
Drawing: "Drawing", Drawing: "Drawing",
Eraser: "Eraser", Eraser: "Eraser",
FillColor: "FillColor", FillColor: "FillColor",
SelectFillColor: 'Select Fill Color',
Pan: "Pan", Pan: "Pan",
Select: "Select", Select: "Select",
Liquefying: "Liquefying", Liquefying: "Liquefying",