# 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:
  slack_user_center:
    backend:
      response:
        sync_now:
          success:
            other: 同步成功。
          failed:
            other: 同步失败。
      info:
        name:
          other: Slack
        description:
          other: 通过 Slack 进行登录
      config:
        tip:
          title:
            other: 推送通知服务已关闭。
        auto_sync:
          label:
            other: 打开自动同步
          title:
            other: 自动同步
          description:
            other: 每小时自动同步。
        sync_now:
          label:
            other: 立即同步
          label_for_doing:
            other: 同步中
          title:
            other: 手动同步
          description:
            other: 上次成功同步于
        client_id:
          title:
            other: Client ID
          description:
            other: Slack client ID
        client_secret:
          title:
            other: Client Secret
          description:
            other: Slack client secret
        notification:
          label:
            other: 打开通知
          title:
            other: 通知
          description:
            other: 用户将在 Slack 上收到通知。
        signing_secret:
            title:
              other: Signing Secret
            description:
              other: Slack signing secret
      user_config:
        webhook_url:
          title:
            other: Webhook URL
        inbox_notifications:
          title:
            other: 收件箱通知
          label:
            other: 打开收件箱通知
          description:
            other: 问题的答案、评论、邀请等。
        all_new_questions:
          title:
            other: 所有新问题通知
          label:
            other: 打开所有新问题通知
          description:
            other: 收到所有新问题的通知。每周最多 50 个问题。
        new_questions_for_following_tags:
          title:
            other: 关注标签的新问题通知
          label:
            other: 打开关注标签的新问题通知
          description:
            other: 收到以下标签的新问题通知。
        upvoted_answers:
          title:
            other: 收到一个点赞
          label:
            other: 打开点赞通知
          description:
            other: 收到点赞的通知
        downvoted_answers:
          title:
            other: 收到一个反对
          label:
            other: 打开反对通知
          description:
            other: 收到反对的通知
        updated_questions:
          title:
            other: 问题更新
          label:
            other: 打开问题更新通知
          description:
            other: 收到问题更新的通知
        updated_answers:
          title:
            other: 回答更新
          label:
            other: 打开回答更新通知
          description:
            other: 收到回答更新的通知
      tpl:
        update_question:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 更新问题 <a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
        answer_the_question:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 回答了问题 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
        update_answer:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 更新答案 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
        accept_answer:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 接受答案 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
        comment_question:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 评论提问 <a href=\"{{.CommentUrl}}\">{{.QuestionTitle}}</a>"
        comment_answer:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 评论回答 <a href=\"{{.CommentUrl}}\">{{.QuestionTitle}}</a>"
        reply_to_you:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 回复了问题 <a href=\"{{.CommentUrl}}\">{{.QuestionTitle}}</a>"
        mention_you:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 提到了你 <a href=\"{{.CommentUrl}}\">{{.QuestionTitle}}</a>"
        invited_you_to_answer:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 邀请你回答 <a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
        new_question:
          other: "新问题:\n<a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>\n{{.QuestionTags}}"
        upvoted_answer:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 点赞了你的回答 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
        downvoted_answer:
          other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 反对了你的回答 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
