mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 数据仓库同步多语言文案
This commit is contained in:
parent
7964d2e48f
commit
dbc6d6d2ca
6 changed files with 120 additions and 47 deletions
|
|
@ -930,6 +930,20 @@
|
|||
"154": "The cloud can only support backup up to 12 snapshots",
|
||||
"155": "Cloud sync directory has been reset to [main]",
|
||||
"156": "Access authentication failed, please refresh the page",
|
||||
"157": "The key is not recognized, please confirm that the copied key string is correct"
|
||||
"157": "The key is not recognized, please confirm that the copied key string is correct",
|
||||
"158": "Indexing data repo, walking data %s",
|
||||
"159": "Indexing data repo, getting the latest file %v",
|
||||
"160": "Indexing data repo, inserting file %v",
|
||||
"161": "Checking out of data repo, walking data %s",
|
||||
"162": "Checking out data repo, inserting file %s",
|
||||
"163": "Checking out data repo, deleting file %s",
|
||||
"164": "Downloading data repo snapshot %s",
|
||||
"165": "Downloading data repo file %v",
|
||||
"166": "Downloading data repo chunk %v",
|
||||
"167": "Downloading data repo reference %s",
|
||||
"168": "Uploading data repo snapshot %s",
|
||||
"169": "Uploading data repo file %v",
|
||||
"170": "Uploading data repo chunk %v",
|
||||
"171": "Uploading data repo reference %s"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -930,6 +930,20 @@
|
|||
"154": "La nube solo admite copias de seguridad de hasta 12 instantáneas",
|
||||
"155": "El directorio de sincronización de la nube se ha restablecido a [main]",
|
||||
"156": "Error en la autenticación de acceso, actualice la página",
|
||||
"157": "No se reconoce la clave, confirme que la cadena de clave copiada es correcta"
|
||||
"157": "No se reconoce la clave, confirme que la cadena de clave copiada es correcta",
|
||||
"158": "Indexando repositorio de datos, datos para caminar %s",
|
||||
"159": "Indexando repositorio de datos, obteniendo el último archivo %v",
|
||||
"160": "Indexando repositorio de datos, insertando archivo %v",
|
||||
"161": "Revisando el repositorio de datos, recorriendo datos %s",
|
||||
"162": "Revisando el repositorio de datos, insertando el archivo %s",
|
||||
"163": "Revisando el repositorio de datos, eliminando el archivo %s",
|
||||
"164": "Descargando instantánea de repositorio de datos %s",
|
||||
"165": "Descargando archivo de repositorio de datos %v",
|
||||
"166": "Descargando parte de repositorio de datos %v",
|
||||
"167": "Descargando referencia de repositorio de datos %s",
|
||||
"168": "Cargando instantánea de repositorio de datos %s",
|
||||
"169": "Cargando archivo de repositorio de datos %v",
|
||||
"170": "Cargando fragmento de repositorio de datos %v",
|
||||
"171": "Cargando referencia de repositorio de datos %s"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -930,6 +930,20 @@
|
|||
"154": "Le cloud ne peut prendre en charge que la sauvegarde jusqu'à 12 instantanés",
|
||||
"155": "Le répertoire de synchronisation du cloud a été réinitialisé sur [main]",
|
||||
"156": "Échec de l'authentification d'accès, veuillez actualiser la page",
|
||||
"157": "La clé n'est pas reconnue, veuillez confirmer que la chaîne de clé copiée est correcte"
|
||||
"157": "La clé n'est pas reconnue, veuillez confirmer que la chaîne de clé copiée est correcte",
|
||||
"158": "Indexation du référentiel de données, données de marche %s",
|
||||
"159": "Indexation du référentiel de données, obtention du dernier fichier %v",
|
||||
"160": "Indexation du référentiel de données, insertion du fichier %v",
|
||||
"161": "Vérification du référentiel de données, données piétonnes %s",
|
||||
"162": "Vérification du référentiel de données, insertion du fichier %s",
|
||||
"163": "Vérification du référentiel de données, suppression du fichier %s",
|
||||
"164": "Téléchargement du l'instantané du référentiel de données %s",
|
||||
"165": "Téléchargement du fichier de référentiel de données %v",
|
||||
"166": "Téléchargement du bloc de dépôt de données %v",
|
||||
"167": "Téléchargement de la référence de référentiel de données %s",
|
||||
"168": "Téléchargement de l'instantané du référentiel de données %s",
|
||||
"169": "Téléchargement du fichier de référentiel de données %v",
|
||||
"170": "Téléchargement du bloc de dépôt de données %v",
|
||||
"171": "Téléchargement de la référence de référentiel de données %s"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -929,6 +929,20 @@
|
|||
"154": "雲端最多只能支持備份 12 個快照",
|
||||
"155": "雲端同步目錄已經重置為 [main]",
|
||||
"156": "訪問鑑權失敗,請刷新頁面",
|
||||
"157": "無法識別密鑰,請確認複製的密鑰字符串是否正確"
|
||||
"157": "無法識別密鑰,請確認複製的密鑰字符串是否正確",
|
||||
"158": "正在索引數據倉庫,遍歷數據 %s",
|
||||
"159": "正在索引數據倉庫,獲取最新文件 %v",
|
||||
"160": "正在索引數據倉庫,插入文件 %v",
|
||||
"161": "正在遷出數據倉庫,遍歷數據 %s",
|
||||
"162": "正在遷出數據倉庫,插入文件 %s",
|
||||
"163": "正在遷出數據倉庫,刪除文件 %s",
|
||||
"164": "正在下載數據倉庫快照 %s",
|
||||
"165": "正在下載數據倉庫文件 %v",
|
||||
"166": "正在下載數據倉庫分塊 %v",
|
||||
"167": "正在下載數據倉庫引用 %s",
|
||||
"168": "正在上傳數據倉庫快照 %s",
|
||||
"169": "正在上傳數據倉庫文件 %v",
|
||||
"170": "正在上傳數據倉庫分塊 %v",
|
||||
"171": "正在上傳數據倉庫引用 %s"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -931,6 +931,20 @@
|
|||
"154": "云端最多只能支持备份 12 个快照",
|
||||
"155": "云端同步目录已经重置为 [main]",
|
||||
"156": "访问鉴权失败,请刷新页面",
|
||||
"157": "无法识别密钥,请确认复制的密钥字符串是否正确"
|
||||
"157": "无法识别密钥,请确认复制的密钥字符串是否正确",
|
||||
"158": "正在索引数据仓库,遍历数据 %s",
|
||||
"159": "正在索引数据仓库,获取最新文件 %v",
|
||||
"160": "正在索引数据仓库,插入文件 %v",
|
||||
"161": "正在迁出数据仓库,遍历数据 %s",
|
||||
"162": "正在迁出数据仓库,插入文件 %s",
|
||||
"163": "正在迁出数据仓库,删除文件 %s",
|
||||
"164": "正在下载数据仓库快照 %s",
|
||||
"165": "正在下载数据仓库文件 %v",
|
||||
"166": "正在下载数据仓库分块 %v",
|
||||
"167": "正在下载数据仓库引用 %s",
|
||||
"168": "正在上传数据仓库快照 %s",
|
||||
"169": "正在上传数据仓库文件 %v",
|
||||
"170": "正在上传数据仓库分块 %v",
|
||||
"171": "正在上传数据仓库引用 %s"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -559,115 +559,118 @@ func newRepository() (ret *dejavu.Repo, err error) {
|
|||
|
||||
func subscribeEvents() {
|
||||
eventbus.Subscribe(dejavu.EvtIndexBeforeWalkData, func(context map[string]interface{}, path string) {
|
||||
msg := "Indexing data repo [walk data " + path + "]"
|
||||
msg := fmt.Sprintf(Conf.Language(158), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtIndexWalkData, func(context map[string]interface{}, path string) {
|
||||
//msg := "Indexing data repo [walk data " + path + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(158), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtIndexBeforeGetLatestFiles, func(context map[string]interface{}, files []string) {
|
||||
msg := fmt.Sprintf("Indexing data repo [get latest files %d]", len(files))
|
||||
msg := fmt.Sprintf(Conf.Language(159), len(files))
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtIndexGetLatestFile, func(context map[string]interface{}, path string) {
|
||||
//msg := "Indexing data repo [get latest file " + path + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtIndexUpsertFiles, func(context map[string]interface{}, files []*entity.File) {
|
||||
msg := fmt.Sprintf("Indexing data repo [upsert files %d]", len(files))
|
||||
msg := fmt.Sprintf(Conf.Language(159), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtIndexUpsertFiles, func(context map[string]interface{}, files []*entity.File) {
|
||||
msg := fmt.Sprintf(Conf.Language(160), len(files))
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtIndexUpsertFile, func(context map[string]interface{}, path string) {
|
||||
//msg := "Indexing data repo [upsert file " + path + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(160), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
|
||||
eventbus.Subscribe(dejavu.EvtCheckoutBeforeWalkData, func(context map[string]interface{}, path string) {
|
||||
msg := "Checkout data repo [walk data " + path + "]"
|
||||
msg := fmt.Sprintf(Conf.Language(161), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCheckoutWalkData, func(context map[string]interface{}, path string) {
|
||||
//msg := "Checkout data repo [walk data " + path + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(161), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCheckoutUpsertFile, func(context map[string]interface{}, path string) {
|
||||
//msg := "Checkout data repo [upsert file " + path + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(162), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCheckoutRemoveFile, func(context map[string]interface{}, path string) {
|
||||
msg := "Checkout data repo [remove file " + path + "]"
|
||||
msg := fmt.Sprintf(Conf.Language(163), path)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeDownloadIndex, func(context map[string]interface{}, id string) {
|
||||
msg := "Downloading data repo index [" + id[:7] + "]"
|
||||
msg := fmt.Sprintf(Conf.Language(164), id[:7])
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeDownloadFiles, func(context map[string]interface{}, ids []string) {
|
||||
msg := fmt.Sprintf("Downloading data repo files %d", len(ids))
|
||||
msg := fmt.Sprintf(Conf.Language(165), len(ids))
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeDownloadFile, func(context map[string]interface{}, id string) {
|
||||
//msg := "Downloading data repo file [" + id[:7] + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(165), id[:7])
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeDownloadChunks, func(context map[string]interface{}, ids []string) {
|
||||
msg := fmt.Sprintf("Downloading data repo chunks %d", len(ids))
|
||||
msg := fmt.Sprintf(Conf.Language(166), len(ids))
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeDownloadChunk, func(context map[string]interface{}, id string) {
|
||||
//msg := "Downloading data repo chunk [" + id[:7] + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(166), id[:7])
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeDownloadRef, func(context map[string]interface{}, ref string) {
|
||||
msg := "Downloading data repo ref [" + ref + "]"
|
||||
msg := fmt.Sprintf(Conf.Language(167), ref)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeUploadIndex, func(context map[string]interface{}, id string) {
|
||||
msg := "Uploading data repo index [" + id[:7] + "]"
|
||||
msg := fmt.Sprintf(Conf.Language(168), id[:7])
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeUploadFiles, func(context map[string]interface{}, files []*entity.File) {
|
||||
msg := fmt.Sprintf("Uploading data repo files %d", len(files))
|
||||
msg := fmt.Sprintf(Conf.Language(169), len(files))
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeUploadFile, func(context map[string]interface{}, id string) {
|
||||
//msg := "Uploading data repo file [" + id[:7] + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(169), id[:7])
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeUploadChunks, func(context map[string]interface{}, ids []string) {
|
||||
msg := fmt.Sprintf("Uploading data repo chunks %d", len(ids))
|
||||
msg := fmt.Sprintf(Conf.Language(170), len(ids))
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeUploadChunk, func(context map[string]interface{}, id string) {
|
||||
//msg := "Uploading data repo chunk [" + id[:7] + "]"
|
||||
//util.SetBootDetails(msg)
|
||||
//contextPushMsg(context, msg)
|
||||
msg := fmt.Sprintf(Conf.Language(170), id[:7])
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(dejavu.EvtCloudBeforeUploadRef, func(context map[string]interface{}, ref string) {
|
||||
msg := "Uploading data repo ref [" + ref + "]"
|
||||
msg := fmt.Sprintf(Conf.Language(171), ref)
|
||||
util.SetBootDetails(msg)
|
||||
contextPushMsg(context, msg)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue