This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch test in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/test by this push: new 1871e2e5 fix: optimize the copy 1871e2e5 is described below commit 1871e2e580c6f3aa53e7f1746519e1eea155db0a Author: shuai <lishuail...@sifou.com> AuthorDate: Thu Jul 3 11:13:59 2025 +0800 fix: optimize the copy --- i18n/en_US.yaml | 19 ++++++++++--------- i18n/zh_CN.yaml | 19 ++++++++++--------- ui/src/components/QuestionList/index.tsx | 4 +++- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml index 9587de24..da34fcb1 100644 --- a/i18n/en_US.yaml +++ b/i18n/en_US.yaml @@ -828,7 +828,7 @@ ui: tag_wiki: tag wiki create_tag: Create Tag edit_tag: Edit Tag - ask_a_question: Add Question + ask_a_question: Create Question edit_question: Edit Question edit_answer: Edit Answer search: Search @@ -1139,10 +1139,10 @@ ui: more: More wiki: Wiki ask: - title: Add Question + title: Create Question edit_title: Edit Question default_reason: Edit question - default_first_reason: Add question + default_first_reason: Create question similar_questions: Similar questions form: fields: @@ -1150,7 +1150,7 @@ ui: label: Revision title: label: Title - placeholder: Be specific and imagine you're asking a question to another person + placeholder: What's your topic? Be specific. msg: empty: Title cannot be empty. range: Title up to 150 characters @@ -1179,7 +1179,7 @@ ui: add_btn: Add tag create_btn: Create new tag search_tag: Search tag - hint: "Describe what your question is about, at least one tag is required." + hint: "Describe what your content is about, at least one tag is required." no_result: No tags matched tag_required_text: Required tag (at least one) header: @@ -1393,12 +1393,12 @@ ui: review: Your revision will show after review. sent_success: Sent successfully related_question: - title: Related Questions + title: Related answers: answers linked_question: - title: Linked Questions - description: Questions linked to - no_linked_question: No questions linked from this question. + title: Linked + description: Posts linked to + no_linked_question: No contents linked from this content. invite_to_answer: title: Invite People desc: Invite people you think can answer. @@ -1598,6 +1598,7 @@ ui: all_questions: All Questions x_questions: "{{ count }} Questions" x_answers: "{{ count }} answers" + x_posts: "{{ count }} Posts" questions: Questions answers: Answers newest: Newest diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml index fdc0958f..f1365b53 100644 --- a/i18n/zh_CN.yaml +++ b/i18n/zh_CN.yaml @@ -817,7 +817,7 @@ ui: tag_wiki: 标签维基 create_tag: 创建标签 edit_tag: 编辑标签 - ask_a_question: 提问题 + ask_a_question: 创建问题 edit_question: 编辑问题 edit_answer: 编辑回答 search: 搜索 @@ -1122,10 +1122,10 @@ ui: more: 更多 wiki: 维基 ask: - title: 新增问题 + title: 创建问题 edit_title: 编辑问题 default_reason: 编辑问题 - default_first_reason: 新增问题 + default_first_reason: 创建问题 similar_questions: 相似问题 form: fields: @@ -1133,7 +1133,7 @@ ui: label: 修订版本 title: label: 标题 - placeholder: 请详细描述你的问题,想象你在问一个人 + placeholder: 你的主题是什么?请具体说明。 msg: empty: 标题不能为空。 range: 标题最多 150 个字符 @@ -1161,7 +1161,7 @@ ui: add_btn: 添加标签 create_btn: 创建新标签 search_tag: 搜索标签 - hint: "描述您的问题是关于什么,至少需要一个标签。" + hint: "描述您的内容是关于什么,至少需要一个标签。" no_result: 没有匹配的标签 tag_required_text: 必选标签(至少一个) header: @@ -1367,12 +1367,12 @@ ui: review: 您的修订将在审阅通过后显示。 sent_success: 发送成功 related_question: - title: 相关问题 + title: 相似 answers: 个回答 linked_question: - title: 关联的问题 - description: 问题关联到 - no_linked_question: 这个问题没有相关联的问题。 + title: 关联 + description: 帖子关联到 + no_linked_question: 没有与之关联的贴子。 invite_to_answer: title: 受邀人 desc: 邀请你认为可能知道答案的人。 @@ -1564,6 +1564,7 @@ ui: all_questions: 全部问题 x_questions: "{{ count }} 个问题" x_answers: "{{ count }} 个回答" + x_posts: "{{ count }} 个帖子" questions: 问题 answers: 回答 newest: 最新 diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsx index 06e8fe9e..3d770dbe 100644 --- a/ui/src/components/QuestionList/index.tsx +++ b/ui/src/components/QuestionList/index.tsx @@ -103,7 +103,9 @@ const QuestionList: FC<Props> = ({ <h5 className="fs-5 text-nowrap mb-3 mb-md-0"> {source === 'questions' ? t('all_questions') - : t('x_questions', { count })} + : source === 'linked' + ? t('x_posts', { count }) + : t('x_questions', { count })} </h5> <div className="d-flex flex-wrap"> <QueryGroup