mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-03 01:07:07 +00:00
fix(i18n): keep activateReason default untranslated per review
Commonlib compares this value against the raw "updated" literal to distinguish automatic activation from a user-requested run, so translating it changes behaviour rather than just the displayed text. Keep the default raw and drop the "updated" catalogue entry; the manually-requested reason stays translated.
This commit is contained in:
@@ -12444,10 +12444,6 @@ export const allMessages: Readonly<Record<string, Readonly<Record<string, string
|
||||
"zh-tw":
|
||||
"除非你很確定,否則選擇此選項有一定風險。這個選項假設伺服器設定與此裝置相容;若並非如此,可能導致資料遺失。請確保你了解自己在做什麼。",
|
||||
},
|
||||
updated: {
|
||||
def: "updated",
|
||||
es: "una actualización",
|
||||
},
|
||||
"Updating list...": {
|
||||
def: "Updating list...",
|
||||
es: "Actualizando lista...",
|
||||
|
||||
@@ -1416,7 +1416,6 @@
|
||||
"Ui.SetupWizard.SetupRemote.Title": "Choose a synchronisation remote",
|
||||
"Unique name between all synchronized devices. To edit this setting, please disable customization sync once.": "Unique name between all synchronized devices. To edit this setting, please disable customization sync once.",
|
||||
"Unless you are certain, selecting this options is bit dangerous. It assumes that the server configuration is compatible with this device. If this is not the case, data loss may occur. Please ensure you know what you are doing.": "Unless you are certain, selecting this options is bit dangerous. It assumes that the server configuration is compatible with this device. If this is not the case, data loss may occur. Please ensure you know what you are doing.",
|
||||
"updated": "updated",
|
||||
"Updating list...": "Updating list...",
|
||||
"URL": "URL",
|
||||
"Use a custom passphrase": "Use a custom passphrase",
|
||||
|
||||
@@ -1457,7 +1457,6 @@
|
||||
"Ui.SetupWizard.SetupRemote.Title": "Elige un remoto de sincronización",
|
||||
"Unique name between all synchronized devices. To edit this setting, please disable customization sync once.": "Nombre único entre dispositivos sincronizados. Para editarlo, desactive sincronización de personalización",
|
||||
"Unless you are certain, selecting this options is bit dangerous. It assumes that the server configuration is compatible with this device. If this is not the case, data loss may occur. Please ensure you know what you are doing.": "Si no estás seguro, elegir esta opción es algo arriesgado. Da por supuesto que la configuración del servidor es compatible con este dispositivo. Si no lo es, puede haber pérdida de datos. Asegúrate de saber lo que haces.",
|
||||
"updated": "una actualización",
|
||||
"Updating list...": "Actualizando lista...",
|
||||
"URL": "URL",
|
||||
"Use a custom passphrase": "Usar una frase de contraseña personalizada",
|
||||
|
||||
@@ -2074,7 +2074,6 @@ Unless you are certain, selecting this options is bit dangerous. It assumes that
|
||||
Unless you are certain, selecting this options is bit dangerous. It assumes
|
||||
that the server configuration is compatible with this device. If this is not
|
||||
the case, data loss may occur. Please ensure you know what you are doing.
|
||||
updated: updated
|
||||
Updating list...: Updating list...
|
||||
URL: URL
|
||||
Use a custom passphrase: Use a custom passphrase
|
||||
|
||||
@@ -2617,7 +2617,6 @@ Unless you are certain, selecting this options is bit dangerous. It assumes that
|
||||
Si no estás seguro, elegir esta opción es algo arriesgado. Da por supuesto que
|
||||
la configuración del servidor es compatible con este dispositivo. Si no lo es,
|
||||
puede haber pérdida de datos. Asegúrate de saber lo que haces.
|
||||
updated: una actualización
|
||||
Updating list...: Actualizando lista...
|
||||
URL: URL
|
||||
Use a custom passphrase: Usar una frase de contraseña personalizada
|
||||
|
||||
@@ -51,11 +51,7 @@ export class ModuleMigration extends AbstractModule<LiveSyncCore> {
|
||||
super(core);
|
||||
}
|
||||
|
||||
async migrateUsingDoctor(
|
||||
skipRebuild: boolean = false,
|
||||
activateReason: string = $msg("updated"),
|
||||
forceRescan = false
|
||||
) {
|
||||
async migrateUsingDoctor(skipRebuild: boolean = false, activateReason = "updated", forceRescan = false) {
|
||||
const { shouldRebuild, shouldRebuildLocal, isModified, settings } = await performDoctorConsultation(
|
||||
{
|
||||
confirm: this.core.confirm,
|
||||
|
||||
Reference in New Issue
Block a user