Skip to content

Commit

Permalink
Merge pull request #1066 from sunfish-shogi/translate
Browse files Browse the repository at this point in the history
英語翻訳されていなかった表示文言への対応
  • Loading branch information
sunfish-shogi authored Jan 10, 2025
2 parents 0c8a752 + 4d4cbba commit 72a8be0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/common/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export const en: Texts = {
autoSavingDirectory: "Auto-Save Directory",
recordFileName: "Record File Name",
select: "Select",
csaV3Output: "CSA V3 Output",
positionOfUSIOutput: "Position of USI Output",
movesOfUSIOutput: "Moves of USI Output",
onlySFEN: "Only SFEN",
Expand Down Expand Up @@ -477,6 +478,7 @@ export const en: Texts = {
bookMove: "Book Move",
play: "Play",
edit: "Edit",
addMoves: "Add Moves",
freq: "Freq.",
frequency: "Frequency",
new: "New",
Expand Down
2 changes: 2 additions & 0 deletions src/common/i18n/locales/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export const ja: Texts = {
autoSavingDirectory: "棋譜の自動保存先",
recordFileName: "棋譜ファイル名",
select: "選択",
csaV3Output: "CSA V3 で出力",
positionOfUSIOutput: "USI の局面表記",
movesOfUSIOutput: "USI の指し手表記",
onlySFEN: "SFEN のみ",
Expand Down Expand Up @@ -477,6 +478,7 @@ export const ja: Texts = {
bookMove: "定跡手",
play: "着手",
edit: "編集",
addMoves: "指し手追加",
freq: "出現頻度",
frequency: "出現頻度",
new: "新規",
Expand Down
2 changes: 2 additions & 0 deletions src/common/i18n/locales/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export const vi: Texts = {
autoSavingDirectory: "Thư mục lưu tự động",
recordFileName: "Tên tệp kỳ phổ",
select: "Chọn",
csaV3Output: "CSA V3 で出力", // TODO: translate
positionOfUSIOutput: "Định dạng thế cờ USI",
movesOfUSIOutput: "Định dạng kỳ phổ USI",
onlySFEN: "Chỉ SFEN",
Expand Down Expand Up @@ -477,6 +478,7 @@ export const vi: Texts = {
bookMove: "定跡手", // TODO: translate
play: "着手", // TODO: translate
edit: "編集", // TODO: translate
addMoves: "指し手追加", // TODO: translate
freq: "出現頻度", // TODO: translate
frequency: "出現頻度", // TODO: translate
new: "新規", // TODO: translate
Expand Down
2 changes: 2 additions & 0 deletions src/common/i18n/locales/zh_tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const zh_tw: Texts = {
autoSavingDirectory: "棋譜自動保存地點",
recordFileName: "棋譜檔案名稱",
select: "選擇",
csaV3Output: "CSA V3 で出力", // TODO: translate
positionOfUSIOutput: "USI 局面紀錄格式",
movesOfUSIOutput: "USI 棋譜紀錄格式",
onlySFEN: "只有 SFEN",
Expand Down Expand Up @@ -474,6 +475,7 @@ export const zh_tw: Texts = {
bookMove: "定跡手", // TODO: translate
play: "着手", // TODO: translate
edit: "編集", // TODO: translate
addMoves: "指し手追加", // TODO: translate
freq: "出現頻度", // TODO: translate
frequency: "出現頻度", // TODO: translate
new: "新規", // TODO: translate
Expand Down
2 changes: 2 additions & 0 deletions src/common/i18n/text_template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export type Texts = {
autoSavingDirectory: string;
recordFileName: string;
select: string;
csaV3Output: string;
positionOfUSIOutput: string;
movesOfUSIOutput: string;
onlySFEN: string;
Expand Down Expand Up @@ -472,6 +473,7 @@ export type Texts = {
bookMove: string;
play: string;
edit: string;
addMoves: string;
freq: string;
frequency: string;
new: string;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/view/dialog/AppSettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@
</div>
<!-- CSA V3 で出力 -->
<div class="form-item">
<div class="form-item-label-wide">CSA V3 で出力</div>
<div class="form-item-label-wide">{{ t.csaV3Output }}</div>
<ToggleButton
:value="original.useCSAV3"
@change="(checked: boolean) => (update.useCSAV3 = checked)"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/view/main/BookPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<button @click="onResetBook">{{ t.clear }}</button>
<button @click="onOpenBook">{{ t.open }}</button>
<button :disabled="!isBookOperational" @click="onSaveBook">{{ t.saveAs }}</button>
<button :disabled="!isBookOperational" @click="onAddBookMoves">指し手追加</button>
<button :disabled="!isBookOperational" @click="onAddBookMoves">{{ t.addMoves }}</button>
</div>
<BookMoveDialog
v-if="editingData"
Expand Down

0 comments on commit 72a8be0

Please sign in to comment.