Patch settings changes

- patch section was moved under the general and now is a subsection like
  in wine/launcher settings in enhancements
- updated locales; added related French translations
This commit is contained in:
Observer KRypt0n_ 2022-03-06 13:29:13 +02:00
parent e4caf6839d
commit 8a29d4a5b7
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
14 changed files with 208 additions and 208 deletions

View file

@ -135,6 +135,17 @@ settings:
game: Spiel Ordner öffnen game: Spiel Ordner öffnen
repair_game: spiel-dateien reparieren repair_game: spiel-dateien reparieren
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Aktualisiere Patch-Informationen...'
buttons:
revert_patch: Patch rückgängig machen
apply_patch: Patch anwenden
reapply_patch: Patch erneut anwenden
# Verberssungen # Verberssungen
enhancements: enhancements:
title: Verbesserungen title: Verbesserungen
@ -274,17 +285,6 @@ settings:
add: Hinzufügen add: Hinzufügen
delete: Löschen delete: Löschen
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Aktualisiere Patch-Informationen...'
buttons:
revert_patch: Patch rückgängig machen
apply_patch: Patch anwenden
reapply_patch: Patch erneut anwenden
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -135,6 +135,17 @@ settings:
game: game folder game: game folder
repair_game: repair game files repair_game: repair game files
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Enhancements # Enhancements
enhancements: enhancements:
title: Enhancements title: Enhancements
@ -273,17 +284,6 @@ settings:
add: Add add: Add
delete: Delete delete: Delete
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -135,6 +135,17 @@ settings:
game: carpeta del juego game: carpeta del juego
repair_game: reparar archivos del juego repair_game: reparar archivos del juego
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Mejoras # Mejoras
enhancements: enhancements:
title: Mejoras title: Mejoras
@ -272,17 +283,6 @@ settings:
add: Añadir add: Añadir
delete: Borrar delete: Borrar
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Actualización del Launcher # Actualización del Launcher

View file

