diff --git a/README.md b/README.md index 4cd5ee273..779729854 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ docker run -d \ * `PGID`: Custom group ID (optional, defaults to `1000` if not provided) * `workspace_dir_host`: The workspace folder path on the host * `workspace_dir_container`: The path of the workspace folder in the container, as specified in `--workspace` - * In alternative, it's possible to set the auth code via the `SIYUAN_WORKSPACE_PATH` env variable. The commandline will always have the priority, if both are set. + * In alternative, it's possible to set the path via the `SIYUAN_WORKSPACE_PATH` env variable. The commandline will always have the priority, if both are set. * `accessAuthCode`: Access authorization code (please **be sure to modify**, otherwise anyone can access your data) * In alternative, it's possible to set the auth code via the `SIYUAN_ACCESS_AUTH_CODE` env variable. The commandline will always have the priority, if both are set. diff --git a/README_ja_JP.md b/README_ja_JP.md index 57b5cecbf..6f5cc6348 100644 --- a/README_ja_JP.md +++ b/README_ja_JP.md @@ -206,7 +206,7 @@ docker run -d \ * `PGID`: カスタムグループID(オプション、指定しない場合はデフォルトで `1000`) * `workspace_dir_host`: ホスト上のワークスペースフォルダーのパス * `workspace_dir_container`: コンテナ内のワークスペースフォルダーのパス、`--workspace` で指定されたものと同じ - * また、`SIYUAN_WORKSPACE_PATH` 環境変数を設定することで認証コードを指定することもできます。両方が設定されている場合、コマンドラインの値が優先されます。 + * あるいは、`SIYUAN_WORKSPACE_PATH` 環境変数を使用してパスを設定することもできます。両方が設定されている場合は、コマンドラインの値が優先されます。 * `accessAuthCode`: アクセス認証コード(**必ず変更してください**、そうしないと誰でもデータにアクセスできます) * また、`SIYUAN_ACCESS_AUTH_CODE` 環境変数を設定することで認証コードを指定することもできます。両方が設定されている場合、コマンドラインの値が優先されます。 diff --git a/README_zh_CN.md b/README_zh_CN.md index 40b96c7d0..ece108df9 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -211,7 +211,7 @@ docker run -d \ * `PGID`: 自定义组 ID(可选,如果未提供,默认为 `1000`) * `workspace_dir_host`:宿主机上的工作空间文件夹路径 * `workspace_dir_container`:容器内工作空间文件夹路径,和后面 `--workspace` 指定成一样的 - * 另外,也可以通过 `SIYUAN_WORKSPACE_PATH` 环境变量设置授权码。如果两者都设置了,命令行的值将优先。 + * 另外,也可以通过 `SIYUAN_WORKSPACE_PATH` 环境变量设置路径。如果两者都设置了,命令行的值将优先。 * `accessAuthCode`:访问授权码,请**务必修改**,否则任何人都可以读写你的数据 * 另外,也可以通过 `SIYUAN_ACCESS_AUTH_CODE` 环境变量设置授权码。如果两者都设置了,命令行的值将优先。 diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.go index 106ffabfc..65ee8db9a 100644 --- a/kernel/model/bazzar.go +++ b/kernel/model/bazzar.go @@ -48,7 +48,7 @@ func BatchUpdateBazaarPackages(frontend string) { err := bazaar.InstallPlugin(plugin.RepoURL, plugin.RepoHash, filepath.Join(util.DataDir, "plugins", plugin.Name), Conf.System.ID) if err != nil { logging.LogErrorf("update plugin [%s] failed: %s", plugin.Name, err) - util.PushErrMsg(fmt.Sprintf(Conf.language(238)), 5000) + util.PushErrMsg(fmt.Sprintf(Conf.language(238), plugin.Name), 5000) return } @@ -60,7 +60,7 @@ func BatchUpdateBazaarPackages(frontend string) { err := bazaar.InstallWidget(widget.RepoURL, widget.RepoHash, filepath.Join(util.DataDir, "widgets", widget.Name), Conf.System.ID) if err != nil { logging.LogErrorf("update widget [%s] failed: %s", widget.Name, err) - util.PushErrMsg(fmt.Sprintf(Conf.language(238)), 5000) + util.PushErrMsg(fmt.Sprintf(Conf.language(238), widget.Name), 5000) return } @@ -72,7 +72,7 @@ func BatchUpdateBazaarPackages(frontend string) { err := bazaar.InstallIcon(icon.RepoURL, icon.RepoHash, filepath.Join(util.IconsPath, icon.Name), Conf.System.ID) if err != nil { logging.LogErrorf("update icon [%s] failed: %s", icon.Name, err) - util.PushErrMsg(fmt.Sprintf(Conf.language(238)), 5000) + util.PushErrMsg(fmt.Sprintf(Conf.language(238), icon.Name), 5000) return } @@ -84,7 +84,7 @@ func BatchUpdateBazaarPackages(frontend string) { err := bazaar.InstallTemplate(template.RepoURL, template.RepoHash, filepath.Join(util.DataDir, "templates", template.Name), Conf.System.ID) if err != nil { logging.LogErrorf("update template [%s] failed: %s", template.Name, err) - util.PushErrMsg(fmt.Sprintf(Conf.language(238)), 5000) + util.PushErrMsg(fmt.Sprintf(Conf.language(238), template.Name), 5000) return } @@ -96,7 +96,7 @@ func BatchUpdateBazaarPackages(frontend string) { err := bazaar.InstallTheme(theme.RepoURL, theme.RepoHash, filepath.Join(util.ThemesPath, theme.Name), Conf.System.ID) if err != nil { logging.LogErrorf("update theme [%s] failed: %s", theme.Name, err) - util.PushErrMsg(fmt.Sprintf(Conf.language(238)), 5000) + util.PushErrMsg(fmt.Sprintf(Conf.language(238), theme.Name), 5000) return }