# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

plugin:
  aliyunoss_storage:
    backend:
      info:
        name:
          other: 阿里云OSS存储
        description:
          other: 上传文件到阿里云OSS存储
      config:
        endpoint:
          title:
            other: Endpoint
          description:
            other: 阿里云OSS存储的Endpoint
        bucket_name:
          title:
            other: Bucket名称
          description:
            other: 阿里云OSS存储的Bucket名称
        object_key_prefix:
          title:
            other: 对象Key前缀
          description:
            other: 对象键的前缀，如'answer/data/'，以'/'结尾
        access_key_id:
          title:
            other: AccessKeyID
          description:
            other: 阿里云OSS存储的AccessKeyID
        access_key_secret:
          title:
            other: AccessKeySecret
          description:
            other: 阿里云OSS存储的AccessKeySecret
        visit_url_prefix:
          title:
            other: 访问URL前缀
          description:
            other: 上传文件最终访问地址的前缀，以 '/' 结尾 https://example.com/xxx/
        acl:
          title:
            other: Object ACL
          description:
            other: 设置 Object ACL，默认和 Bucket 的读写权限一致，可修改为公共读。
          options:
            default:
              other: 默认
            public_read:
              other: 公共读
      err:
        mis_storage_config:
          other: 错误的存储配置导致上传失败
        file_not_found:
          other: 文件未找到
        unsupported_file_type:
          other: 不支持的文件类型
        over_file_size_limit:
          other: 超过文件大小限制
        upload_file_failed:
          other: 上传文件失败