@ -139,6 +139,17 @@ settings:
game: Dossier du jeu game: Dossier du jeu
repair_game: Corriger les fichiers du jeu repair_game: Corriger les fichiers du jeu
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Version du patch:'
updating_info: 'Mise à jour des informations du patch...'
buttons:
revert_patch: Désinstaller
apply_patch: Installer
reapply_patch: Réinstaller
# Enhancements # Enhancements
enhancements: enhancements:
title: Améliorations title: Améliorations
@ -283,17 +294,6 @@ settings:
add: Ajouter add: Ajouter
delete: Supprimer delete: Supprimer
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -135,6 +135,17 @@ settings:
game: játékmappa game: játékmappa
repair_game: Játékfájlok javítása repair_game: Játékfájlok javítása
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Enhancements # Enhancements
enhancements: enhancements:
title: Fejlesztések title: Fejlesztések
@ -273,17 +284,6 @@ settings:
add: Hozzáadás add: Hozzáadás
delete: Törlés delete: Törlés
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -135,6 +135,17 @@ settings:
game: folder game game: folder game
repair_game: repair game files repair_game: repair game files
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Enhancements # Enhancements
enhancements: enhancements:
title: Peningkatan title: Peningkatan
@ -273,17 +284,6 @@ settings:
add: Tambah add: Tambah
delete: Hapus delete: Hapus
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -134,6 +134,17 @@ settings:
game: Cartella del gioco game: Cartella del gioco
repair_game: Ripara file di gioco repair_game: Ripara file di gioco
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Enhancements # Enhancements
enhancements: enhancements:
title: Miglioramenti title: Miglioramenti
@ -271,17 +282,6 @@ settings:
add: Aggiungi add: Aggiungi
delete: Rimuovi delete: Rimuovi
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -135,6 +135,17 @@ settings:
game: ゲームディレクトリ game: ゲームディレクトリ
repair_game: ゲームファイルを修復 repair_game: ゲームファイルを修復
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Enhancements # Enhancements
enhancements: enhancements:
title: 詳細設定 title: 詳細設定
@ -273,17 +284,6 @@ settings:
add: 追加 add: 追加
delete: 削除 delete: 削除
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -135,6 +135,17 @@ settings:
game: spill mappe game: spill mappe
repair_game: reparer spillfiler repair_game: reparer spillfiler
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Enhancements # Enhancements
enhancements: enhancements:
title: Forbedringer title: Forbedringer
@ -273,17 +284,6 @@ settings:
add: Legg til add: Legg til
delete: Fjern delete: Fjern
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -34,7 +34,7 @@ launcher:
downloading: Скачивание звукового пакета {voice}... downloading: Скачивание звукового пакета {voice}...
unpacking: Распаковка звукового пакета {voice}... unpacking: Распаковка звукового пакета {voice}...
# Launcher states # Состояния лаунчера
states: states:
# Когда игра должна быть установлена или обновлена # Когда игра должна быть установлена или обновлена
installation: installation:
@ -127,7 +127,7 @@ settings:
in-game: Текст в игре in-game: Текст в игре
selectIcon: Выберите иконку selectIcon: Выберите иконку
# Some buttons # Всякие кнопки
buttons: buttons:
winetricks: winetricks winetricks: winetricks
winecfg: winecfg winecfg: winecfg
@ -135,11 +135,22 @@ settings:
game: папка игры game: папка игры
repair_game: исправить файлы игры repair_game: исправить файлы игры
# Настроки патча
patch:
title: Патч
items:
patch_version: 'Версия патча:'
updating_info: 'Обновление информации о патче...'
buttons:
revert_patch: отменить патч
apply_patch: применить патч
reapply_patch: переприменить патч
# Улучшения # Улучшения
enhancements: enhancements:
title: Улучшения title: Улучшения
# Enhancements related to the wine # Улучшения, связанные с Wine
wine: wine:
title: Wine title: Wine
items: items:
@ -177,7 +188,7 @@ settings:
width: Ширина width: Ширина
height: Высота height: Высота
# Enhancements related to the game # Улучшения, связанные с игрой
game: game:
title: Игра title: Игра
items: items:
@ -204,7 +215,7 @@ settings:
title: Использовать терминал title: Использовать терминал
tooltip: С этой опцией лаунчер будет запускать команду wine в отдельном окне терминала tooltip: С этой опцией лаунчер будет запускать команду wine в отдельном окне терминала
# Enhancements related to the launcher # Улучшения, связанные с лаунчером
launcher: launcher:
title: Лаунчер title: Лаунчер
items: items:
@ -272,17 +283,6 @@ settings:
add: Добавить add: Добавить
delete: Удалить delete: Удалить
# Настроки патча
patch:
title: Патч
items:
patch_version: 'Версия патча:'
updating_info: 'Обновление информации о патче...'
buttons:
revert_patch: отменить патч
apply_patch: применить патч
reapply_patch: переприменить патч
# Уведомления # Уведомления
notifications: notifications:
# Обновление лаунчера # Обновление лаунчера
@ -339,7 +339,7 @@ tos_violation:
cancel: Отменить cancel: Отменить
discord: Наш Discord сервер discord: Наш Discord сервер
# Analytics window # Окно аналитики
analytics: analytics:
title: Просьба Янь Фэй... title: Просьба Янь Фэй...
header: Примите участие в анонимном сборе данных header: Примите участие в анонимном сборе данных

View file

@ -135,6 +135,17 @@ settings:
game: game f-fowdew game: game f-fowdew
repair_game: wepaiw game fiwes repair_game: wepaiw game fiwes
# Patch-related settings
patch:
title: patch
items:
patch_version: 'patch vewsion:'
updating_info: 'updating patch info...'
buttons:
revert_patch: wevewt patch
apply_patch: appwy patch
reapply_patch: we-appwy patch
# Enhancements # Enhancements
enhancements: enhancements:
title: enhancements title: enhancements
@ -272,17 +283,6 @@ settings:
add: add add: add
delete: dewete delete: dewete
# Patch-related settings
patch:
title: patch
items:
patch_version: 'patch vewsion:'
updating_info: 'updating patch info...'
buttons:
revert_patch: wevewt patch
apply_patch: appwy patch
reapply_patch: we-appwy patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -135,6 +135,17 @@ settings:
game: 游戏文件夹 game: 游戏文件夹
repair_game: 修复游戏文件 repair_game: 修复游戏文件
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Enhancements # Enhancements
enhancements: enhancements:
title: 增强功能 title: 增强功能
@ -273,17 +284,6 @@ settings:
add: 添加 add: 添加
delete: 删除 delete: 删除
# Patch-related settings
patch:
title: Patch
items:
patch_version: 'Patch version:'
updating_info: 'Updating patch info...'
buttons:
revert_patch: revert patch
apply_patch: apply patch
reapply_patch: re-apply patch
# Notifications # Notifications
notifications: notifications:
# Launcher update # Launcher update

