Skip to content

Commit

Permalink
更新 or 已添加新的翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
TYHH10 authored and TYHH10 committed Nov 8, 2024
1 parent 6806eb3 commit 5cfdace
Show file tree
Hide file tree
Showing 14 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
},
{
name: 'SubTools',
label: '潜艇编辑器',
label: '潜艇工具',
url: '/SubTools',
},
{
Expand Down
16 changes: 8 additions & 8 deletions src/components/AboutSaveEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<v-col>
<v-sheet elevation="1" class="buttonWrapper">
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'ownedSubs'">
Owned Submarines
拥有的潜艇
</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'campSettings'">
Campaign Settings
战役设置
</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'crew'"> Crew </v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'misc'"> Misc Tools </v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'crew'"> 拥有的船员 </v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'misc'"> 杂项工具 </v-btn>
</v-sheet>
</v-col>
</v-row>
Expand All @@ -18,7 +18,7 @@
<!-- owned submarines -->
<v-card v-if="selectedComp === 'ownedSubs'" elevation="1" class="aboutCard">
<v-card-header>
<v-card-title class="text-h4">Owned Submarines</v-card-title>
<v-card-title class="text-h4">拥有的潜艇</v-card-title>
</v-card-header>
<v-card-text>
<span class="text-h6">Displays a list of currently owned submarines.</span><br /><br />
Expand Down Expand Up @@ -46,7 +46,7 @@
<!-- campaign settings -->
<v-card v-if="selectedComp === 'campSettings'" elevation="1" class="aboutCard">
<v-card-header>
<v-card-title class="text-h4">Campaign Settings</v-card-title>
<v-card-title class="text-h4">战役设置</v-card-title>
</v-card-header>
<v-card-text>
<span class="text-h6"> Max Missions </span><br />
Expand All @@ -71,7 +71,7 @@
<!-- crew -->
<v-card v-if="selectedComp === 'crew'" elevation="1" class="aboutCard">
<v-card-header>
<v-card-title class="text-h4">Crew / Bots</v-card-title>
<v-card-title class="text-h4">船员 / 机器人</v-card-title>
</v-card-header>
<v-card-text>
<span class="text-h6">
Expand Down Expand Up @@ -118,7 +118,7 @@
<!-- misc -->
<v-card v-if="selectedComp === 'misc'" elevation="1" class="aboutCard">
<v-card-header>
<v-card-title class="text-h4">Miscellaneous tools</v-card-title>
<v-card-title class="text-h4">杂项工具</v-card-title>
</v-card-header>
<v-card-text>
<span class="text-h6"> Gamesession.xml tools </span>
Expand Down
10 changes: 5 additions & 5 deletions src/components/AboutSubEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<v-col>
<v-sheet elevation="1" class="buttonWrapper">
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'export'">

Check warning on line 5 in src/components/AboutSubEditor.vue

View workflow job for this annotation

GitHub Actions / build-gh-pages

Replace `⏎··········文件导出⏎·······` with `·文件导出`
Export from file
文件导出
</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'wirehider'">Wire Hider</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'script'">Run Script</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'misc'">Misc Tools</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'wirehider'">导线隐藏</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'script'">运行脚本</v-btn>
<v-btn color="secondary" variant="outlined" class="mx-2" @click="selectedComp = 'misc'">杂项工具</v-btn>
</v-sheet>
</v-col>
</v-row>
Expand All @@ -16,7 +16,7 @@
<!-- export -->
<v-card v-if="selectedComp === 'export'" elevation="1" class="aboutCard">
<v-card-header>
<v-card-title class="text-h4">Export from file</v-card-title>
<v-card-title class="text-h4">文件导出</v-card-title>
</v-card-header>
<v-card-text>
<span class="text-h6">Allows to export preview image or shuttles from the submarine file.</span><br /><br />
Expand Down
22 changes: 11 additions & 11 deletions src/components/CrewList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
</v-btn>
<div class="pt-1">添加:</div>
<v-spacer></v-spacer>
<v-btn title="Add new assistant character" icon size="x-small" @click="addNew">
<v-btn title="添加一个新的助手船员" icon size="x-small" @click="addNew">
<v-icon color="secondary">mdi-account-plus-outline</v-icon>
</v-btn>
<v-btn title="Add character from xml" icon size="x-small" @click="addCharDialog = true">
<v-btn title="xml 添加船员" icon size="x-small" @click="addCharDialog = true">
<v-icon color="secondary">mdi-account-edit-outline</v-icon>
<v-dialog class="editCharacter" v-model="addCharDialog">
<v-card class="d-flex flex-column" style="width: 100%; height: 100%">
<v-card-title>
<span class="text-h5">Add character from xml</span>
<span class="text-h5">xml 添加船员</span>
</v-card-title>
<v-card-text class="d-flex flex-grow-1">
<textarea
Expand All @@ -45,13 +45,13 @@
</v-card-text>
<v-card-actions style="flex: 0 1 auto">
<v-spacer></v-spacer>
<v-btn color="red darken-1" text @click="addCharDialog = false"> Cancel </v-btn>
<v-btn color="green darken-1" text @click="addFromInput"> Add </v-btn>
<v-btn color="red darken-1" text @click="addCharDialog = false"> 取消 </v-btn>
<v-btn color="green darken-1" text @click="addFromInput"> 添加 </v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-btn>
<v-btn title="Paste character xml from clipboard" icon size="x-small" @click="addFromClip">
<v-btn title="从剪切板读取船员xml" icon size="x-small" @click="addFromClip">
<v-icon color="secondary">mdi-clipboard-arrow-up-outline</v-icon>
</v-btn>
</v-sheet>
Expand All @@ -60,7 +60,7 @@
<v-card class="d-flex flex-column mainCard" style="width: 100%; height: 100%">
<v-card-title style="background-color: rgb(var(--v-theme-primary))">
<span class="text-h4"
>编辑 <span class="text-black">{{ charClone?.attributes?.name }}</span></span
>编辑:<span class="text-black">{{ charClone?.attributes?.name }}</span></span
>
</v-card-title>
<v-card-text v-if="charClone" class="d-flex flex-grow-1">
Expand All @@ -83,13 +83,13 @@
</div>
<div>
<div class="text-h5">Raw xml:</div>
<v-btn title="Copy character xml to clipboard" size="x-small" icon @click="copyChar">
<v-btn title="复制船员xml到剪贴板" size="x-small" icon @click="copyChar">
<v-icon color="secondary">mdi-clipboard-arrow-down-outline</v-icon>
</v-btn>
<v-btn title="Paste character xml from clipboard" size="x-small" icon @click="pasteChar">
<v-btn title="从剪切板读取船员xml" size="x-small" icon @click="pasteChar">
<v-icon color="secondary">mdi-clipboard-arrow-up-outline</v-icon>
</v-btn>
<v-btn title="Edit raw xml" size="x-small" icon @click="rawEditChar">
<v-btn title="编辑xml" size="x-small" icon @click="rawEditChar">
<v-icon color="secondary">mdi-file-edit-outline</v-icon>
</v-btn>
</div>
Expand Down Expand Up @@ -264,7 +264,7 @@ export default {
this.selectedChar = null
this.$store.dispatch('showAlert', {
type: 'success',
text: `Modified character ${this.charClone.attributes.name}`,
text: `修改船员: ${this.charClone.attributes.name}`,
})
this.charClone = null
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/FileDropper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- locate file dialog -->
<v-btn @click.stop="fileLocDialog = true" size="x-small" icon>
<v-icon>mdi-file-find-outline</v-icon>
<v-tooltip anchor="bottom" activator="parent">Where can I find my files?</v-tooltip>
<v-tooltip anchor="bottom" activator="parent">我在哪里可以找到这个文件?</v-tooltip>
</v-btn>
<v-dialog class="filedropper" v-model="fileLocDialog">
<v-card>
Expand Down Expand Up @@ -77,7 +77,7 @@
<!-- help dialog -->
<v-btn @click.stop="helpDialog = true" size="x-small" icon>
<v-icon>mdi-help-circle-outline</v-icon>
<v-tooltip anchor="bottom" activator="parent">What files can I load?</v-tooltip>
<v-tooltip anchor="bottom" activator="parent">我可以加载哪些文件?</v-tooltip>
</v-btn>
<v-dialog class="filedropper" v-model="helpDialog">
<v-card>
Expand Down
20 changes: 10 additions & 10 deletions src/components/MiscSaveTools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<div class="d-flex flex-row justify-space-between pr-2 toolContent mb-8" style="width: 100%; max-width: 320px">
<h3 class="toolTitle d-block">Gamesession.xml</h3>
<v-spacer></v-spacer>
<v-icon title="Copy to clipboard" color="secondary" class="iconButton" @click="gameses.copy()">
<v-icon title="复制到剪贴板" color="secondary" class="iconButton" @click="gameses.copy()">
mdi-clipboard-arrow-down-outline
</v-icon>
<v-icon title="Paste from clipboard" color="secondary" class="iconButton" @click="gameses.paste()">
<v-icon title="从剪切板中读取" color="secondary" class="iconButton" @click="gameses.paste()">
mdi-clipboard-arrow-up-outline
</v-icon>
<v-icon title="Download" color="secondary" class="iconButton" @click="gameses.download()">
<v-icon title="下载" color="secondary" class="iconButton" @click="gameses.download()">
mdi-file-download-outline
</v-icon>
<v-icon title="Edit xml" color="secondary" class="iconButton" @click.stop="gameses.edit()">
<v-icon title="编辑 xml" color="secondary" class="iconButton" @click.stop="gameses.edit()">
mdi-file-edit-outline
</v-icon>
<v-dialog class="fullscreen" v-model="gameses.dialog.value" fullscreen>
Expand All @@ -44,22 +44,22 @@
<h3 class="toolTitle">Save 转换</h3>
<div class="toolContent d-flex flex-row justify-space-between align-center px-2 mb-8">
<div class="text">
转换为 <span class="text-primary">{{ isMP ? '单人' : '多人' }}-游戏</span> 格式:
转换为: <span class="text-primary">{{ isMP ? '单人' : '多人' }}-游戏</span> 格式
</div>
<v-spacer></v-spacer>
<v-btn title="Convert" @click="convert.click" size="x-small" icon>
<v-btn title="转换" @click="convert.click" size="x-small" icon>
<v-icon color="secondary">mdi-file-sync-outline</v-icon>
</v-btn>
<v-btn @click.stop="convert.dialog.value = true" size="x-small" icon>
<v-icon>mdi-help-circle-outline</v-icon>
<v-tooltip anchor="bottom" activator="parent">Savefile format convertion info</v-tooltip>
<v-tooltip anchor="bottom" activator="parent">Save文件格式转换信息</v-tooltip>
</v-btn>
<!-- info dialog -->
<v-dialog class="convertInfo" v-model="convert.dialog.value">
<v-card>
<v-card-title>
<span class="text-h5">{{

Check warning on line 61 in src/components/MiscSaveTools.vue

View workflow job for this annotation

GitHub Actions / build-gh-pages

Replace `⏎················isMP·?·'多人游戏到单人游戏的转换'·:·'单人游戏到多人游戏的转换'⏎·············` with `·isMP·?·'多人游戏到单人游戏的转换'·:·'单人游戏到多人游戏的转换'`
isMP ? 'Multi-player to single-player convertion' : 'Single-player to multi-player convertion'
isMP ? '多人游戏到单人游戏的转换' : '单人游戏到多人游戏的转换'
}}</span>
<v-spacer></v-spacer>
<v-btn color="red" size="x-small" icon @click="convert.dialog.value = false">
Expand Down Expand Up @@ -288,7 +288,7 @@ function gamesesSetup() {
await navigator.clipboard.writeText(xmlString)
store.dispatch('showAlert', {
type: 'success',
text: `Copied gamesession.xml to system clipboard.`,
text: `gamesession.xml文件内容已经复制到系统剪切板中.`,
})
}
Expand All @@ -313,7 +313,7 @@ function gamesesSetup() {
dialog.value = false
store.dispatch('showAlert', {
type: 'success',
text: `Pasted "gamesession.xml" from clipboard.`,
text: `已从剪切板中读取gamesession.xml内容.`,
})
} else {
console.warn(`Failed to find campaign element in new gamesession - aborting`)
Expand Down
22 changes: 11 additions & 11 deletions src/components/MiscSubTools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="toolContent d-flex flex-row justify-space-between align-center px-2">
<v-text-field
density="comfortable"
label="Change Price"
label="更改价格"
variant="outlined"
style="color: white; min-width: 140px"
v-model="price.inputVal.value"
Expand All @@ -23,27 +23,27 @@
color="secondary"
class="py-5"
>
SET
应用
</v-btn>
</div>
<!-- clean walls -->
<h3 class="toolTitle">Clean walls</h3>
<h3 class="toolTitle">清理墙壁</h3>
<div class="toolContent d-flex flex-row justify-flex-start align-center px-2" style="width: 100%">
<input style="width: auto" type="checkbox" v-model="wallClean.checkBoxVal.value" />
<div class="mx-2">Include shuttles</div>
<div class="mx-2">包括穿梭艇</div>
<v-spacer></v-spacer>
<v-btn variant="outlined" @click="wallClean.click" color="secondary"> CLEAN </v-btn>
<v-btn variant="outlined" @click="wallClean.click" color="secondary"> 清理 </v-btn>
</div>
<!-- compact submarine -->
<h3 class="toolTitle">
Compact sub
<v-btn class="ml-2" @click.stop="compact.dialog.value = true" size="x-small" icon title="Info">
Compact 潜艇
<v-btn class="ml-2" @click.stop="compact.dialog.value = true" size="x-small" icon title="信息">
<v-icon>mdi-help-circle-outline</v-icon>
</v-btn>
<v-dialog class="subCompactor" v-model="compact.dialog.value">
<v-card>
<v-card-title>
<span class="text-h5">"Compact" submarine tool</span>
<span class="text-h5">"Compact" 潜艇工具</span>
<v-spacer></v-spacer>
<v-btn color="red" size="x-small" icon @click="compact.dialog.value = false">
<v-icon>mdi-close-thick</v-icon>
Expand Down Expand Up @@ -72,7 +72,7 @@
color="secondary"
:title="compact.linkedSubs.value.length === 0 ? 'No shuttles found' : 'Compact attached shuttles'"
>
Shuttles
穿梭艇
</v-btn>
<v-btn
variant="outlined"
Expand All @@ -81,7 +81,7 @@
color="secondary"
:title="compact.previewImage.value === '' ? 'No preview image found' : 'Compact main submarine'"
>
Sub
潜艇
</v-btn>
</div>
</v-sheet>
Expand Down Expand Up @@ -115,7 +115,7 @@ function priceSetup() {
store.getters.sub.attributes.price = inputVal.value
store.dispatch('showAlert', {
type: 'success',
text: `Set submarine price to "${inputVal.value}"`,
text: `潜艇价格设置为 "${inputVal.value}"`,
})
} else
store.dispatch('showAlert', {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ScriptRunner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</v-card-header>
<v-sheet class="mb-2 d-flex flex-column justify-center align-center px-4">
<textarea v-model="areaText" spellcheck="false" class="textArea px-2 mx-0"></textarea>
<v-btn class="mt-4" color="secondary" variant="outlined" @click="run" :disabled="areaText == ''">Run</v-btn>
<v-btn class="mt-4" color="secondary" variant="outlined" @click="run" :disabled="areaText == ''">运行</v-btn>
</v-sheet>
</v-card>
</template>
Expand All @@ -24,7 +24,7 @@ export default {
eval(this.areaText)
this.$store.dispatch('showAlert', {
type: 'success',
text: `Succesfully executed script`,
text: `成功运行脚本`,
})
},
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/ShuttleExporter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
class="d-flex flex-row justify-center align-center mt-2 px-4"
style="width: 100%"
>
<div class="d-flex flex-row justify-center align-center">预览图片</div>
<div class="d-flex flex-row justify-center align-center">潜艇的预览图片</div>
<v-spacer></v-spacer>
<v-icon title="Download" class="iconButton" color="secondary" @click="downloadImage()">
<v-icon title="下载" class="iconButton" color="secondary" @click="downloadImage()">
mdi-file-download-outline
</v-icon>
</v-sheet>
Expand All @@ -25,7 +25,7 @@
>
<div class="d-flex flex-row justify-center align-center">{{ sub.name }}</div>
<v-spacer></v-spacer>
<v-icon title="Download" class="iconButton" color="secondary" @click="downloadShuttle(sub.object)">
<v-icon title="下载" class="iconButton" color="secondary" @click="downloadShuttle(sub.object)">
mdi-file-download-outline
</v-icon>
</v-sheet>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SubDataBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</v-btn>
<v-icon
size="32"
title="load to savefile"
title="添加到存档文件中"
:color="buttonActive ? 'secondary' : 'grey'"
:class="{ iconButton: buttonActive }"
@click="pushToSaveEditor"
Expand Down
4 changes: 2 additions & 2 deletions src/components/WireHider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ export default {
if (count > 0)
this.$store.dispatch('showAlert', {
type: 'success',
text: `Set ${count} wires to ${setToBool ? 'hidden' : 'visible'}`,
text: `${count} 个导线设置为 ${setToBool ? '隐藏' : '可见'}`,
})
else
this.$store.dispatch('showAlert', {
type: 'info',
text: `All wires of that type were already set to ${setToBool ? 'hidden' : 'visible'}`,
text: `当前导线已经设置为 ${setToBool ? '隐藏' : '可见'}`,
})
},
unhideWires() {
Expand Down
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const routes = [
name: 'SubTools',
component: () => import('../views/SubTools.vue'),
meta: {
title: '潜渊症潜艇编辑器',
title: '潜渊症潜艇工具',
keywords: 'barotrauma, submarine editor, submarine, editor, tools',
desc: 'Online submarine tools for Barotrauma. Extract shuttles, preview image, mass hide wires, change price or clean wall stains.',
},
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default createStore({
} else {
dispatch('showAlert', {
type: 'success',
text: `Updated owned submarine file "${file.name}"`,
text: `已更新拥有的潜艇 "${file.name}" 文件`,
})
}
commit('ADD_SUBFILE', { name: file.name, data: subObject })
Expand Down
Loading

0 comments on commit 5cfdace

Please sign in to comment.