# 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:
  wecom_user_center:
    backend:
      response:
        sync_now:
          success:
            other: 联系人同步成功。
          failed:
            other: 联系人同步失败。
      info:
        name:
          other: 企业微信
        description:
          other: 从企业微信获取用户信息并同步到用户中心
      config:
        tip:
          title:
            other: 推送通知服务已关闭。
        auto_sync:
          label:
            other: 打开自动同步
          title:
            other: 自动同步联系人
          description:
            other: 每小时自动同步。
        sync_now:
          label:
            other: 立即同步
          label_for_doing:
            other: 同步中
          title:
            other: 手动同步联系人
          description:
            other: 上次成功同步于
        authorize_url:
          title:
            other: 授权网址
          description:
            other: 企业微信授权网址
        corp_id:
          title:
            other: 企业 ID
          description:
            other: 企业微信企业ID
        corp_secret:
          title:
            other: 应用 Secret
          description:
            other: 企业微信应用程序密钥
        agent_id:
          title:
            other: 应用 Agent ID
          description:
            other: 企业微信应用程序代理ID
        notification:
          label:
            other: 打开通知
          title:
            other: 通知
          description:
            other: 用户将在企业微信上收到通知。
      user_config:
        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: 收到以下标签的新问题通知。
      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}}"