Skip to content

Commit 3c8ae67

Browse files
sy-recordsLinkinStars
authored andcommitted
refactor(storage): remove max file size configuration from translations
1 parent 6e1eae6 commit 3c8ae67

File tree

9 files changed

+2
-27
lines changed

9 files changed

+2
-27
lines changed

storage-aliyunoss/i18n/en_US.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ plugin:
5454
other: Access URL prefix
5555
description:
5656
other: prefix of the final access address of the uploaded file, ending with '/' https://example.com/xxx/
57-
max_file_size:
58-
title:
59-
other: Maximum file size(MB)
60-
description:
61-
other: Limit the maximum size of uploaded files, in MB, default is 10MB
6257
err:
6358
mis_storage_config:
6459
other: Wrong storage configuration causes upload failure.

storage-aliyunoss/i18n/translation.go

-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ const (
3535
ConfigAccessKeySecretDescription = "plugin.aliyunoss_storage.backend.config.access_key_secret.description"
3636
ConfigVisitUrlPrefixTitle = "plugin.aliyunoss_storage.backend.config.visit_url_prefix.title"
3737
ConfigVisitUrlPrefixDescription = "plugin.aliyunoss_storage.backend.config.visit_url_prefix.description"
38-
ConfigMaxFileSizeTitle = "plugin.aliyunoss_storage.backend.config.max_file_size.title"
39-
ConfigMaxFileSizeDescription = "plugin.aliyunoss_storage.backend.config.max_file_size.description"
4038

4139
ErrMisStorageConfig = "plugin.aliyunoss_storage.backend.err.mis_storage_config"
4240
ErrFileNotFound = "plugin.aliyunoss_storage.backend.err.file_not_found"

storage-aliyunoss/i18n/zh_CN.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ plugin:
5454
other: 访问URL前缀
5555
description:
5656
other: 上传文件最终访问地址的前缀,以 '/' 结尾 https://example.com/xxx/
57-
max_file_size:
58-
title:
59-
other: 最大文件大小(MB)
60-
description:
61-
other: 限制上传文件的最大大小,单位为MB,默认为 10MB
6257
err:
6358
mis_storage_config:
6459
other: 错误的存储配置导致上传失败

storage-aliyunoss/info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
slug_name: aliyunoss_storage
1919
type: storage
20-
version: 1.2.11
20+
version: 1.2.12
2121
author: answerdev
2222
link: https://github.com/apache/answer-plugins/tree/main/storage-aliyunoss

storage-s3/i18n/en_US.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ plugin:
5959
other: Access URL prefix
6060
description:
6161
other: prefix of the final access address of the uploaded file, ending with '/' https://example.com/xxx/
62-
max_file_size:
63-
title:
64-
other: Maximum file size(MB)
65-
description:
66-
other: Limit the maximum size of uploaded files, in MB, default is 10MB
6762
region:
6863
title:
6964
other: Region

storage-s3/i18n/translation.go

-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ const (
3737
ConfigAccessTokenDescription = "plugin.s3_storage.backend.config.access_token.description"
3838
ConfigVisitUrlPrefixTitle = "plugin.s3_storage.backend.config.visit_url_prefix.title"
3939
ConfigVisitUrlPrefixDescription = "plugin.s3_storage.backend.config.visit_url_prefix.description"
40-
ConfigMaxFileSizeTitle = "plugin.s3_storage.backend.config.max_file_size.title"
41-
ConfigMaxFileSizeDescription = "plugin.s3_storage.backend.config.max_file_size.description"
4240
ConfigRegionTitle = "plugin.s3_storage.backend.config.region.title"
4341
ConfigRegionDescription = "plugin.s3_storage.backend.config.region.description"
4442
ConfigDisableSSLTitle = "plugin.s3_storage.backend.config.disable_ssl.title"

storage-s3/i18n/zh_CN.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ plugin:
5959
other: 访问URL前缀
6060
description:
6161
other: 上传文件最终访问地址的前缀,以 '/' 结尾 https://example.com/xxx/
62-
max_file_size:
63-
title:
64-
other: 文件最大大小(MB)
65-
description:
66-
other: 限制上传文件的最大大小,单位MB,默认为10MB
6762
region:
6863
title:
6964
other: 区域(Region)

storage-s3/info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
slug_name: s3_storage
1919
type: storage
20-
version: 1.2.11
20+
version: 1.2.12
2121
author: answerdev
2222
link: https://github.com/apache/answer-plugins/tree/main/storage-s3

storage-s3/s3.go

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ type StorageConfig struct {
5151
AccessKeySecret string `json:"access_key_secret"`
5252
AccessToken string `json:"access_token"`
5353
VisitUrlPrefix string `json:"visit_url_prefix"`
54-
MaxFileSize string `json:"max_file_size"`
5554
Region string `json:"region"`
5655
DisableSSL bool `json:"disable_ssl"`
5756
}

0 commit comments

Comments
 (0)