Skip to content

A platform for community discussion. Free, open, simple.

9.8 KB
Raw Blame
# WARNING: Never edit this file.
# It will be overwritten when translations are pulled from Crowdin.
#
# To work with us on translations, join this project:
# https://translate.discourse.org/

zh_CN:
  admin_js:
    admin:
      site_settings:
        categories:
          discourse_data_explorer: "Discourse 数据资源管理器"
  js:
    discourse_ai:
      features:
        data_explorer:
          name: "数据资源管理器"
          description: "数据资源管理器的 AI 赋能查询生成"
          query_generation: "查询生成"
    errors:
      explorer:
        no_semicolons: "从查询中移除分号。"
        dirty: "您必须先保存查询,然后才能运行。"
    data_explorer:
      admin_dashboard_card:
        no_results: "没有结果"
      manage_reports_hint:
        title: "创建数据资源管理器查询"
        description: "编写自定义 SQL 查询,以查找与您的社区相关的特定内容。"
    explorer:
      resize_editor: "调整查询编辑器大小"
      default_query_notice: "这是一个默认查询,SQL 无法编辑。要编辑 SQL,请创建一个新查询。"
      view_query: "查看"
      queries: "查询"
      back_to_queries: "返回查询"
      query_details: "查询详情"
      query_created: "查询已创建!"
      mode:
        label: "查询创作模式"
        manual: "编写 SQL"
        ai: "使用 AI 生成"
      or: "或者"
      admins_only: "数据资源管理器仅供管理员使用。"
      hidden_relation: "您无权访问此内容。"
      allow_groups: "允许群组访问此查询"
      title: "数据资源管理器"
      create: "创建查询"
      new_query: "新查询"
      create_placeholder: "查询名称…"
      description_placeholder: "在此处输入描述"
      ai:
        description_title: "使用 AI 生成"
        description_hint: "请用简洁明了的语言描述您的需求。我们将为您生成 SQL 代码、名称和描述。"
        description_placeholder: "例如,显示不同时间段的注册情况"
        regenerate_placeholder: "例如,更新查询以将结果数限制为 50 条。"
        prompt_label: "提示"
        workflow_title: "AI查询助手"
        generate: "生成"
        regenerate: "生成查询"
        generating: "正在使用 AI 生成查询…"
        generation_timeout: "AI 查询生成超时。您可以手动编写 SQL 语句。"
        generation_error: "生成查询时出错。"
        save_query: "保存查询"
        write_manually: "手动编写 SQL"
        sql_label: "SQL"
      import:
        label: "导入查询"
        unparseable_json: "无法解析的 JSON 文件。"
        wrong_json: "错误的 JSON 文件。JSON 文件应包含一个 'query' 对象,该对象至少应具有一个 'sql' 属性。"
      help:
        label: "帮助"
        modal_title: "数据资源管理器帮助"
        auto_resolution: "<h2>自动实体解析</h2> <p>当您的查询返回实体 ID 时,数据资源管理器可能会自动将其替换为查询结果中的实体名称和其他有用信息。对于 <i><b>user_id</b></i>, <i><b>group_id</b></i>, <i><b>topic_id</b></i>,可自动解析。 <i><b>category_id</b></i>, <i><b>badge_id</b></i> 和 <i><b>reviewable_id</b></i>。要尝试此功能,请运行以下查询:</p> <pre><code>SELECT user_id\nFROM posts</code></pre>"
        custom_params: "<h2>创建自定义参数</h2> <p>要为您的查询创建自定义参数,请将其放在查询的顶部并遵循以下格式:</p> <pre><code>-- [params]\n-- int :num = 1\n\nSELECT :num</code></pre> <p><i>注意:包含 [params] 以及它前面的两个破折号和您要声明的每个自定义参数的第一行是必需的。</i></p>"
        default_values: "<h3>默认值</h3> <p>您可以声明带或不带默认值的参数。默认值将显示在查询编辑器下方的文本字段中,您可以根据需要对其进行编辑。声明时没有默认值的参数仍将生成一个文本字段,但将为空并以红色高亮显示。</p> <pre><code>-- [params]\n-- text :username = my_username\n-- int :age</code></pre>"
        data_types: "<h3>数据类型</h3> <p>以下是您可以使用的常见数据类型:</p> <ul> <li><b>整数</b> - 有符号四字节整数</li> <li><b>文本</b> - 可变长度字符字符串</li> <li><b>布尔值</b> – true/false</li> <li><b>日期</b> - 日历日期(年、月、日)</li> <li><b>current_user_id</b> - 运行查询的用户的 ID(自动注入,对群组报告有用)</li> </ul> <p>有关数据类型的更多信息,请访问<a href='http://www.postgresql.org/docs/9.3/static/datatype.html#DATATYPE-TABLE' target='_blank'>此网站</a>。</p>"
      schema:
        title: "数据库架构"
        filter: "搜索…"
        search_tables: "搜索表"
        hide: "隐藏架构"
        show: "显示架构"
        sensitive: "此列的内容可能包含特别敏感或私人的信息。使用此列的内容时请谨慎。"
      types:
        bool:
          yes: "是"
          no: "否"
          null_: "空"
      view_json: "查看 JSON"
      save: "保存更改"
      saverun: "保存更改并运行"
      run: "运行"
      undo: "舍弃更改"
      delete: "删除"
      delete_confirm: "您确定要删除此查询吗?"
      recover: "取消删除查询"
      dashboard:
        add: "添加到仪表板"
        remove: "从仪表板中移除"
        added: "查询已添加到仪表板"
        removed: "查询已从仪表板中移除。"
        unmountable: "带有必填参数且没有默认值的查询无法显示在仪表板上。"
      sql_label: "SQL"
      run_with_explain: "使用查询计划运行"
      run_options: "更多运行选项"
      view:
        label: "结果视图"
      chart:
        form:
          label: "图表类型"
          line: "折线图"
          bar: "条形图"
          stacked: "堆叠图"
          dual_axis: "双轴图"
        tooltip:
          total: "总计:%{count}"
      chart_empty:
        no_rows: "没有要绘制图表的行。"
        no_numeric: "此查询没有要绘制图表的数值列。"
        no_numeric_with_columns: "此查询没有要绘制图表的数值列(已忽略:%{columns})。"
        view_as_table: "以表形式查看"
      chart_footnote:
        ignored: "未绘制图表的列:%{columns}"
      export_as:
        label: "导出为…"
        results_json: "结果 (JSON)"
        results_csv: "结果 (CSV)"
        query_json: "查询定义 (JSON)"
      run_time: "查询在 %{value} 毫秒内完成。"
      cached_result_notice: "正在显示自 %{relative_time} 起的缓存结果。"
      result_count:
        other: "%{count} 个结果。"
      max_result_count:
        other: "显示前 %{count} 个结果。"
      name: "名称"
      query_groups: "群组"
      query_tags: "标签"
      automatic_tag_mandatory: "此标签为自动添加,无法删除。"
      link: "链接"
      report_name: "报告"
      query_description: "描述"
      query_time: "最后一次运行"
      query_user: "创建者"
      column: "第 %{number} 列"
      save_params: "设置默认值"
      reset_params: "重置"
      search_placeholder: "搜索查询…"
      filter_by_tag: "按标签筛选"
      filter_by_this_tag: "按此标签筛选列表"
      no_search_results: "抱歉,我们找不到任何与您的文本匹配的结果。"
      form:
        errors:
          invalid: "无效"
          no_such_category: "没有此类类别"
          no_such_group: "没有此类群组"
          invalid_date: "%{date} 是无效日期"
          invalid_time: "%{time} 为无效时间"
    group:
      reports: "报告"
    admin:
      api:
        scopes:
          descriptions:
            data_explorer:
              run_queries: "运行数据资源管理器查询。通过指定查询 ID 将 API 密钥限制为一组查询。"
    discourse_workflows:
      node_unavailable:
        requires_data_explorer: "需要启用数据资源管理器插件"
      nodes:
        "action:sql": "数据资源管理器"
      node_descriptions:
        "action:sql": "对数据库运行只读 SQL 查询"
      sql:
        operation: "操作"
        operation_description: "如何运行查询"
        operation_queries: "预定义查询"
        operation_raw: "原始 SQL 查询"
        query_id: "查询"
        query_id_description: "选择一个已保存的查询以运行"
        query_params: "查询参数"
        query_params_description: "填写所选查询的参数"
        query: "SQL 查询"
        params: "查询参数"
        params_description: "参数可以用作 SQL 查询中的 :my_param。"
        add_param: "添加参数"
        param_name: "参数"
        param_value: "值"
        output:
          results: "结果"
          no_results: "没有结果"
    discourse_automation:
      scriptables:
        recurring_data_explorer_result_pm:
          fields:
            recipients:
              label: 发送至用户、群组或电子邮件
            query_id:
              label: 数据资源管理器查询
            query_params:
              label: 数据资源管理器查询参数
            skip_empty:
              label: 如果没有结果,则跳过发送 PM
            attach_csv:
              label: 将 CSV 文件附加到私信
            users_from_group:
              label: 向每个群组成员发送单独的 PM
        recurring_data_explorer_result_topic:
          fields:
            topic_id:
              label: 发布查询结果的话题
            query_id:
              label: 数据资源管理器查询
            query_params:
              label: 数据资源管理器查询参数
            skip_empty:
              label: 如果没有结果,则跳过发布
            attach_csv:
              label: 将 CSV 文件附加到帖子