diff --git a/xmcl-keystone-ui/locales/de.yaml b/xmcl-keystone-ui/locales/de.yaml index a1f287d1b..b75936ab7 100644 --- a/xmcl-keystone-ui/locales/de.yaml +++ b/xmcl-keystone-ui/locales/de.yaml @@ -1205,6 +1205,7 @@ save: shared: Instanz verwendet freigegebenen Speicherordner showDirectory: Speicherverzeichnis anzeigen unselected: gemeinsames Archiv + useCurrent: Aktuelle Welt verwenden saves: {} screenshots: empty: Sie haben keine Bildschirmfotos diff --git a/xmcl-keystone-ui/locales/en.yaml b/xmcl-keystone-ui/locales/en.yaml index 764f829a9..5c0fc8a8f 100644 --- a/xmcl-keystone-ui/locales/en.yaml +++ b/xmcl-keystone-ui/locales/en.yaml @@ -1115,6 +1115,7 @@ save: shared: Instance use shared saves folder showDirectory: Show saves directory unselected: Shared Saves + useCurrent: Use current world saves: {} screenshots: empty: You don't have screenshots diff --git a/xmcl-keystone-ui/locales/es-ES.yaml b/xmcl-keystone-ui/locales/es-ES.yaml index 378c953bc..89b4313c0 100644 --- a/xmcl-keystone-ui/locales/es-ES.yaml +++ b/xmcl-keystone-ui/locales/es-ES.yaml @@ -842,6 +842,7 @@ save: shared: La instancia utiliza la carpeta guardada compartida showDirectory: Mostrar directorio de guardado unselected: archivo compartido + useCurrent: Usar el mundo actual saves: {} screenshots: empty: No tienes capturas de pantalla diff --git a/xmcl-keystone-ui/locales/fr.yaml b/xmcl-keystone-ui/locales/fr.yaml index 0a016e974..e14db812a 100644 --- a/xmcl-keystone-ui/locales/fr.yaml +++ b/xmcl-keystone-ui/locales/fr.yaml @@ -1158,6 +1158,7 @@ save: shared: L'instance utilise le dossier de sauvegarde partagé showDirectory: Afficher le répertoire de sauvegarde unselected: archives partagées + useCurrent: Utiliser le monde actuel saves: {} screenshots: empty: Vous n'avez pas de capture d'écran diff --git a/xmcl-keystone-ui/locales/gl.yaml b/xmcl-keystone-ui/locales/gl.yaml index 5a872add7..e22a301a5 100644 --- a/xmcl-keystone-ui/locales/gl.yaml +++ b/xmcl-keystone-ui/locales/gl.yaml @@ -351,6 +351,7 @@ save: shared: A instancia utiliza o cartafol de gardados compartidos showDirectory: Mostrar o directorio de gardar unselected: arquivo compartido + useCurrent: Usa o mundo actual saves: {} server: maxPlayers: Máximo xogadores diff --git a/xmcl-keystone-ui/locales/hu.yaml b/xmcl-keystone-ui/locales/hu.yaml index 2f81fe742..9bcedae61 100644 --- a/xmcl-keystone-ui/locales/hu.yaml +++ b/xmcl-keystone-ui/locales/hu.yaml @@ -1144,6 +1144,7 @@ save: shared: Példány megosztott mentési mappa használata showDirectory: Mentés könyvtár megjelenítése unselected: megosztott archívum + useCurrent: Használja a jelenlegi világot saves: {} screenshots: empty: Nincsenek képernyőképeid diff --git a/xmcl-keystone-ui/locales/it-IT.yaml b/xmcl-keystone-ui/locales/it-IT.yaml index 7de0b89bf..b5a6b2155 100644 --- a/xmcl-keystone-ui/locales/it-IT.yaml +++ b/xmcl-keystone-ui/locales/it-IT.yaml @@ -1141,6 +1141,7 @@ save: shared: L'istanza utilizza la cartella di salvataggio condivisa showDirectory: Mostra la directory di salvataggio unselected: archivio condiviso + useCurrent: Usa il mondo attuale saves: {} screenshots: empty: Non hai screenshot diff --git a/xmcl-keystone-ui/locales/pl.yaml b/xmcl-keystone-ui/locales/pl.yaml index 41f58104a..fee9e5da5 100644 --- a/xmcl-keystone-ui/locales/pl.yaml +++ b/xmcl-keystone-ui/locales/pl.yaml @@ -1152,6 +1152,7 @@ save: shared: Instancja korzysta ze wspólnego folderu zapisów showDirectory: Pokaż katalog zapisu unselected: wspólne archiwum + useCurrent: Użyj obecnego świata saves: {} screenshots: empty: Nie masz zrzutów ekranu diff --git a/xmcl-keystone-ui/locales/ru.yaml b/xmcl-keystone-ui/locales/ru.yaml index 06ccabc56..5b61853b0 100644 --- a/xmcl-keystone-ui/locales/ru.yaml +++ b/xmcl-keystone-ui/locales/ru.yaml @@ -1202,6 +1202,7 @@ save: shared: Экземпляр использует общую папку сохранений showDirectory: Открыть папку с мирами unselected: общий архив + useCurrent: Использовать текущий мир screenshots: empty: У вас нет снимков экрана goto: Открыть папку со снимками экрана diff --git a/xmcl-keystone-ui/locales/uk.yaml b/xmcl-keystone-ui/locales/uk.yaml index cae40c637..6f2eec131 100644 --- a/xmcl-keystone-ui/locales/uk.yaml +++ b/xmcl-keystone-ui/locales/uk.yaml @@ -1113,6 +1113,7 @@ save: shared: Екземпляр використовує спільну папку збереження showDirectory: Показати каталог збереження unselected: спільний архів + useCurrent: Використовуйте поточний світ saves: {} screenshots: empty: У вас немає скріншотів diff --git a/xmcl-keystone-ui/locales/zh-CN.yaml b/xmcl-keystone-ui/locales/zh-CN.yaml index 3c173be2b..c7cc77ca7 100644 --- a/xmcl-keystone-ui/locales/zh-CN.yaml +++ b/xmcl-keystone-ui/locales/zh-CN.yaml @@ -1068,6 +1068,7 @@ save: shared: 实例使用共享存档文件夹 showDirectory: 显示保存目录 unselected: 共享的存档 + useCurrent: 使用当前世界 saves: {} screenshots: empty: 您还没有截图 diff --git a/xmcl-keystone-ui/locales/zh-TW.yaml b/xmcl-keystone-ui/locales/zh-TW.yaml index a06c10902..97879c913 100644 --- a/xmcl-keystone-ui/locales/zh-TW.yaml +++ b/xmcl-keystone-ui/locales/zh-TW.yaml @@ -1065,6 +1065,7 @@ save: shared: 實例使用共享存档資料夾 showDirectory: 顯示儲存目錄 unselected: 共享的存檔 + useCurrent: 使用當前世界 saves: {} screenshots: empty: 您還沒有截圖 diff --git a/xmcl-keystone-ui/src/views/AppLaunchServerDialog.vue b/xmcl-keystone-ui/src/views/AppLaunchServerDialog.vue index f08ba55ba..10dba031d 100644 --- a/xmcl-keystone-ui/src/views/AppLaunchServerDialog.vue +++ b/xmcl-keystone-ui/src/views/AppLaunchServerDialog.vue @@ -79,9 +79,9 @@ @click="toggle" > - add + {{ rawWorldExists ? 'save' : 'add' }} - {{ t('save.createNew') }} + {{ rawWorldExists ? t('save.useCurrent') : t('save.createNew') }} { _eula = v }) getLinkedSaveWorld(path.value).then((v) => { + rawWorldExists.value = v !== undefined && v !== '' linkedWorld.value = v ?? '' }) getServerInstanceMods(path.value).then((mods) => { diff --git a/xmcl-runtime-api/src/services/InstanceSavesService.ts b/xmcl-runtime-api/src/services/InstanceSavesService.ts index 2ebb997dd..c9818e630 100644 --- a/xmcl-runtime-api/src/services/InstanceSavesService.ts +++ b/xmcl-runtime-api/src/services/InstanceSavesService.ts @@ -167,7 +167,7 @@ export interface InstanceSavesService { /** * Get the linked save world path. * @param instancePath - * @return The linked save world path. Should if it's a origial world folder them it's unlinked folder existed. `undefined` if no folder existed. + * @return The linked save world path. Empty string if it's a raw world folder, else it's linked folder existed. `undefined` if no folder existed. */ getLinkedSaveWorld(instancePath: string): Promise }