Skip to content

Commit 60d99d2

Browse files
committed
refactor(preferences): clarify Markdown Vault storage messaging
1 parent 75107f7 commit 60d99d2

5 files changed

Lines changed: 31 additions & 8 deletions

File tree

src/main/i18n/locales/en_US/messages.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"During migrate, the current library will be overwritten."
1111
],
1212
"migrateToMarkdown": [
13-
"Migrate SQLite to Markdown vault?",
13+
"Migrate to Markdown Vault?",
1414
"The selected vault will be overwritten with the current SQLite library."
1515
],
1616
"migrateToSqlite": [
17-
"Migrate Markdown vault to SQLite?",
17+
"Rollback to SQLite?",
1818
"Current SQLite data will be replaced with data from markdown vault."
1919
],
2020
"backup": {
@@ -25,8 +25,8 @@
2525
"success": {
2626
"copied": "Copied to clipboard",
2727
"migrate": "DB successfully migrated.",
28-
"migrateToMarkdown": "SQLite migrated to markdown vault. Folders: {{folders}}, snippets: {{snippets}}, tags: {{tags}}.",
29-
"migrateToSqlite": "Markdown vault migrated to SQLite. Folders: {{folders}}, snippets: {{snippets}}, tags: {{tags}}.",
28+
"migrateToMarkdown": "Migrated to Markdown Vault. Folders: {{folders}}, snippets: {{snippets}}, tags: {{tags}}.",
29+
"migrateToSqlite": "Rolled back to SQLite. Folders: {{folders}}, snippets: {{snippets}}, tags: {{tags}}.",
3030
"vaultLoaded": "Vault successfully loaded.",
3131
"backup": {
3232
"created": "Backup successfully created.",
@@ -51,6 +51,7 @@
5151
},
5252
"description": {
5353
"storage": "The directory where the SQLite database is stored.",
54+
"storageEngine": "Markdown Vault is the new recommended storage format. SQLite remains available for compatibility and rollback.",
5455
"storageVault": "Choose the vault directory. To sync between devices, select a folder in iCloud Drive, Google Drive or Dropbox.",
5556
"migrate": {
5657
"fromV3": "To migrate from massCode v3 select the folder containing the JSON file.",

src/main/i18n/locales/en_US/preferences.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
},
1010
"label": "Storage",
1111
"migrate": "Migrate",
12-
"migrateMarkdownToSqlite": "Migrate Markdown to SQLite",
13-
"migrateSqliteToMarkdown": "Migrate SQLite to Markdown",
12+
"migrateMarkdownToSqlite": "Rollback to SQLite",
13+
"migrateSqliteToMarkdown": "Migrate to Markdown Vault",
1414
"count": "Count",
1515
"vaultPath": "Vault Path",
1616
"engine": {
1717
"label": "Storage Engine",
18-
"sqlite": "SQLite",
19-
"markdown": "Markdown Vault"
18+
"sqlite": "SQLite (Legacy)",
19+
"markdown": "Markdown Vault (Recommended)"
2020
},
2121
"clearDatabase": "Clear Database",
2222
"backup": {

src/main/i18n/locales/ru_RU/messages.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@
88
"migrateDb": [
99
"Вы уверены, что хотите выполнить миграцию?",
1010
"Во время миграции текущая библиотека будет перезаписана."
11+
],
12+
"migrateToMarkdown": [
13+
"Мигрировать в Markdown Vault?",
14+
"Выбранный vault будет перезаписан текущей библиотекой SQLite."
15+
],
16+
"migrateToSqlite": [
17+
"Откатиться на SQLite?",
18+
"Текущие данные SQLite будут заменены данными из markdown vault."
1119
]
1220
},
1321
"success": {
1422
"copied": "Скопировано в буфер обмена",
1523
"migrate": "База данных успешно мигрирована.",
24+
"migrateToMarkdown": "Выполнена миграция в Markdown Vault. Папок: {{folders}}, сниппетов: {{snippets}}, тегов: {{tags}}.",
25+
"migrateToSqlite": "Выполнен откат на SQLite. Папок: {{folders}}, сниппетов: {{snippets}}, тегов: {{tags}}.",
1626
"vaultLoaded": "Хранилище успешно загружено.",
1727
"backup": {
1828
"created": "Резервная копия успешно создана.",
@@ -35,6 +45,7 @@
3545
"error": {},
3646
"description": {
3747
"storage": "Директория, в которой хранится база данных SQLite.",
48+
"storageEngine": "Markdown Vault теперь является рекомендуемым форматом хранения. SQLite пока доступен для совместимости и отката.",
3849
"storageVault": "Выберите директорию для хранилища. Для синхронизации между устройствами выберите папку в iCloud Drive, Google Drive или Dropbox.",
3950
"migrate": {
4051
"fromV3": "Для миграции с massCode v3 выберите папку, содержащую файл JSON.",

src/main/i18n/locales/ru_RU/preferences.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77
"dangerZone": "Опасная зона"
88
},
99
"migrate": "Миграция",
10+
"migrateMarkdownToSqlite": "Откатиться на SQLite",
11+
"migrateSqliteToMarkdown": "Мигрировать в Markdown Vault",
1012
"count": "Количество",
13+
"vaultPath": "Путь к vault",
14+
"engine": {
15+
"label": "Движок хранилища",
16+
"sqlite": "SQLite (устаревающий)",
17+
"markdown": "Markdown Vault (рекомендуется)"
18+
},
1119
"clearDatabase": "Очистить базу данных"
1220
},
1321
"editor": {

src/renderer/components/preferences/Storage.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ watch(
499499
</Select.SelectItem>
500500
</Select.SelectContent>
501501
</Select.Select>
502+
<template #description>
503+
{{ i18n.t("messages:description.storageEngine") }}
504+
</template>
502505
</UiMenuFormItem>
503506
<UiMenuFormItem
504507
v-if="isSqliteEngine"

0 commit comments

Comments
 (0)