View file

@ -89,7 +89,7 @@
&:hover &:hover
background: #e5e9f0 background: #e5e9f0
.settings-item#patch .settings-item#general > .patch
.patch-version .patch-version
font-size: 18px font-size: 18px

View file

@ -204,7 +204,7 @@
{#if typeof $locale === 'string'} {#if typeof $locale === 'string'}
<main> <main>
<div class="menu"> <div class="menu">
{#each ['general', 'enhancements', 'runners', 'dxvks', 'shaders', 'environment', 'patch'] as item} {#each ['general', 'enhancements', 'runners', 'dxvks', 'shaders', 'environment'] as item}
<div <div
class="menu-item" class="menu-item"
class:menu-item-active={selectedItem === item} class:menu-item-active={selectedItem === item}
@ -318,6 +318,74 @@
}} }}
/> />
</div> </div>
<div class="patch">
<h3>{$_('settings.general.items.patch.title')}</h3>
{#if patchInfo !== null}
<div class="patch-version">
{$_('settings.general.items.patch.items.patch_version')}
<span class:warning={!patchInfo.applied}>
{ `${patchInfo.version} ${patchInfo.state}` }
</span>
</div>
<div style="margin-top: 24px">
{#if patchInfo.applied}
<!-- svelte-ignore missing-declaration -->
<Button
lang="settings.general.items.patch.items.buttons.revert_patch"
click={async () => {
if (patchInfo)
{
const prevPatchInfo = patchInfo;
patchInfo = null;
patchInfo = await Patch.revert(prevPatchInfo) ?
await Patch.latest : prevPatchInfo;
}
}}
/>
<!-- svelte-ignore missing-declaration -->
<Button
lang="settings.general.items.patch.items.buttons.reapply_patch"
click={async () => {
if (patchInfo)
{
const prevPatchInfo = patchInfo;
patchInfo = null;
if (await Patch.revert(prevPatchInfo))
{
await IPC.write('update-state');
Neutralino.app.exit();
}
else patchInfo = prevPatchInfo;
}
}}
/>
{:else}
<!-- svelte-ignore missing-declaration -->
<Button
lang="settings.general.items.patch.items.buttons.apply_patch"
click={async () => {
await IPC.write('update-state');
Neutralino.app.exit();
}}
/>
{/if}
</div>
{:else}
<p>{$_('settings.general.items.patch.items.updating_info')}</p>
{/if}
</div>
</div> </div>
<div class="settings-item" id="enhancements"> <div class="settings-item" id="enhancements">
@ -477,74 +545,6 @@
<EnvironmentManager /> <EnvironmentManager />
</div> </div>
<div class="settings-item" id="patch">
<h1>{$_('settings.patch.title')}</h1>
{#if patchInfo !== null}
<div class="patch-version">
{$_('settings.patch.items.patch_version')}
<span class:warning={!patchInfo.applied}>
{ `${patchInfo.version} ${patchInfo.state}` }
</span>
</div>
<div style="margin-top: 24px">
{#if patchInfo.applied}
<!-- svelte-ignore missing-declaration -->
<Button
lang="settings.patch.items.buttons.revert_patch"
click={async () => {
if (patchInfo)
{
const prevPatchInfo = patchInfo;
patchInfo = null;
patchInfo = await Patch.revert(prevPatchInfo) ?
await Patch.latest : prevPatchInfo;
}
}}
/>
<!-- svelte-ignore missing-declaration -->
<Button
lang="settings.patch.items.buttons.reapply_patch"
click={async () => {
if (patchInfo)
{
const prevPatchInfo = patchInfo;
patchInfo = null;
if (await Patch.revert(prevPatchInfo))
{
await IPC.write('update-state');
Neutralino.app.exit();
}
else patchInfo = prevPatchInfo;
}
}}
/>
{:else}
<!-- svelte-ignore missing-declaration -->
<Button
lang="settings.patch.items.buttons.apply_patch"
click={async () => {
await IPC.write('update-state');
Neutralino.app.exit();
}}
/>
{/if}
</div>
{:else}
<p>Updating patch info...</p>
{/if}
</div>
<div class="settings-footer"> <div class="settings-footer">
<span>An Anime Game Launcher {Launcher.version}</span> <span>An Anime Game Launcher {Launcher.version}</span>