diff --git a/cmd/opensave-app/frontend/src/App.svelte b/cmd/opensave-app/frontend/src/App.svelte index f235ff9d..3b1251b1 100644 --- a/cmd/opensave-app/frontend/src/App.svelte +++ b/cmd/opensave-app/frontend/src/App.svelte @@ -290,7 +290,7 @@ {:else}
- Starting OpenSave… + {$t('app.startingOpenSave')}
{/if} diff --git a/cmd/opensave-app/frontend/src/locales/en.json b/cmd/opensave-app/frontend/src/locales/en.json index 29586171..3ee84aeb 100644 --- a/cmd/opensave-app/frontend/src/locales/en.json +++ b/cmd/opensave-app/frontend/src/locales/en.json @@ -698,5 +698,265 @@ "app.detailsSaved": "Details are saved to .opensave\\opensave.log in your user folder.", "app.startingOpenSave": "Starting OpenSave…", "app.emptiedBody": "Every save file of {name} was deleted here. Your other devices keep theirs until you choose.", - "app.choose": "Choose" + "app.choose": "Choose", + "game.notFound": "Game not found", + "game.tab.snapshots": "Snapshots", + "game.tab.branches": "Branches", + "game.tab.cloud": "Cloud", + "game.tab.config": "Configuration", + "game.tab.manage": "Manage", + "game.header.back": "Back", + "game.header.addFavourite": "Add to Favourites", + "game.header.removeFavourite": "Remove from Favourites", + "game.header.branch": "branch", + "game.header.syncing": "syncing {n}%", + "game.header.inSession": "in session since {time}", + "game.header.played": "played {when}, {length} in all", + "game.header.notFoundTitle": "Steam on this PC does not have it, and it is in no folder games are kept in. Set its program under Configuration to launch it from somewhere else.", + "game.header.notFound": "not found on this PC", + "game.header.lastSyncedTitle": "{name}: last synced {when}", + "game.header.neverSyncedTitle": "{name} has never synced this game", + "game.header.syncedAgo": "synced {when}", + "game.header.neverSynced": "never synced", + "game.header.launch": "Launch", + "game.header.syncNow": "Sync now", + "game.header.syncTriggered": "Sync triggered", + "game.header.launching": "Launching…", + "game.header.selectSaveFolder": "Select save folder", + "game.header.browse": "Browse", + "game.header.save": "Save", + "game.header.openFolder": "Open folder", + "game.header.openFolderTitle": "Show this folder in your file manager", + "game.header.edit": "Edit", + "game.header.savePathUpdated": "Save path updated", + "game.header.deleteEverywhereMsg": { + "one": "Delete {name}'s save files on your other devices too? {n} file there will go; each device keeps a snapshot of them first.", + "other": "Delete {name}'s save files on your other devices too? {n} files there will go; each device keeps a snapshot of them first." + }, + "game.header.deleteEverywhereTitle": "Delete them everywhere?", + "game.header.deleteEverywhereAction": "Delete them there too", + "game.header.deletedAtNextSync": "{name}'s save files are deleted on your other devices at the next sync", + "game.header.puttingBackDevices": "Putting {name}'s files back — {n} come from your other devices", + "game.header.filesBack": "{name}'s files are back", + "game.header.relocated": "{name} now uses {path}", + "game.header.relocateDismissed": "Not using {path} for {name}", + "game.header.emptiedFetchingTitle": "Putting the files back.", + "game.header.emptiedFetchingBody": "Some are still to come from your other devices; this game syncs as usual once they're all here.", + "game.header.emptiedTitle": "Every save file in {where} was deleted on this device.", + "game.header.emptiedBody": "Your other devices still have theirs, and nothing is synced until you choose.", + "game.header.putBackFromSnapshot": "Put them back from the snapshot of {when}, with anything newer from your other devices", + "game.header.putBackFromDevices": "Put them back from your other devices", + "game.header.orDeleteThere": "— or, if you meant it, delete them there too; each device keeps a snapshot first.", + "game.header.putBackBtn": "Put them back", + "game.header.deleteThereBtn": "Delete them on my other devices too", + "game.header.elsewhereTitle": "This game isn't on this device.", + "game.header.elsewhereBody": "Its saves are on {drive}, which this PC doesn't have, so it's skipped here and keeps syncing between your other devices. If it is installed here, point the game at its save folder with Edit.", + "game.header.folderMissingTitle": "This save folder is not there.", + "game.header.folderMissingBody": "It may have been moved or deleted, or be on a drive that isn't connected. Nothing is snapshotted or synced for this game until it's back — OpenSave picks it up again within a minute. If the save lives somewhere else now, point the game at it with Edit.", + "game.header.relocateTitle": "The same folder is at {path}.", + "game.header.relocateBody": "Is that where this game saves on this device? Only use it if it holds your current saves, not an old copy.", + "game.header.relocateUse": "Use this folder", + "game.header.relocateNotThis": "Not this one", + "game.appId.label": "Steam App ID", + "game.appId.placeholder": "e.g. 1091500", + "game.appId.hint": "The number in the game's Steam store URL. Used to launch it and fetch its cover art.", + "game.appId.moreInfo1": "With “Match games by Steam App ID” turned on in Settings, it also lets this game sync with a copy tracked under a different name on another device. Filled in automatically when it can be worked out; a save under ", + "game.appId.moreInfo2": " often has nothing to work it out from, so you can set it here.", + "game.appId.checking": "Checking with Steam…", + "game.appId.foundPrefix": "Steam:", + "game.appId.unknown1": "No Steam game has this App ID. It's the number in the store page address — ", + "game.appId.unknown2": " — not the one from another store.", + "game.appId.unreachable": "Couldn't reach Steam to check this number. If Steam's store or CDN is blocked on this network, cover art won't load here either — the ID itself may well be right.", + "game.locations.title": "Save locations", + "game.locations.hint": "Some games keep their save split across more than one folder — the save data in one place, settings or mods in another. Add each extra folder here and it is synced, snapshotted and restored along with the main one.", + "game.locations.mainSave": "main save", + "game.locations.noFolder": "no folder on this device — this location isn't being synced", + "game.locations.change": "Change", + "game.locations.chooseFolder": "Choose folder", + "game.locations.remove": "Remove", + "game.locations.namePlaceholder": "Name for the folder (e.g. config)", + "game.locations.addFolder": "+ Add a folder", + "game.locations.matchHint1": "Give the same ", + "game.locations.name": "name", + "game.locations.matchHint2": " on your other devices — that is what the two sides match on, since the folder lives somewhere different on each machine. Removing a location here never deletes its files.", + "game.locations.folderFor": "Folder for “{label}” — {game}", + "game.locations.nowCovered": "“{label}” now covered", + "game.locations.removedUndo": "The “{name}” folder is no longer covered. Its files are left where they are.", + "game.manage.linkedCopies": "Linked copies", + "game.manage.linkedDesc": "If this game is tracked under a different name or drive on another PC (e.g. a Steam copy vs. a portable copy), link the copies so their saves sync across devices. Linking merges another tracked game here into this one: its save files stay where they are, and its snapshots move here, onto a branch named after it.", + "game.manage.unlink": "Unlink", + "game.manage.linkThis": "Link {name}", + "game.manage.chooseToLink": "Choose a game above to link", + "game.manage.checkingPeers": "Checking paired devices…", + "game.manage.nothingToLink": "Nothing to link to. Track the other copy on this device, or pair the device that has it and make sure it's online — its games appear here once it answers.", + "game.manage.linkRemoteMsg": "Link \"{name}\" on {peer} to \"{game}\"? The two will be treated as the same game when these devices sync. Nothing on either device is removed.", + "game.manage.linkLocalMsg": "Link \"{name}\" into \"{game}\"? They'll be treated as the same game when syncing across devices. \"{name}\" leaves your library here — its save files stay where they are, and its snapshots move to \"{game}\", on a branch of their own.", + "game.manage.linkTitle": "Link games?", + "game.manage.linkConfirm": "Link", + "game.manage.linked": "Games linked", + "game.manage.unlinked": "Link removed", + "game.manage.stopTracking": "Stop tracking", + "game.manage.stopTrackingDesc": "Removes \"{name}\" from OpenSave. Your save files and existing snapshot archives on disk are kept.", + "game.manage.stopTrackingBtn": "Stop tracking this game", + "game.branches.namePlaceholder": "New branch name (e.g. ng-plus)", + "game.branches.create": "Create branch", + "game.branches.hint": "A branch is a separate line of saves — a second playthrough, or a run you want to keep apart from your main one. You'll be asked what it starts from.", + "game.branches.active": "active", + "game.branches.snapshotCount": { + "one": "{n} snapshot", + "other": "{n} snapshots" + }, + "game.branches.switchTo": "Switch to", + "game.branches.createdFromCurrent": "Branch created from your current save", + "game.branches.createdEmpty": "Empty branch created", + "game.branches.switchedTo": "Switched to \"{name}\"", + "game.branches.deleteConfirm": "Delete branch \"{name}\" and all its snapshots? Your current save and other branches aren't affected.", + "game.branches.deleteTitle": "Delete branch?", + "game.branches.deleted": "Deleted branch \"{name}\"", + "game.branches.footnote": "Switching branches snapshots your current save first, then restores the other branch's latest state. A branch you just created has no state of its own yet, so it starts from whatever is in your save folder now — the two diverge from the first snapshot you take on it.", + "game.newBranch.title": "New branch — {name}", + "game.newBranch.question": "What should it start from?", + "game.newBranch.copyTitle": "A copy of my current save", + "game.newBranch.copyDesc": "\"{name}\" begins exactly where you are now. The two only diverge from the first snapshot you take on it — so this is the one for trying something without losing your place.", + "game.newBranch.freshTitle": "A fresh start — no save", + "game.newBranch.freshDesc1": "\"{name}\" begins empty, for a new playthrough from scratch. Switching to it clears your save folder — your current save is snapshotted first and comes straight back when you switch to ", + "game.newBranch.freshDesc2": ".", + "game.newBranch.hint": "Either way nothing is lost. Switching between branches snapshots whatever is in your save folder first, and refuses to change anything if that snapshot can't be taken.", + "game.compare.title": "Compare snapshots", + "game.compare.from": "From", + "game.compare.to": "To", + "game.compare.failed": "Couldn't compare them: {error}", + "game.compare.comparing": "Comparing…", + "game.compare.same": "The same snapshot.", + "game.compare.noDiff": { + "one": "No difference: the same {n} file in both.", + "other": "No difference: the same {n} files in both." + }, + "game.compare.count": { + "one": "{n} file differs", + "other": "{n} files differ" + }, + "game.compare.countSame": ", {n} the same", + "game.compare.changed": "changed", + "game.compare.added": "added", + "game.compare.removed": "removed", + "game.link.findPlaceholder": "Find a game…", + "game.link.findAria": "Find a game to link", + "game.link.onThisDevice": "On this device", + "game.link.onThisDeviceNote": "Its entry here merges into this one", + "game.link.onOtherDevices": "On your other devices", + "game.link.onOtherDevicesNote": "Nothing is removed on either device", + "game.link.onPeerTitle": "{name} on {peer}", + "game.link.localTitle": "{name} — {path}", + "game.link.noMatches": "No game matches “{query}”.", + "game.config.title": "Launch & sync configuration", + "game.config.saveFolder": "Save folder", + "game.config.saveFolderPlaceholder": "Folder holding this game's saves", + "game.config.saveFolderHint": "The folder OpenSave treats as this game's save.", + "game.config.saveFolderMore1": "Files sync by their position ", + "game.config.saveFolderMoreEm": "inside", + "game.config.saveFolderMore2": " this folder, so each device can point at a different path and still end up with the same files — useful when a game keeps saves in a per-account folder named after your Steam or Epic ID, which differs on every machine. Point each device at its own such folder and saves land where that copy of the game looks for them.", + "game.config.saveFolderNotSaved": "Not saved yet. The old folder keeps its files but stops syncing and being snapshotted.", + "game.config.appIdError": "A Steam App ID is digits only — the number in the store URL.", + "game.config.exePath": "Executable path", + "game.config.exePathPlaceholder": "Browse to the game .exe", + "game.config.exePathHint": "Launch starts this, even for a Steam game. Leave it empty to launch through Steam.", + "game.config.coverUrl": "Custom cover image URL", + "game.config.coverUrlPlaceholder": "https://… (great for emulator games)", + "game.config.coverUrlHint": "Leave blank to auto-use Steam art from the App ID. Paste any image URL for emulators.", + "game.config.autoSync": "Auto-sync saves when changes are detected", + "game.config.maxSnapshots": "Automatic snapshot limit", + "game.config.maxHint1": "Max ", + "game.config.maxHintEm": "automatic", + "game.config.maxHint2": " snapshots kept per branch (0 = unlimited). Oldest are pruned first.", + "game.config.maxManualSnapshots": "Manual snapshot limit", + "game.config.manualHint1": "Snapshots you took yourself get their own budget, so a game that auto-saves often can't push them out. ", + "game.config.manualHintStrong": "0 = keep forever", + "game.config.manualHint2": " (the default).", + "game.config.saveBtn": "Save configuration", + "game.config.saved": "Configuration saved", + "game.config.moveTrackTitle": "Move tracking to a new folder?", + "game.config.moveTrackConfirm": "Track “{name}” at {path} from now on?\n\nFiles in the old folder are left exactly where they are, but they stop syncing and stop being snapshotted. Existing snapshots are kept and still restore.", + "game.config.moveTrackConfirmBtn": "Move tracking", + "game.config.saveFolderDialog": "Save folder for “{name}”", + "game.config.selectExe": "Select the game executable", + "game.ignore.title": "Files that shouldn't sync", + "game.ignore.desc": "Some games keep device-specific settings in the same folder as the save, and copying those to another machine can break the game there. List them here and they stay put: never sent, never received, never deleted by a sync.", + "game.ignore.patterns1": "One pattern per line, like a ", + "game.ignore.patterns2": " — ", + "game.ignore.patterns3": " by name, ", + "game.ignore.patterns4": " only at the top, ", + "game.ignore.patterns5": " by extension, ", + "game.ignore.patterns6": " for a whole folder, ", + "game.ignore.patterns7": " for an exception. Case doesn't matter. Set the same list on your other devices; each one applies its own.", + "game.ignore.stillBackedUp1": "Snapshots still capture these files", + "game.ignore.stillBackedUp2": ", so a restore brings them back — excluding something stops it travelling, it never stops it being backed up.", + "game.ignore.pick": "Pick from your save folder", + "game.ignore.excludedCount": { + "one": "{n} of {total} file excluded", + "other": "{n} of {total} files excluded" + }, + "game.ignore.truncated": "· first {n} shown", + "game.ignore.reading": "Reading the save folder…", + "game.ignore.empty": "This game's folders are empty, so there is nothing to pick yet.", + "game.ignore.wontSync": "won't sync", + "game.ignore.syncs": "syncs", + "game.ignore.tickHint1": "Ticking a file writes the pattern for you, anchored so it can only ever mean that one file. Unticking a file caught by a wildcard adds a ", + "game.ignore.tickHint2": " exception rather than deleting the wildcard.", + "game.ignore.multiFolder1": "A pattern applies to ", + "game.ignore.multiFolderStrong": "every one of this game's folders", + "game.ignore.multiFolder2": ", so a name that appears in two of them is excluded in both.", + "game.snapshots.named": "the snapshot from {when}", + "game.snapshots.commentPlaceholder": "Snapshot comment (optional)", + "game.snapshots.takeNow": "Snapshot now", + "game.snapshots.created": "Snapshot created", + "game.snapshots.restored": "Snapshot restored", + "game.snapshots.deleted": "Snapshot deleted", + "game.snapshots.pinned": "Pinned — kept through every limit and clean-up", + "game.snapshots.unpinned": "Unpinned — the limits apply to it again", + "game.snapshots.deleteTitle": "Delete snapshot?", + "game.snapshots.deletePinned": " It is pinned, so nothing else would ever have removed it.", + "game.snapshots.deleteConfirm": "Delete {snap}?{pinned} This can't be undone; your current save isn't affected.", + "game.snapshots.deleteHint": "Delete this snapshot", + "game.snapshots.fileRestoreTitle": "Restore file?", + "game.snapshots.fileRestoreConfirm": "Put \"{path}\" back from {snap}, over the file there now? The current file is kept in a snapshot first.", + "game.snapshots.fileRestored": "Restored {path}", + "game.snapshots.restoreFile": "Restore file", + "game.snapshots.restore": "Restore", + "game.snapshots.filesIn": "Files in {snap}", + "game.snapshots.files": "Files", + "game.snapshots.emptyTitle": "No snapshots yet", + "game.snapshots.emptyBody": "Snapshots are created automatically when your save changes.", + "game.snapshots.latest": "Latest", + "game.snapshots.damaged": "Damaged", + "game.snapshots.notePlaceholder": "A note about this snapshot", + "game.snapshots.addNote": "Add a note", + "game.snapshots.editNote": "Edit the note", + "game.snapshots.noteAria": "Note", + "game.snapshots.pinnedTag": "Pinned", + "game.snapshots.pin": "Pin", + "game.snapshots.unpin": "Unpin", + "game.snapshots.pinTitle": "Pin: keep it through every limit and clean-up", + "game.snapshots.unpinTitle": "Unpin: let the snapshot limits apply to it again", + "game.snapshots.compare": "Compare", + "game.snapshots.compareTitle": "Compare with another snapshot", + "game.snapshots.cannotRestore": "This snapshot can't be restored: {problem}", + "game.cloud.title": "Cloud snapshots for {name}", + "game.cloud.sub": "Snapshots backed up to your configured cloud provider.", + "game.cloud.refresh": "Refresh", + "game.cloud.uploadBtn": "Upload local snapshots", + "game.cloud.uploaded": "Uploaded to cloud", + "game.cloud.uploadResult": "Uploaded {uploaded}, skipped {skipped}", + "game.cloud.restoreTitle": "Restore from cloud?", + "game.cloud.restoreConfirm": "Download and restore cloud snapshot {id} over your current save?", + "game.cloud.downloadRestore": "Download & restore", + "game.cloud.restored": "Restored from cloud", + "game.cloud.loading": "Loading cloud snapshots…", + "game.cloud.empty": "No cloud snapshots for this game yet.", + "game.cloud.readyHint": "New snapshots are copied up as they are taken. “Upload local snapshots” sends the ones from before.", + "game.cloud.setupHint1": "Set up a provider in ", + "game.cloud.setupHint2": ", then use “Upload local snapshots”.", + "game.cloud.colBranch": "Branch", + "game.cloud.colDate": "Date", + "game.cloud.colSize": "Size" } diff --git a/cmd/opensave-app/frontend/src/locales/zh-Hans.json b/cmd/opensave-app/frontend/src/locales/zh-Hans.json index dd8033c0..d73c3539 100644 --- a/cmd/opensave-app/frontend/src/locales/zh-Hans.json +++ b/cmd/opensave-app/frontend/src/locales/zh-Hans.json @@ -608,8 +608,253 @@ "app.failedToStart": "OpenSave 启动失败", "app.retrying": "正在重试…", "app.retry": "重试", - "app.detailsSaved": "Details are saved to .opensave\\opensave.log in your user folder.", + "app.detailsSaved": "详细信息已保存到你的用户文件夹中的 .opensave\\opensave.log。", "app.startingOpenSave": "正在启动 OpenSave…", "app.emptiedBody": "{name} 的所有存档文件在此处都被删除了。你的其他设备会保留它们,直到你做出选择。", - "app.choose": "选择" + "app.choose": "选择", + "game.notFound": "找不到该游戏", + "game.tab.snapshots": "快照", + "game.tab.branches": "分支", + "game.tab.cloud": "云备份", + "game.tab.config": "配置", + "game.tab.manage": "管理", + "game.header.back": "返回", + "game.header.addFavourite": "加入收藏", + "game.header.removeFavourite": "从收藏中移除", + "game.header.branch": "分支", + "game.header.syncing": "正在同步 {n}%", + "game.header.inSession": "自 {time} 起游戏中", + "game.header.played": "{when}游玩,累计 {length}", + "game.header.notFoundTitle": "这台电脑上的 Steam 没有它,常见的游戏存放文件夹里也没有它。在“配置”中设置它的启动程序,即可从其他位置启动。", + "game.header.notFound": "未在这台电脑上找到", + "game.header.lastSyncedTitle": "{name}:上次同步于 {when}", + "game.header.neverSyncedTitle": "{name} 从未同步过这个游戏", + "game.header.syncedAgo": "上次同步于 {when}", + "game.header.neverSynced": "从未同步", + "game.header.launch": "启动", + "game.header.syncNow": "立即同步", + "game.header.syncTriggered": "已触发同步", + "game.header.launching": "正在启动…", + "game.header.selectSaveFolder": "选择存档文件夹", + "game.header.browse": "浏览", + "game.header.save": "保存", + "game.header.openFolder": "打开文件夹", + "game.header.openFolderTitle": "在你的文件管理器中显示此文件夹", + "game.header.edit": "编辑", + "game.header.savePathUpdated": "存档路径已更新", + "game.header.deleteEverywhereMsg": "也要把你其他设备上“{name}”的存档文件删掉吗?那边的 {n} 个文件将被删除;每台设备都会先为它们保留一份快照。", + "game.header.deleteEverywhereTitle": "在所有地方删除?", + "game.header.deleteEverywhereAction": "也把它们删掉", + "game.header.deletedAtNextSync": "“{name}”的存档文件将在下次同步时从你的其他设备上删除", + "game.header.puttingBackDevices": "正在放回“{name}”的文件——其中 {n} 个来自你的其他设备", + "game.header.filesBack": "“{name}”的文件已恢复", + "game.header.relocated": "“{name}”现在使用 {path}", + "game.header.relocateDismissed": "“{name}”不再使用 {path}", + "game.header.emptiedFetchingTitle": "正在放回文件。", + "game.header.emptiedFetchingBody": "还有一些文件正从你的其他设备传来;全部到位后,这个游戏会照常同步。", + "game.header.emptiedTitle": "{where} 中的所有存档文件都已在这台设备上被删除。", + "game.header.emptiedBody": "你的其他设备仍有各自的文件;在你做出选择之前,不会同步任何内容。", + "game.header.putBackFromSnapshot": "从 {when} 的快照放回,并带上来自你其他设备的较新文件", + "game.header.putBackFromDevices": "从你的其他设备放回", + "game.header.orDeleteThere": "——或者,如果你是有意为之,也可以把它们从其他设备上删掉;每台设备都会先保留一份快照。", + "game.header.putBackBtn": "放回文件", + "game.header.deleteThereBtn": "也在我的其他设备上删除", + "game.header.elsewhereTitle": "这个游戏不在这台设备上。", + "game.header.elsewhereBody": "它的存档位于 {drive},而这台电脑没有这个盘,因此这里会跳过它,它会在你的其他设备之间继续同步。如果它其实安装在这台电脑上,请用“编辑”把游戏指向它的存档文件夹。", + "game.header.folderMissingTitle": "这个存档文件夹不见了。", + "game.header.folderMissingBody": "它可能已被移动或删除,或位于一个尚未连接的盘上。在它恢复之前,这个游戏不会做任何快照或同步——OpenSave 会在一分钟内重新找到它。如果存档现在位于别处,请用“编辑”把游戏指向新的位置。", + "game.header.relocateTitle": "在 {path} 发现了相同的文件夹。", + "game.header.relocateBody": "这个游戏在这台设备上是存到那里的吗?只有当它装的是你当前的存档、而不是旧副本时才使用它。", + "game.header.relocateUse": "使用这个文件夹", + "game.header.relocateNotThis": "不是这个", + "game.appId.label": "Steam App ID", + "game.appId.placeholder": "例如 1091500", + "game.appId.hint": "游戏 Steam 商店网址中的那串数字。用于启动游戏并获取封面图。", + "game.appId.moreInfo1": "在设置中开启“按 Steam App ID 匹配存档”后,它还能让这个游戏与另一台设备上以不同名称跟踪的副本同步。能推算出来时会自动填写;存档在 ", + "game.appId.moreInfo2": " 下的往往无从推算,所以你可以在这里手动填写。", + "game.appId.checking": "正在向 Steam 查询…", + "game.appId.foundPrefix": "Steam:", + "game.appId.unknown1": "没有 Steam 游戏使用这个 App ID。它是商店页面网址中的数字:", + "game.appId.unknown2": "——而不是其他商店的编号。", + "game.appId.unreachable": "无法连接 Steam 来核对这个数字。如果这个网络屏蔽了 Steam 商店或 CDN,封面图在这里也会加载失败——不过 ID 本身很可能没错。", + "game.locations.title": "存档位置", + "game.locations.hint": "有些游戏把存档分散在多个文件夹里——存档数据在一处,设置或模组在另一处。在这里添加每个额外的文件夹,它就会随主存档一起同步、快照和恢复。", + "game.locations.mainSave": "主存档", + "game.locations.noFolder": "这台设备上没有文件夹——该位置没有被同步", + "game.locations.change": "更改", + "game.locations.chooseFolder": "选择文件夹", + "game.locations.remove": "移除", + "game.locations.namePlaceholder": "文件夹的名称(例如 config)", + "game.locations.addFolder": "+ 添加文件夹", + "game.locations.matchHint1": "在你其他设备上使用相同的", + "game.locations.name": "名称", + "game.locations.matchHint2": "——两侧正是以它来匹配,因为这个文件夹在每台机器上所在的位置不同。在这里移除某个位置绝不会删除它的文件。", + "game.locations.folderFor": "为“{label}”选择文件夹——{game}", + "game.locations.nowCovered": "“{label}”已被覆盖", + "game.locations.removedUndo": "“{name}”文件夹不再被覆盖。它的文件仍留在原处。", + "game.manage.linkedCopies": "关联副本", + "game.manage.linkedDesc": "如果这个游戏在另一台电脑上以不同的名称或盘符被跟踪(例如 Steam 版与便携版),可以把这些副本关联起来,让它们的存档跨设备同步。关联会把另一个已跟踪的游戏合并到这里:它的存档文件留在原处,它的快照则移到这里,放到一个以它命名的分支上。", + "game.manage.unlink": "取消关联", + "game.manage.linkThis": "关联 {name}", + "game.manage.chooseToLink": "在上方选择要关联的游戏", + "game.manage.checkingPeers": "正在检查已配对的设备…", + "game.manage.nothingToLink": "没有可关联的对象。在这台设备上跟踪另一个副本,或配对拥有它的设备并确保其在线——一旦它响应,它的游戏就会出现在这里。", + "game.manage.linkRemoteMsg": "把 {peer} 上的“{name}”关联到“{game}”?这些设备同步时,两者会被视为同一个游戏。任何一台设备上都不会移除任何内容。", + "game.manage.linkLocalMsg": "把“{name}”关联到“{game}”?跨设备同步时,它们会被视为同一个游戏。“{name}”会从这里的信息库中移除——它的存档文件留在原处,它的快照会移到“{game}”名下,放在一个独立的分支上。", + "game.manage.linkTitle": "关联游戏?", + "game.manage.linkConfirm": "关联", + "game.manage.linked": "游戏已关联", + "game.manage.unlinked": "已取消关联", + "game.manage.stopTracking": "停止跟踪", + "game.manage.stopTrackingDesc": "从 OpenSave 中移除“{name}”。磁盘上你的存档文件和现有的快照归档都会保留。", + "game.manage.stopTrackingBtn": "停止跟踪这个游戏", + "game.branches.namePlaceholder": "新分支名称(例如 ng-plus)", + "game.branches.create": "创建分支", + "game.branches.hint": "分支是一条独立的存档线——比如二周目,或一次你想与主线分开的游玩。系统会询问它从什么开始。", + "game.branches.active": "使用中", + "game.branches.snapshotCount": "{n} 个快照", + "game.branches.switchTo": "切换到此", + "game.branches.createdFromCurrent": "已从你当前的存档创建分支", + "game.branches.createdEmpty": "已创建空分支", + "game.branches.switchedTo": "已切换到“{name}”", + "game.branches.deleteConfirm": "删除分支“{name}”及其所有快照?你当前的存档和其他分支不受影响。", + "game.branches.deleteTitle": "删除分支?", + "game.branches.deleted": "已删除分支“{name}”", + "game.branches.footnote": "切换分支时会先对你当前的存档做快照,再恢复另一个分支的最新状态。刚创建的分支还没有自己的状态,因此它从你存档文件夹里现有的内容开始——两者从你在它上面拍的第一个快照起分道扬镳。", + "game.newBranch.title": "新分支——{name}", + "game.newBranch.question": "它应该从什么开始?", + "game.newBranch.copyTitle": "我当前存档的副本", + "game.newBranch.copyDesc": "“{name}”会从你当前所在的位置开始。两者从你在它上面拍的第一个快照起才会分开——因此想在尝试新东西的同时不丢进度,就选它。", + "game.newBranch.freshTitle": "全新开始——没有存档", + "game.newBranch.freshDesc1": "“{name}”从空无一物开始,适合从零开始的新一周目。切换到它会清空你的存档文件夹——你当前的存档会先做快照,并在你切换回", + "game.newBranch.freshDesc2": "时立刻恢复。", + "game.newBranch.hint": "无论选哪种都不会丢失任何东西。在分支之间切换时,会先对存档文件夹里的内容做快照;如果快照无法完成,则会拒绝做任何更改。", + "game.compare.title": "比较快照", + "game.compare.from": "从", + "game.compare.to": "到", + "game.compare.failed": "无法比较它们:{error}", + "game.compare.comparing": "正在比较…", + "game.compare.same": "是同一个快照。", + "game.compare.noDiff": "没有差异:两者都有相同的 {n} 个文件。", + "game.compare.count": "{n} 个文件有差异", + "game.compare.countSame": ",{n} 个相同", + "game.compare.changed": "已修改", + "game.compare.added": "新增", + "game.compare.removed": "已删除", + "game.link.findPlaceholder": "查找游戏…", + "game.link.findAria": "查找要关联的游戏", + "game.link.onThisDevice": "在这台设备上", + "game.link.onThisDeviceNote": "它的条目在这里会合并进这个游戏", + "game.link.onOtherDevices": "在你的其他设备上", + "game.link.onOtherDevicesNote": "任何一台设备上都不会移除任何内容", + "game.link.onPeerTitle": "{peer} 上的 {name}", + "game.link.localTitle": "{name} — {path}", + "game.link.noMatches": "没有游戏匹配“{query}”。", + "game.config.title": "启动与同步配置", + "game.config.saveFolder": "存档文件夹", + "game.config.saveFolderPlaceholder": "存放此游戏存档的文件夹", + "game.config.saveFolderHint": "OpenSave 视为该游戏存档的文件夹。", + "game.config.saveFolderMore1": "文件按它们在这个文件夹", + "game.config.saveFolderMoreEm": "内部", + "game.config.saveFolderMore2": "的位置同步,因此每台设备可以指向不同的路径,最终仍会得到相同的文件——当游戏把存档放在以你的 Steam 或 Epic ID 命名、且每台机器都不相同的分账号文件夹里时,这一点很有用。让每台设备指向它自己的那个文件夹,存档就会落到这边的游戏查找存档的位置。", + "game.config.saveFolderNotSaved": "尚未保存。旧文件夹会保留其中的文件,但不再同步,也不再拍快照。", + "game.config.appIdError": "Steam App ID 只能是数字——即商店页面网址里的那串数字。", + "game.config.exePath": "可执行文件路径", + "game.config.exePathPlaceholder": "浏览选择游戏的 .exe 文件", + "game.config.exePathHint": "启动时会运行它,即使是 Steam 游戏也一样。留空则通过 Steam 启动。", + "game.config.coverUrl": "自定义封面图 URL", + "game.config.coverUrlPlaceholder": "https://…(模拟器游戏很适用)", + "game.config.coverUrlHint": "留空则自动使用 App ID 对应的 Steam 封面。模拟器游戏可以粘贴任意图片 URL。", + "game.config.autoSync": "检测到更改时自动同步存档", + "game.config.maxSnapshots": "自动快照上限", + "game.config.maxHint1": "每个分支最多保留", + "game.config.maxHintEm": "自动", + "game.config.maxHint2": "快照(0 = 不限制)。最早的快照会先被清理。", + "game.config.maxManualSnapshots": "手动快照上限", + "game.config.manualHint1": "你自己手动拍的快照有独立的额度,因此频繁自动存档的游戏不会把它们挤掉。", + "game.config.manualHintStrong": "0 = 永久保留", + "game.config.manualHint2": "(默认值)。", + "game.config.saveBtn": "保存配置", + "game.config.saved": "配置已保存", + "game.config.moveTrackTitle": "将跟踪移动到新文件夹?", + "game.config.moveTrackConfirm": "今后改为跟踪“{name}”位于 {path} 的文件夹吗?\n\n旧文件夹中的文件会原样保留,但不再同步,也不再拍快照。已有快照会保留,仍然可以恢复。", + "game.config.moveTrackConfirmBtn": "移动跟踪", + "game.config.saveFolderDialog": "“{name}”的存档文件夹", + "game.config.selectExe": "选择游戏的可执行文件", + "game.ignore.title": "不应同步的文件", + "game.ignore.desc": "有些游戏会把与设备相关的设置和存档放在同一个文件夹里,把它们复制到另一台机器上可能会让游戏在那边出问题。把它们列在这里,它们就会原地不动:不会被发送、不会被接收、也不会被同步删除。", + "game.ignore.patterns1": "每行一个模式,类似 ", + "game.ignore.patterns2": "——", + "game.ignore.patterns3": "按文件名,", + "game.ignore.patterns4": "只匹配顶层,", + "game.ignore.patterns5": "按扩展名,", + "game.ignore.patterns6": "代表整个文件夹,", + "game.ignore.patterns7": "代表例外。大小写不敏感。在你的其他设备上设置相同的列表;每台设备应用自己的那份。", + "game.ignore.stillBackedUp1": "快照仍会捕获这些文件", + "game.ignore.stillBackedUp2": ",所以恢复时它们会被带回来——排除某个文件只是让它不再传输,绝不会让它不被备份。", + "game.ignore.pick": "从存档文件夹中挑选", + "game.ignore.excludedCount": "已排除 {total} 个文件中的 {n} 个", + "game.ignore.truncated": "· 仅显示前 {n} 个", + "game.ignore.reading": "正在读取存档文件夹…", + "game.ignore.empty": "此游戏的文件夹是空的,暂时没有可挑选的文件。", + "game.ignore.wontSync": "不同步", + "game.ignore.syncs": "会同步", + "game.ignore.tickHint1": "勾选一个文件会自动为你写下对应的模式,并且做了锚定,因此它只会指向那一个文件。取消勾选一个被通配符匹配到的文件时,会添加一个 ", + "game.ignore.tickHint2": " 例外,而不是删除通配符。", + "game.ignore.multiFolder1": "一个模式会作用于", + "game.ignore.multiFolderStrong": "此游戏的每一个文件夹", + "game.ignore.multiFolder2": ",所以出现在其中两个文件夹里的同名文件会在两处都被排除。", + "game.snapshots.named": "{when} 的快照", + "game.snapshots.commentPlaceholder": "快照备注(可选)", + "game.snapshots.takeNow": "立即快照", + "game.snapshots.created": "快照已创建", + "game.snapshots.restored": "快照已恢复", + "game.snapshots.deleted": "快照已删除", + "game.snapshots.pinned": "已固定——它会一直保留,不受任何上限和清理的影响", + "game.snapshots.unpinned": "已取消固定——快照上限重新对它生效", + "game.snapshots.deleteTitle": "删除快照?", + "game.snapshots.deletePinned": " 它已被固定,其他任何规则都不会移除它。", + "game.snapshots.deleteConfirm": "删除{snap}?{pinned}此操作无法撤销;你当前的存档不受影响。", + "game.snapshots.deleteHint": "删除这个快照", + "game.snapshots.fileRestoreTitle": "恢复文件?", + "game.snapshots.fileRestoreConfirm": "把“{path}”从{snap}恢复回去,覆盖现在的那份吗?当前文件会先存入一份快照。", + "game.snapshots.fileRestored": "已恢复 {path}", + "game.snapshots.restoreFile": "恢复文件", + "game.snapshots.restore": "恢复", + "game.snapshots.filesIn": "{snap}中的文件", + "game.snapshots.files": "文件", + "game.snapshots.emptyTitle": "还没有快照", + "game.snapshots.emptyBody": "存档发生变化时会自动创建快照。", + "game.snapshots.latest": "最新", + "game.snapshots.damaged": "已损坏", + "game.snapshots.notePlaceholder": "关于这个快照的备注", + "game.snapshots.addNote": "添加备注", + "game.snapshots.editNote": "编辑备注", + "game.snapshots.noteAria": "备注", + "game.snapshots.pinnedTag": "已固定", + "game.snapshots.pin": "固定", + "game.snapshots.unpin": "取消固定", + "game.snapshots.pinTitle": "固定:让它不受任何上限和清理的影响", + "game.snapshots.unpinTitle": "取消固定:让快照上限重新对它生效", + "game.snapshots.compare": "对比", + "game.snapshots.compareTitle": "与其他快照对比", + "game.snapshots.cannotRestore": "此快照无法恢复:{problem}", + "game.cloud.title": "{name} 的云快照", + "game.cloud.sub": "已备份到你配置的云服务商的快照。", + "game.cloud.refresh": "刷新", + "game.cloud.uploadBtn": "上传本地快照", + "game.cloud.uploaded": "已上传到云", + "game.cloud.uploadResult": "已上传 {uploaded} 个,跳过 {skipped} 个", + "game.cloud.restoreTitle": "从云端恢复?", + "game.cloud.restoreConfirm": "下载云端快照 {id} 并覆盖你当前的存档吗?", + "game.cloud.downloadRestore": "下载并恢复", + "game.cloud.restored": "已从云端恢复", + "game.cloud.loading": "正在加载云快照…", + "game.cloud.empty": "此游戏还没有云快照。", + "game.cloud.readyHint": "新快照在拍摄时会自动上传。“上传本地快照”会发送之前那些。", + "game.cloud.setupHint1": "先在", + "game.cloud.setupHint2": "中设置服务商,然后使用“上传本地快照”。", + "game.cloud.colBranch": "分支", + "game.cloud.colDate": "日期", + "game.cloud.colSize": "大小" } diff --git a/cmd/opensave-app/frontend/src/locales/zh-Hant.json b/cmd/opensave-app/frontend/src/locales/zh-Hant.json index f560fa59..3c0f7b66 100644 --- a/cmd/opensave-app/frontend/src/locales/zh-Hant.json +++ b/cmd/opensave-app/frontend/src/locales/zh-Hant.json @@ -608,8 +608,253 @@ "app.failedToStart": "OpenSave 啟動失敗", "app.retrying": "正在重試…", "app.retry": "重試", - "app.detailsSaved": "Details are saved to .opensave\\opensave.log in your user folder.", + "app.detailsSaved": "詳細資訊已儲存到你的使用者資料夾中的 .opensave\\opensave.log。", "app.startingOpenSave": "正在啟動 OpenSave…", "app.emptiedBody": "{name} 的所有存檔檔案在此處都被刪除了。你的其他裝置會保留它們,直到你做出選擇。", - "app.choose": "選擇" + "app.choose": "選擇", + "game.notFound": "找不到該遊戲", + "game.tab.snapshots": "快照", + "game.tab.branches": "分支", + "game.tab.cloud": "雲備份", + "game.tab.config": "配置", + "game.tab.manage": "管理", + "game.header.back": "返回", + "game.header.addFavourite": "加入收藏", + "game.header.removeFavourite": "從收藏中移除", + "game.header.branch": "分支", + "game.header.syncing": "正在同步 {n}%", + "game.header.inSession": "自 {time} 起遊戲中", + "game.header.played": "{when}遊玩,累計 {length}", + "game.header.notFoundTitle": "這臺電腦上的 Steam 沒有它,常見的遊戲存放資料夾裡也沒有它。在“配置”中設定它的啟動程式,即可從其他位置啟動。", + "game.header.notFound": "未在這臺電腦上找到", + "game.header.lastSyncedTitle": "{name}:上次同步於 {when}", + "game.header.neverSyncedTitle": "{name} 從未同步過這個遊戲", + "game.header.syncedAgo": "上次同步於 {when}", + "game.header.neverSynced": "從未同步", + "game.header.launch": "啟動", + "game.header.syncNow": "立即同步", + "game.header.syncTriggered": "已觸發同步", + "game.header.launching": "正在啟動…", + "game.header.selectSaveFolder": "選擇存檔資料夾", + "game.header.browse": "瀏覽", + "game.header.save": "儲存", + "game.header.openFolder": "開啟資料夾", + "game.header.openFolderTitle": "在你的檔案管理器中顯示此資料夾", + "game.header.edit": "編輯", + "game.header.savePathUpdated": "存檔路徑已更新", + "game.header.deleteEverywhereMsg": "也要把你其他裝置上“{name}”的存檔檔案刪掉嗎?那邊的 {n} 個檔案將被刪除;每臺裝置都會先為它們保留一份快照。", + "game.header.deleteEverywhereTitle": "在所有地方刪除?", + "game.header.deleteEverywhereAction": "也把它們刪掉", + "game.header.deletedAtNextSync": "“{name}”的存檔檔案將在下次同步時從你的其他裝置上刪除", + "game.header.puttingBackDevices": "正在放回“{name}”的檔案——其中 {n} 個來自你的其他裝置", + "game.header.filesBack": "“{name}”的檔案已恢復", + "game.header.relocated": "“{name}”現在使用 {path}", + "game.header.relocateDismissed": "“{name}”不再使用 {path}", + "game.header.emptiedFetchingTitle": "正在放回檔案。", + "game.header.emptiedFetchingBody": "還有一些檔案正從你的其他裝置傳來;全部到位後,這個遊戲會照常同步。", + "game.header.emptiedTitle": "{where} 中的所有存檔檔案都已在這臺裝置上被刪除。", + "game.header.emptiedBody": "你的其他裝置仍有各自的檔案;在你做出選擇之前,不會同步任何內容。", + "game.header.putBackFromSnapshot": "從 {when} 的快照放回,並帶上來自你其他裝置的較新檔案", + "game.header.putBackFromDevices": "從你的其他裝置放回", + "game.header.orDeleteThere": "——或者,如果你是有意為之,也可以把它們從其他裝置上刪掉;每臺裝置都會先保留一份快照。", + "game.header.putBackBtn": "放回檔案", + "game.header.deleteThereBtn": "也在我的其他裝置上刪除", + "game.header.elsewhereTitle": "這個遊戲不在這臺裝置上。", + "game.header.elsewhereBody": "它的存檔位於 {drive},而這臺電腦沒有這個盤,因此這裡會跳過它,它會在你的其他裝置之間繼續同步。如果它其實安裝在這臺電腦上,請用“編輯”把遊戲指向它的存檔資料夾。", + "game.header.folderMissingTitle": "這個存檔資料夾不見了。", + "game.header.folderMissingBody": "它可能已被移動或刪除,或位於一個尚未連線的盤上。在它恢復之前,這個遊戲不會做任何快照或同步——OpenSave 會在一分鐘內重新找到它。如果存檔現在位於別處,請用“編輯”把遊戲指向新的位置。", + "game.header.relocateTitle": "在 {path} 發現了相同的資料夾。", + "game.header.relocateBody": "這個遊戲在這臺裝置上是存到那裡的嗎?只有當它裝的是你當前的存檔、而不是舊副本時才使用它。", + "game.header.relocateUse": "使用這個資料夾", + "game.header.relocateNotThis": "不是這個", + "game.appId.label": "Steam App ID", + "game.appId.placeholder": "例如 1091500", + "game.appId.hint": "遊戲 Steam 商店網址中的那串數字。用於啟動遊戲並獲取封面圖。", + "game.appId.moreInfo1": "在設定中開啟“按 Steam App ID 匹配存檔”後,它還能讓這個遊戲與另一臺裝置上以不同名稱追蹤的副本同步。能推算出來時會自動填寫;存檔在 ", + "game.appId.moreInfo2": " 下的往往無從推算,所以你可以在這裡手動填寫。", + "game.appId.checking": "正在向 Steam 查詢…", + "game.appId.foundPrefix": "Steam:", + "game.appId.unknown1": "沒有 Steam 遊戲使用這個 App ID。它是商店頁面網址中的數字:", + "game.appId.unknown2": "——而不是其他商店的編號。", + "game.appId.unreachable": "無法連線 Steam 來核對這個數字。如果這個網路遮蔽了 Steam 商店或 CDN,封面圖在這裡也會載入失敗——不過 ID 本身很可能沒錯。", + "game.locations.title": "存檔位置", + "game.locations.hint": "有些遊戲把存檔分散在多個資料夾裡——存檔資料在一處,設定或模組在另一處。在這裡新增每個額外的資料夾,它就會隨主存檔一起同步、快照和恢復。", + "game.locations.mainSave": "主存檔", + "game.locations.noFolder": "這臺裝置上沒有資料夾——該位置沒有被同步", + "game.locations.change": "更改", + "game.locations.chooseFolder": "選擇資料夾", + "game.locations.remove": "移除", + "game.locations.namePlaceholder": "資料夾的名稱(例如 config)", + "game.locations.addFolder": "+ 新增資料夾", + "game.locations.matchHint1": "在你其他裝置上使用相同的", + "game.locations.name": "名稱", + "game.locations.matchHint2": "——兩側正是以它來匹配,因為這個資料夾在每臺機器上所在的位置不同。在這裡移除某個位置絕不會刪除它的檔案。", + "game.locations.folderFor": "為“{label}”選擇資料夾——{game}", + "game.locations.nowCovered": "“{label}”已被覆蓋", + "game.locations.removedUndo": "“{name}”資料夾不再被覆蓋。它的檔案仍留在原處。", + "game.manage.linkedCopies": "關聯副本", + "game.manage.linkedDesc": "如果這個遊戲在另一臺電腦上以不同的名稱或磁碟機代號被追蹤(例如 Steam 版與便攜版),可以把這些副本關聯起來,讓它們的存檔跨裝置同步。關聯會把另一個已追蹤的遊戲合併到這裡:它的存檔檔案留在原處,它的快照則移到這裡,放到一個以它命名的分支上。", + "game.manage.unlink": "取消關聯", + "game.manage.linkThis": "關聯 {name}", + "game.manage.chooseToLink": "在上方選擇要關聯的遊戲", + "game.manage.checkingPeers": "正在檢查已配對的裝置…", + "game.manage.nothingToLink": "沒有可關聯的物件。在這臺裝置上追蹤另一個副本,或配對擁有它的裝置並確保其線上——一旦它響應,它的遊戲就會出現在這裡。", + "game.manage.linkRemoteMsg": "把 {peer} 上的“{name}”關聯到“{game}”?這些裝置同步時,兩者會被視為同一個遊戲。任何一臺裝置上都不會移除任何內容。", + "game.manage.linkLocalMsg": "把“{name}”關聯到“{game}”?跨裝置同步時,它們會被視為同一個遊戲。“{name}”會從這裡的資訊庫中移除——它的存檔檔案留在原處,它的快照會移到“{game}”名下,放在一個獨立的分支上。", + "game.manage.linkTitle": "關聯遊戲?", + "game.manage.linkConfirm": "關聯", + "game.manage.linked": "遊戲已關聯", + "game.manage.unlinked": "已取消關聯", + "game.manage.stopTracking": "停止追蹤", + "game.manage.stopTrackingDesc": "從 OpenSave 中移除“{name}”。磁碟上你的存檔檔案和現有的快照歸檔都會保留。", + "game.manage.stopTrackingBtn": "停止追蹤這個遊戲", + "game.branches.namePlaceholder": "新分支名稱(例如 ng-plus)", + "game.branches.create": "建立分支", + "game.branches.hint": "分支是一條獨立的存檔線——比如二週目,或一次你想與主線分開的遊玩。系統會詢問它從什麼開始。", + "game.branches.active": "使用中", + "game.branches.snapshotCount": "{n} 個快照", + "game.branches.switchTo": "切換到此", + "game.branches.createdFromCurrent": "已從你當前的存檔建立分支", + "game.branches.createdEmpty": "已建立空分支", + "game.branches.switchedTo": "已切換到“{name}”", + "game.branches.deleteConfirm": "刪除分支“{name}”及其所有快照?你當前的存檔和其他分支不受影響。", + "game.branches.deleteTitle": "刪除分支?", + "game.branches.deleted": "已刪除分支“{name}”", + "game.branches.footnote": "切換分支時會先對你當前的存檔做快照,再恢復另一個分支的最新狀態。剛建立的分支還沒有自己的狀態,因此它從你存檔資料夾裡現有的內容開始——兩者從你在它上面拍的第一個快照起分道揚鑣。", + "game.newBranch.title": "新分支——{name}", + "game.newBranch.question": "它應該從什麼開始?", + "game.newBranch.copyTitle": "我當前存檔的副本", + "game.newBranch.copyDesc": "“{name}”會從你當前所在的位置開始。兩者從你在它上面拍的第一個快照起才會分開——因此想在嘗試新東西的同時不丟進度,就選它。", + "game.newBranch.freshTitle": "全新開始——沒有存檔", + "game.newBranch.freshDesc1": "“{name}”從空無一物開始,適合從零開始的新一週目。切換到它會清空你的存檔資料夾——你當前的存檔會先做快照,並在你切換回", + "game.newBranch.freshDesc2": "時立刻恢復。", + "game.newBranch.hint": "無論選哪種都不會丟失任何東西。在分支之間切換時,會先對存檔資料夾裡的內容做快照;如果快照無法完成,則會拒絕做任何更改。", + "game.compare.title": "比較快照", + "game.compare.from": "從", + "game.compare.to": "到", + "game.compare.failed": "無法比較它們:{error}", + "game.compare.comparing": "正在比較…", + "game.compare.same": "是同一個快照。", + "game.compare.noDiff": "沒有差異:兩者都有相同的 {n} 個檔案。", + "game.compare.count": "{n} 個檔案有差異", + "game.compare.countSame": ",{n} 個相同", + "game.compare.changed": "已修改", + "game.compare.added": "新增", + "game.compare.removed": "已刪除", + "game.link.findPlaceholder": "查詢遊戲…", + "game.link.findAria": "查詢要關聯的遊戲", + "game.link.onThisDevice": "在這臺裝置上", + "game.link.onThisDeviceNote": "它的條目在這裡會合併進這個遊戲", + "game.link.onOtherDevices": "在你的其他裝置上", + "game.link.onOtherDevicesNote": "任何一臺裝置上都不會移除任何內容", + "game.link.onPeerTitle": "{peer} 上的 {name}", + "game.link.localTitle": "{name} — {path}", + "game.link.noMatches": "沒有遊戲匹配“{query}”。", + "game.config.title": "啟動與同步配置", + "game.config.saveFolder": "存檔資料夾", + "game.config.saveFolderPlaceholder": "存放此遊戲存檔的資料夾", + "game.config.saveFolderHint": "OpenSave 視為該遊戲存檔的資料夾。", + "game.config.saveFolderMore1": "檔案按它們在這個資料夾", + "game.config.saveFolderMoreEm": "內部", + "game.config.saveFolderMore2": "的位置同步,因此每臺裝置可以指向不同的路徑,最終仍會得到相同的檔案——當遊戲把存檔放在以你的 Steam 或 Epic ID 命名、且每臺機器都不相同的分帳號資料夾裡時,這一點很有用。讓每臺裝置指向它自己的那個資料夾,存檔就會落到這邊的遊戲查詢存檔的位置。", + "game.config.saveFolderNotSaved": "尚未儲存。舊資料夾會保留其中的檔案,但不再同步,也不再拍快照。", + "game.config.appIdError": "Steam App ID 只能是數字——即商店頁面網址裡的那串數字。", + "game.config.exePath": "可執行檔案路徑", + "game.config.exePathPlaceholder": "瀏覽選擇遊戲的 .exe 檔案", + "game.config.exePathHint": "啟動時會執行它,即使是 Steam 遊戲也一樣。留空則透過 Steam 啟動。", + "game.config.coverUrl": "自定義封面圖 URL", + "game.config.coverUrlPlaceholder": "https://…(模擬器遊戲很適用)", + "game.config.coverUrlHint": "留空則自動使用 App ID 對應的 Steam 封面。模擬器遊戲可以貼上任意圖片 URL。", + "game.config.autoSync": "檢測到更改時自動同步存檔", + "game.config.maxSnapshots": "自動快照上限", + "game.config.maxHint1": "每個分支最多保留", + "game.config.maxHintEm": "自動", + "game.config.maxHint2": "快照(0 = 不限制)。最早的快照會先被清理。", + "game.config.maxManualSnapshots": "手動快照上限", + "game.config.manualHint1": "你自己手動拍的快照有獨立的額度,因此頻繁自動存檔的遊戲不會把它們擠掉。", + "game.config.manualHintStrong": "0 = 永久保留", + "game.config.manualHint2": "(預設值)。", + "game.config.saveBtn": "儲存配置", + "game.config.saved": "配置已儲存", + "game.config.moveTrackTitle": "將追蹤移動到新資料夾?", + "game.config.moveTrackConfirm": "今後改為追蹤“{name}”位於 {path} 的資料夾嗎?\n\n舊資料夾中的檔案會原樣保留,但不再同步,也不再拍快照。已有快照會保留,仍然可以恢復。", + "game.config.moveTrackConfirmBtn": "移動追蹤", + "game.config.saveFolderDialog": "“{name}”的存檔資料夾", + "game.config.selectExe": "選擇遊戲的可執行檔案", + "game.ignore.title": "不應同步的檔案", + "game.ignore.desc": "有些遊戲會把與裝置相關的設定和存檔放在同一個資料夾裡,把它們複製到另一臺機器上可能會讓遊戲在那邊出問題。把它們列在這裡,它們就會原地不動:不會被髮送、不會被接收、也不會被同步刪除。", + "game.ignore.patterns1": "每行一個模式,類似 ", + "game.ignore.patterns2": "——", + "game.ignore.patterns3": "按檔名,", + "game.ignore.patterns4": "只匹配頂層,", + "game.ignore.patterns5": "按副檔名,", + "game.ignore.patterns6": "代表整個資料夾,", + "game.ignore.patterns7": "代表例外。大小寫不敏感。在你的其他裝置上設定相同的列表;每臺裝置應用自己的那份。", + "game.ignore.stillBackedUp1": "快照仍會捕獲這些檔案", + "game.ignore.stillBackedUp2": ",所以恢復時它們會被帶回來——排除某個檔案只是讓它不再傳輸,絕不會讓它不被備份。", + "game.ignore.pick": "從存檔資料夾中挑選", + "game.ignore.excludedCount": "已排除 {total} 個檔案中的 {n} 個", + "game.ignore.truncated": "· 僅顯示前 {n} 個", + "game.ignore.reading": "正在讀取存檔資料夾…", + "game.ignore.empty": "此遊戲的資料夾是空的,暫時沒有可挑選的檔案。", + "game.ignore.wontSync": "不同步", + "game.ignore.syncs": "會同步", + "game.ignore.tickHint1": "勾選一個檔案會自動為你寫下對應的模式,並且做了錨定,因此它只會指向那一個檔案。取消勾選一個被萬用字元匹配到的檔案時,會新增一個 ", + "game.ignore.tickHint2": " 例外,而不是刪除萬用字元。", + "game.ignore.multiFolder1": "一個模式會作用於", + "game.ignore.multiFolderStrong": "此遊戲的每一個資料夾", + "game.ignore.multiFolder2": ",所以出現在其中兩個資料夾裡的同名檔案會在兩處都被排除。", + "game.snapshots.named": "{when} 的快照", + "game.snapshots.commentPlaceholder": "快照備註(可選)", + "game.snapshots.takeNow": "立即快照", + "game.snapshots.created": "快照已建立", + "game.snapshots.restored": "快照已恢復", + "game.snapshots.deleted": "快照已刪除", + "game.snapshots.pinned": "已固定——它會一直保留,不受任何上限和清理的影響", + "game.snapshots.unpinned": "已取消固定——快照上限重新對它生效", + "game.snapshots.deleteTitle": "刪除快照?", + "game.snapshots.deletePinned": " 它已被固定,其他任何規則都不會移除它。", + "game.snapshots.deleteConfirm": "刪除{snap}?{pinned}此操作無法撤銷;你當前的存檔不受影響。", + "game.snapshots.deleteHint": "刪除這個快照", + "game.snapshots.fileRestoreTitle": "恢復檔案?", + "game.snapshots.fileRestoreConfirm": "把“{path}”從{snap}恢復回去,覆蓋現在的那份嗎?當前檔案會先存入一份快照。", + "game.snapshots.fileRestored": "已恢復 {path}", + "game.snapshots.restoreFile": "恢復檔案", + "game.snapshots.restore": "恢復", + "game.snapshots.filesIn": "{snap}中的檔案", + "game.snapshots.files": "檔案", + "game.snapshots.emptyTitle": "還沒有快照", + "game.snapshots.emptyBody": "存檔發生變化時會自動建立快照。", + "game.snapshots.latest": "最新", + "game.snapshots.damaged": "已損壞", + "game.snapshots.notePlaceholder": "關於這個快照的備註", + "game.snapshots.addNote": "新增備註", + "game.snapshots.editNote": "編輯備註", + "game.snapshots.noteAria": "備註", + "game.snapshots.pinnedTag": "已固定", + "game.snapshots.pin": "固定", + "game.snapshots.unpin": "取消固定", + "game.snapshots.pinTitle": "固定:讓它不受任何上限和清理的影響", + "game.snapshots.unpinTitle": "取消固定:讓快照上限重新對它生效", + "game.snapshots.compare": "對比", + "game.snapshots.compareTitle": "與其他快照對比", + "game.snapshots.cannotRestore": "此快照無法恢復:{problem}", + "game.cloud.title": "{name} 的雲快照", + "game.cloud.sub": "已備份到你配置的雲服務商的快照。", + "game.cloud.refresh": "重新整理", + "game.cloud.uploadBtn": "上傳本地快照", + "game.cloud.uploaded": "已上傳到雲", + "game.cloud.uploadResult": "已上傳 {uploaded} 個,跳過 {skipped} 個", + "game.cloud.restoreTitle": "從雲端恢復?", + "game.cloud.restoreConfirm": "下載雲端快照 {id} 並覆蓋你當前的存檔嗎?", + "game.cloud.downloadRestore": "下載並恢復", + "game.cloud.restored": "已從雲端恢復", + "game.cloud.loading": "正在載入雲快照…", + "game.cloud.empty": "此遊戲還沒有云快照。", + "game.cloud.readyHint": "新快照在拍攝時會自動上傳。“上傳本地快照”會傳送之前那些。", + "game.cloud.setupHint1": "先在", + "game.cloud.setupHint2": "中設定服務商,然後使用“上傳本地快照”。", + "game.cloud.colBranch": "分支", + "game.cloud.colDate": "日期", + "game.cloud.colSize": "大小" } diff --git a/cmd/opensave-app/frontend/src/views/GameDetail.svelte b/cmd/opensave-app/frontend/src/views/GameDetail.svelte index 7d01cb55..32ec00ef 100644 --- a/cmd/opensave-app/frontend/src/views/GameDetail.svelte +++ b/cmd/opensave-app/frontend/src/views/GameDetail.svelte @@ -1,4 +1,5 @@ {#if !game} -

Game not found

+

{$i18n('game.notFound')}

{:else} {#key params.gameId}
{#each tabs as t (t.id)} - + {/each}
diff --git a/cmd/opensave-app/frontend/src/views/game/AppIdField.svelte b/cmd/opensave-app/frontend/src/views/game/AppIdField.svelte index 22c61450..6eb9481f 100644 --- a/cmd/opensave-app/frontend/src/views/game/AppIdField.svelte +++ b/cmd/opensave-app/frontend/src/views/game/AppIdField.svelte @@ -7,6 +7,7 @@ // how "I added the app ID but it doesn't do anything" gets asked. import { onDestroy } from 'svelte'; import { api } from '../../lib/api.js'; + import { t } from '../../lib/i18n.js'; import MoreInfo from '../../components/ui/MoreInfo.svelte'; import CircleCheck from 'lucide-svelte/icons/circle-check'; @@ -55,32 +56,27 @@
- - + + - The number in the game's Steam store URL. Used to launch it and fetch its cover art. + {$t('game.appId.hint')} - With “Match games by Steam App ID” turned on in Settings, it also lets this game sync - with a copy tracked under a different name on another device. Filled in automatically - when it can be worked out; a save under AppData often has nothing to work - it out from, so you can set it here. + {$t('game.appId.moreInfo1')}AppData{$t('game.appId.moreInfo2')} {#if error}{error}{/if} {#if check?.state === 'checking'} - Checking with Steam… + {$t('game.appId.checking')} {:else if check?.state === 'found'} - Steam: {check.name} + {$t('game.appId.foundPrefix')} {check.name} {:else if check?.state === 'unknown'} - No Steam game has this App ID. It's the number in the store page address — - store.steampowered.com/app/1091500/… — not the one - from another store. + {$t('game.appId.unknown1')} + store.steampowered.com/app/1091500/…{$t('game.appId.unknown2')} {:else if check?.state === 'unreachable'} - Couldn't reach Steam to check this number. If Steam's store or CDN is blocked on - this network, cover art won't load here either — the ID itself may well be right. + {$t('game.appId.unreachable')} {/if}
diff --git a/cmd/opensave-app/frontend/src/views/game/BranchesTab.svelte b/cmd/opensave-app/frontend/src/views/game/BranchesTab.svelte index 05319651..ac538420 100644 --- a/cmd/opensave-app/frontend/src/views/game/BranchesTab.svelte +++ b/cmd/opensave-app/frontend/src/views/game/BranchesTab.svelte @@ -3,8 +3,8 @@ // a run kept apart from the main one. import { askConfirm } from '../../lib/stores.js'; import { api } from '../../lib/api.js'; - import { plural } from '../../lib/format.js'; import NewBranchDialog from './NewBranchDialog.svelte'; + import { t } from '../../lib/i18n.js'; import Plus from 'lucide-svelte/icons/plus'; export let game; @@ -25,31 +25,30 @@ } const createBranch = (copyCurrentSave) => { dialogOpen = false; - return run(copyCurrentSave ? 'Branch created from your current save' : 'Empty branch created', async () => { + return run(copyCurrentSave ? $t('game.branches.createdFromCurrent') : $t('game.branches.createdEmpty'), async () => { await api.post(`/api/games/${game.id}/branch`, { name: newBranch, copyCurrentSave }); newBranch = ''; }); }; const switchBranch = (name) => - run(`Switched to "${name}"`, () => api.post(`/api/games/${game.id}/branch/switch`, { name })); + run($t('game.branches.switchedTo', { name }), () => api.post(`/api/games/${game.id}/branch/switch`, { name })); async function deleteBranch(name) { - if (!(await askConfirm(`Delete branch "${name}" and all its snapshots? Your current save and other branches aren't affected.`, { title: 'Delete branch?', confirmText: 'Delete', danger: true }))) return; - run(`Deleted branch "${name}"`, () => api.del(`/api/games/${game.id}/branch/${encodeURIComponent(name)}`)); + if (!(await askConfirm($t('game.branches.deleteConfirm', { name }), { title: $t('game.branches.deleteTitle'), confirmText: $t('common.delete'), danger: true }))) return; + run($t('game.branches.deleted', { name }), () => api.del(`/api/games/${game.id}/branch/${encodeURIComponent(name)}`)); }
e.key === 'Enter' && openDialog()} /> - +
- A branch is a separate line of saves — a second playthrough, or a run you want to keep - apart from your main one. You'll be asked what it starts from. + {$t('game.branches.hint')}
@@ -58,18 +57,18 @@
{branch.name} - {#if branch.name === game.activeBranch}active{/if} + {#if branch.name === game.activeBranch}{$t('game.branches.active')}{/if}
-
{plural(branch.snapshots?.length ?? 0, 'snapshot')}
+
{$t('game.branches.snapshotCount', { n: branch.snapshots?.length ?? 0 })}
{#if branch.name !== game.activeBranch}
{#if branch.name !== 'main'} {/if}
@@ -78,9 +77,7 @@ {/each}

- Switching branches snapshots your current save first, then restores the other branch's latest - state. A branch you just created has no state of its own yet, so it starts from whatever is in - your save folder now — the two diverge from the first snapshot you take on it. + {$t('game.branches.footnote')}

{#if dialogOpen} diff --git a/cmd/opensave-app/frontend/src/views/game/CloudTab.svelte b/cmd/opensave-app/frontend/src/views/game/CloudTab.svelte index 129cb804..5804158d 100644 --- a/cmd/opensave-app/frontend/src/views/game/CloudTab.svelte +++ b/cmd/opensave-app/frontend/src/views/game/CloudTab.svelte @@ -4,6 +4,7 @@ import { navigate, toast, askConfirm, settings } from '../../lib/stores.js'; import { api } from '../../lib/api.js'; import { fmtSize } from '../../lib/format.js'; + import { t } from '../../lib/i18n.js'; import Spinner from '../../components/ui/Spinner.svelte'; import Cloud from 'lucide-svelte/icons/cloud'; import RefreshCw from 'lucide-svelte/icons/refresh-cw'; @@ -31,16 +32,16 @@ load(); const restore = async (snap) => { - if (!(await askConfirm(`Download and restore cloud snapshot ${snap.snapshotId} over your current save?`, { title: 'Restore from cloud?', confirmText: 'Download & restore' }))) return; - return run('Restored from cloud', async () => { + if (!(await askConfirm($t('game.cloud.restoreConfirm', { id: snap.snapshotId }), { title: $t('game.cloud.restoreTitle'), confirmText: $t('game.cloud.downloadRestore') }))) return; + return run($t('game.cloud.restored'), async () => { await api.post(`/api/cloud/restore/${game.id}`, { fileName: snap.name }); }); }; const upload = () => - run('Uploaded to cloud', async () => { + run($t('game.cloud.uploaded'), async () => { const res = await api.post(`/api/cloud/sync-local/${game.id}`); - toast(`Uploaded ${res.uploaded}, skipped ${res.skipped}`, 'success'); + toast($t('game.cloud.uploadResult', { uploaded: res.uploaded, skipped: res.skipped }), 'success'); await load(); }); @@ -48,33 +49,32 @@
-

Cloud snapshots for {game.name}

-

Snapshots backed up to your configured cloud provider.

+

{$t('game.cloud.title', { name: game.name })}

+

{$t('game.cloud.sub')}

- - + +
{#if loading} -
Loading cloud snapshots…
+
{$t('game.cloud.loading')}
{:else if !snaps || snaps.length === 0}
-

No cloud snapshots for this game yet.

+

{$t('game.cloud.empty')}

{#if $settings?.cloudSync?.ready} -

New snapshots are copied up as they are taken. “Upload local snapshots” sends the ones from before.

+

{$t('game.cloud.readyHint')}

{:else}

- Set up a provider in , - then use “Upload local snapshots”. + {$t('game.cloud.setupHint1')}{$t('game.cloud.setupHint2')}

{/if}
{:else} - + {#each snaps as snap (snap.name)} @@ -83,7 +83,7 @@ {/each} diff --git a/cmd/opensave-app/frontend/src/views/game/CompareDialog.svelte b/cmd/opensave-app/frontend/src/views/game/CompareDialog.svelte index 75457336..73113dd6 100644 --- a/cmd/opensave-app/frontend/src/views/game/CompareDialog.svelte +++ b/cmd/opensave-app/frontend/src/views/game/CompareDialog.svelte @@ -11,6 +11,7 @@ import { api } from '../../lib/api.js'; import { fmtSize } from '../../lib/format.js'; import { snapshotKind, whenLabel } from '../../lib/snapshots.js'; + import { t } from '../../lib/i18n.js'; export let game; /** Every snapshot of the game, newest first. */ @@ -46,18 +47,18 @@ c.change === 'changed' ? `${fmtSize(c.fromSize)} → ${fmtSize(c.toSize)}` : fmtSize(c.change === 'added' ? c.toSize : c.fromSize); - + {game.name}
{#if error} -

Couldn't compare them: {error}

+

{$t('game.compare.failed', { error })}

{:else if !result} -

Comparing…

+

{$t('game.compare.comparing')}

{:else if result.changes.length === 0} -

{from === to ? 'The same snapshot.' : `No difference: the same ${result.unchanged} file${result.unchanged === 1 ? '' : 's'} in both.`}

+

{from === to ? $t('game.compare.same') : $t('game.compare.noDiff', { n: result.unchanged })}

{:else}

- {result.changes.length} file{result.changes.length === 1 ? '' : 's'} differ{result.changes.length === 1 ? 's' : ''}{#if result.unchanged}, {result.unchanged} the same{/if} + {$t('game.compare.count', { n: result.changes.length })}{#if result.unchanged}{$t('game.compare.countSame', { n: result.unchanged })}{/if}

    {#each result.changes as c (c.location + '/' + c.path)}
  • {c.location ? `${c.location}/` : ''}{c.path} - {c.change} + {$t('game.compare.' + c.change)} {sizes(c)}
  • {/each} diff --git a/cmd/opensave-app/frontend/src/views/game/ConfigTab.svelte b/cmd/opensave-app/frontend/src/views/game/ConfigTab.svelte index 8d2183a5..ddbf41e5 100644 --- a/cmd/opensave-app/frontend/src/views/game/ConfigTab.svelte +++ b/cmd/opensave-app/frontend/src/views/game/ConfigTab.svelte @@ -48,7 +48,7 @@ async function save() { const appId = (cfg.appId ?? '').trim(); if (appId !== '' && !/^\d+$/.test(appId)) { - appIdError = 'A Steam App ID is digits only — the number in the store URL.'; + appIdError = $t('game.config.appIdError'); return; } appIdError = ''; @@ -60,15 +60,13 @@ const savePath = savePathChange(game.savePath, cfg.savePath); if (savePath) { const ok = await askConfirm( - `Track “${game.name}” at ${savePath} from now on?\n\n` + - `Files in the old folder are left exactly where they are, but they stop syncing ` + - `and stop being snapshotted. Existing snapshots are kept and still restore.`, - { title: 'Move tracking to a new folder?', confirmText: 'Move tracking' } + $t('game.config.moveTrackConfirm', { name: game.name, path: savePath }), + { title: $t('game.config.moveTrackTitle'), confirmText: $t('game.config.moveTrackConfirmBtn') } ); if (!ok) return; } - await run('Configuration saved', () => + await run($t('game.config.saved'), () => api.patch(`/api/games/${game.id}`, { appId, // Omitted unless it actually changed: the PATCH decodes into the @@ -88,12 +86,12 @@ } async function browseSavePath() { - const dir = await native.selectDirectory(`Save folder for “${game.name}”`); + const dir = await native.selectDirectory($t('game.config.saveFolderDialog', { name: game.name })); if (dir) cfg.savePath = dir; } async function browseExe() { - const file = await native.selectFile('Select the game executable'); + const file = await native.selectFile($t('game.config.selectExe')); if (file) cfg.exePath = file; } @@ -107,63 +105,57 @@ {/if}
-

Launch & sync configuration

+

{$t('game.config.title')}

- +
- - + +
- The folder OpenSave treats as this game's save. + {$t('game.config.saveFolderHint')} - Files sync by their position inside this folder, so each device can point at - a different path and still end up with the same files — useful when a game keeps saves - in a per-account folder named after your Steam or Epic ID, which differs on every - machine. Point each device at its own such folder and saves land where that copy of - the game looks for them. + {$t('game.config.saveFolderMore1')}{$t('game.config.saveFolderMoreEm')}{$t('game.config.saveFolderMore2')} {#if savePathChange(game.savePath, cfg.savePath)} - Not saved yet. The old folder keeps its files but stops syncing and being - snapshotted. + {$t('game.config.saveFolderNotSaved')} {/if}
- +
- - + +
- Launch starts this, even for a Steam game. Leave it empty to launch through Steam. + {$t('game.config.exePathHint')}
- - - Leave blank to auto-use Steam art from the App ID. Paste any image URL for emulators. + + + {$t('game.config.coverUrlHint')}
- + - Max automatic snapshots kept per branch (0 = unlimited). Oldest are pruned first. + {$t('game.config.maxHint1')}{$t('game.config.maxHintEm')}{$t('game.config.maxHint2')}
- + - Snapshots you took yourself get their own budget, so a game that auto-saves often - can't push them out. 0 = keep forever (the default). + {$t('game.config.manualHint1')}{$t('game.config.manualHintStrong')}{$t('game.config.manualHint2')}
{#if deviceSettings.length > 0} @@ -184,7 +176,7 @@ 0} />
- +
diff --git a/cmd/opensave-app/frontend/src/views/game/GameHeader.svelte b/cmd/opensave-app/frontend/src/views/game/GameHeader.svelte index 3f958d76..4447c355 100644 --- a/cmd/opensave-app/frontend/src/views/game/GameHeader.svelte +++ b/cmd/opensave-app/frontend/src/views/game/GameHeader.svelte @@ -80,8 +80,8 @@ const tick = setInterval(() => (now = Date.now()), 30_000); onDestroy(() => clearInterval(tick)); - const syncNow = () => run('Sync triggered', () => api.post(`/api/games/${game.id}/sync`)); - const launchGame = () => run('Launching…', () => api.post(`/api/games/${game.id}/launch`)); + const syncNow = () => run($t('game.header.syncTriggered'), () => api.post(`/api/games/${game.id}/sync`)); + const launchGame = () => run($t('game.header.launching'), () => api.post(`/api/games/${game.id}/launch`)); let editPath = false; let pathDraft = ''; @@ -92,18 +92,19 @@ async function answerEmptied(answer) { if (answer === 'delete') { const n = game.emptied.files; - const ok = await askConfirm( - `Delete ${game.name}'s save files on your other devices too? ${n} file${n === 1 ? '' : 's'} there will go; each device keeps a snapshot of them first.`, - { title: 'Delete them everywhere?', confirmText: 'Delete them there too', danger: true } - ); + const ok = await askConfirm($t('game.header.deleteEverywhereMsg', { name: game.name, n }), { + title: $t('game.header.deleteEverywhereTitle'), + confirmText: $t('game.header.deleteEverywhereAction'), + danger: true + }); if (!ok) return; } answering = true; try { const res = await api.post(`/api/games/${game.id}/emptied`, { answer }); - if (answer === 'delete') toast(`${game.name}'s save files are deleted on your other devices at the next sync`, 'success'); - else if (res.fetching > 0) toast(`Putting ${game.name}'s files back — ${res.fetching} come from your other devices`, 'success'); - else toast(`${game.name}'s files are back`, 'success'); + if (answer === 'delete') toast($t('game.header.deletedAtNextSync', { name: game.name }), 'success'); + else if (res.fetching > 0) toast($t('game.header.puttingBackDevices', { name: game.name, n: res.fetching }), 'success'); + else toast($t('game.header.filesBack', { name: game.name }), 'success'); } catch (e) { toast(e.message, 'error'); } finally { @@ -119,10 +120,10 @@ try { if (use) { await api.post(`/api/games/${game.id}/relocate`, { path: found }); - toast(`${game.name} now uses ${found}`, 'success'); + toast($t('game.header.relocated', { name: game.name, path: found }), 'success'); } else { await api.post(`/api/games/${game.id}/relocate/dismiss`); - toast(`Not using ${found} for ${game.name}`, 'success'); + toast($t('game.header.relocateDismissed', { path: found, name: game.name }), 'success'); } } catch (e) { toast(e.message, 'error'); @@ -138,13 +139,13 @@ } async function savePath() { - await run('Save path updated', () => api.patch(`/api/games/${game.id}`, { savePath: pathDraft })); + await run($t('game.header.savePathUpdated'), () => api.patch(`/api/games/${game.id}`, { savePath: pathDraft })); editPath = false; }
- + {#if gameCover(game)} toggleFavourite($collections, game)} > @@ -197,29 +198,29 @@
{/if}
- branch {game.activeBranch} + {$t('game.header.branch')} {game.activeBranch} {#if activity?.state === 'running'} - · syncing {activity.percentage ?? 0}% + · {$t('game.header.syncing', { n: activity.percentage ?? 0 })} {/if} {#if game.restoring} · {restoreProgressText(game.restoring, $t)} {/if} {#if game.playingSince} - · in session since {new Date(game.playingSince).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })} + · {$t('game.header.inSession', { time: new Date(game.playingSince).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) })} {:else if game.lastPlayedAt} - · played {timeAgo(game.lastPlayedAt, now)}, {playLength(game.playtimeMs)} in all + · {$t('game.header.played', { when: timeAgo(game.lastPlayedAt, now), length: playLength(game.playtimeMs) })} {/if} {#if game.installed === 'not-found'} - · not found on this PC + · {$t('game.header.notFound')} {/if}
{#if syncedWith.length > 0}
{#each syncedWith as d, i (d.id)} {#if i > 0}·{/if} - + {d.name} - {d.at ? `synced ${timeAgo(d.at, now)}` : 'never synced'} + {d.at ? $t('game.header.syncedAgo', { when: timeAgo(d.at, now) }) : $t('game.header.neverSynced')} {/each}
@@ -227,24 +228,24 @@
{#if canLaunch(game)} - + {/if} - +
{#if editPath} - - - + + + {:else} {game.savePath} - - + {/if}
@@ -256,23 +257,23 @@
{#if game.emptied.state === 'fetching'} - Putting the files back. - Some are still to come from your other devices; this game syncs as usual once they're all here. + {$t('game.header.emptiedFetchingTitle')} + {$t('game.header.emptiedFetchingBody')} {:else} - Every save file in {emptiedWhere(game.emptied.locations)} was deleted on this device. - Your other devices still have theirs, and nothing is synced until you choose. + {$t('game.header.emptiedTitle', { where: emptiedWhere(game.emptied.locations) })} + {$t('game.header.emptiedBody')} {#if game.emptied.putBackFrom} - Put them back from the snapshot of {whenLabel(game.emptied.putBackFromTime)}, with anything newer from your other devices + {$t('game.header.putBackFromSnapshot', { when: whenLabel(game.emptied.putBackFromTime) })} {:else} - Put them back from your other devices + {$t('game.header.putBackFromDevices')} {/if} - — or, if you meant it, delete them there too; each device keeps a snapshot first. + {$t('game.header.orDeleteThere')}
{/if} @@ -286,9 +287,8 @@
- This game isn't on this device. - Its saves are on {game.savePath.slice(0, 2)}, which this PC doesn't have, so it's skipped here and keeps syncing - between your other devices. If it is installed here, point the game at its save folder with Edit. + {$t('game.header.elsewhereTitle')} + {$t('game.header.elsewhereBody', { drive: game.savePath.slice(0, 2) })}
{:else if game.savePathMissing && !editPath} @@ -298,10 +298,8 @@
- This save folder is not there. - It may have been moved or deleted, or be on a drive that isn't connected. Nothing is snapshotted or synced for - this game until it's back — OpenSave picks it up again within a minute. If the save lives somewhere else now, - point the game at it with Edit. + {$t('game.header.folderMissingTitle')} + {$t('game.header.folderMissingBody')}
{/if} @@ -312,11 +310,11 @@
- The same folder is at {game.relocateSuggestion}. - Is that where this game saves on this device? Only use it if it holds your current saves, not an old copy. + {$t('game.header.relocateTitle', { path: game.relocateSuggestion })} + {$t('game.header.relocateBody')}
- - + +
diff --git a/cmd/opensave-app/frontend/src/views/game/LinkPicker.svelte b/cmd/opensave-app/frontend/src/views/game/LinkPicker.svelte index a99c9746..3c770dd7 100644 --- a/cmd/opensave-app/frontend/src/views/game/LinkPicker.svelte +++ b/cmd/opensave-app/frontend/src/views/game/LinkPicker.svelte @@ -7,6 +7,7 @@ import Search from 'lucide-svelte/icons/search'; import CoverImage from '../../components/CoverImage.svelte'; import { gameCover } from '../../lib/api.js'; + import { t } from '../../lib/i18n.js'; /** Games tracked here, other than this one. */ export let localGames = []; @@ -29,23 +30,23 @@ {#if many} {/if} -{#each [['On this device', 'Its entry here merges into this one', local, false], ['On your other devices', 'Nothing is removed on either device', remote, true]] as [title, note, list, onPeer]} +{#each [['game.link.onThisDevice', 'game.link.onThisDeviceNote', local, false], ['game.link.onOtherDevices', 'game.link.onOtherDevicesNote', remote, true]] as [titleKey, noteKey, list, onPeer]} {#if list.length}
- {title}{note} + {$t(titleKey)}{$t(noteKey)}
-
+
{#each list as g (g.id + (g.peerName ?? ''))}
BranchDateSize
{$t('game.cloud.colBranch')}{$t('game.cloud.colDate')}{$t('game.cloud.colSize')}
{new Date(snap.createdTime).toLocaleString()} {fmtSize(snap.sizeBytes)} - +