diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-19 01:40:38 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-19 01:40:38 +0800 |
| commit | 1e9c97c21f8a4e55420712b054895ff8b4f9a849 (patch) | |
| tree | c6bd37889deb54c024f974f368a9a7d654cad822 /rola-cli/locales | |
| parent | e078163c7cdbbf226c18d3e3afa7268a2878e18b (diff) | |
Implement bucket bind CRUD operations and config loading, along with
CLI integration for listing, setting, and removing bucket bindings.
Diffstat (limited to 'rola-cli/locales')
| -rw-r--r-- | rola-cli/locales/errors/common.toml | 25 | ||||
| -rw-r--r-- | rola-cli/locales/errors/i18n_space_error.toml | 23 | ||||
| -rw-r--r-- | rola-cli/locales/i18n_bucket_manager.toml | 16 |
3 files changed, 64 insertions, 0 deletions
diff --git a/rola-cli/locales/errors/common.toml b/rola-cli/locales/errors/common.toml new file mode 100644 index 0000000..8c0acf8 --- /dev/null +++ b/rola-cli/locales/errors/common.toml @@ -0,0 +1,25 @@ +[en] +command_not_found = """ +[[b_red]]**Error:**[[/]] Command not found: \"%{command}\"! + +[[b_yellow]]**Hint:**[[/]] You can use `rola -h` to query help. +""" + +require_overwrite = """ +[[b_red]]**Operation blocked:**[[/]] This operation would overwrite an existing resource + +[[b_yellow]]**Hint:**[[/]] Explicitly specify [[b_red]]**--overwrite**[[/]]! +""" + +[zh_CN] +command_not_found = """ +[[b_red]]**错误:**[[/]]未找到命令 \"%{command}\"! + +[[b_yellow]]**提示:**[[/]]您可以使用 `rola -h` 来查询帮助。 +""" + +require_overwrite = """ +[[b_red]]**操作已阻止:**[[/]]该操作将会覆写已有资源 + +[[b_yellow]]**提示:**[[/]]请显式指定 [[b_red]]**--overwrite**[[/]]! +""" diff --git a/rola-cli/locales/errors/i18n_space_error.toml b/rola-cli/locales/errors/i18n_space_error.toml new file mode 100644 index 0000000..48c5aa1 --- /dev/null +++ b/rola-cli/locales/errors/i18n_space_error.toml @@ -0,0 +1,23 @@ +[en] +space_not_found = "Space not found" +path_format = "Path format error: {info}" +require_empty_directory = "The specified directory is not empty" +config_file_already_exist = "Configuration file already exists" +io_error_name = "Space IO error" +io_not_found = "{info}" +io_permission_denied = "{info}" +io_already_exists = "{info}" +io_invalid_input = "{info}" +io_other = "{info}" + +[zh_CN] +space_not_found = "未找到空间" +path_format = "路径格式错误: {info}" +require_empty_directory = "指定目录不为空" +config_file_already_exist = "配置文件已存在" +io_error_name = "空间 IO 错误" +io_not_found = "{info}" +io_permission_denied = "{info}" +io_already_exists = "{info}" +io_invalid_input = "{info}" +io_other = "{info}" diff --git a/rola-cli/locales/i18n_bucket_manager.toml b/rola-cli/locales/i18n_bucket_manager.toml index 09fae75..0e4f3c1 100644 --- a/rola-cli/locales/i18n_bucket_manager.toml +++ b/rola-cli/locales/i18n_bucket_manager.toml @@ -13,6 +13,14 @@ error_bucket_path_not_directory = "The path \"%{path}\" is not a directory!" error_bucket_nested = "Cannot create a nested Bucket directory inside an existing Bucket space" +error_bind_index_not_provided = """ +[[b_red]]**Error:**[[/]] Bucket bind index not provided +""" + +error_bind_index_not_found = """ +[[b_red]]**Error:**[[/]] Bucket bind index not found: %{index} +""" + [zh_CN] created = "桶已被创建于 \"%{path}\"" @@ -27,3 +35,11 @@ error_bucket_path_not_provided = """ error_bucket_path_not_directory = "路径 \"%{path}\" 不是一个目录!" error_bucket_nested = "无法在已有的桶内创建嵌套的桶目录" + +error_bind_index_not_provided = """ +[[b_red]]**错误:**[[/]]未提供桶绑定 +""" + +error_bind_index_not_found = """ +[[b_red]]**错误:**[[/]]未找到桶绑定:%{index} +""" |
