Skip to content

Commit 1871e2e

Browse files
committed
fix: optimize the copy
1 parent 9897d92 commit 1871e2e

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

i18n/en_US.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ ui:
828828
tag_wiki: tag wiki
829829
create_tag: Create Tag
830830
edit_tag: Edit Tag
831-
ask_a_question: Add Question
831+
ask_a_question: Create Question
832832
edit_question: Edit Question
833833
edit_answer: Edit Answer
834834
search: Search
@@ -1139,18 +1139,18 @@ ui:
11391139
more: More
11401140
wiki: Wiki
11411141
ask:
1142-
title: Add Question
1142+
title: Create Question
11431143
edit_title: Edit Question
11441144
default_reason: Edit question
1145-
default_first_reason: Add question
1145+
default_first_reason: Create question
11461146
similar_questions: Similar questions
11471147
form:
11481148
fields:
11491149
revision:
11501150
label: Revision
11511151
title:
11521152
label: Title
1153-
placeholder: Be specific and imagine you're asking a question to another person
1153+
placeholder: What's your topic? Be specific.
11541154
msg:
11551155
empty: Title cannot be empty.
11561156
range: Title up to 150 characters
@@ -1179,7 +1179,7 @@ ui:
11791179
add_btn: Add tag
11801180
create_btn: Create new tag
11811181
search_tag: Search tag
1182-
hint: "Describe what your question is about, at least one tag is required."
1182+
hint: "Describe what your content is about, at least one tag is required."
11831183
no_result: No tags matched
11841184
tag_required_text: Required tag (at least one)
11851185
header:
@@ -1393,12 +1393,12 @@ ui:
13931393
review: Your revision will show after review.
13941394
sent_success: Sent successfully
13951395
related_question:
1396-
title: Related Questions
1396+
title: Related
13971397
answers: answers
13981398
linked_question:
1399-
title: Linked Questions
1400-
description: Questions linked to
1401-
no_linked_question: No questions linked from this question.
1399+
title: Linked
1400+
description: Posts linked to
1401+
no_linked_question: No contents linked from this content.
14021402
invite_to_answer:
14031403
title: Invite People
14041404
desc: Invite people you think can answer.
@@ -1598,6 +1598,7 @@ ui:
15981598
all_questions: All Questions
15991599
x_questions: "{{ count }} Questions"
16001600
x_answers: "{{ count }} answers"
1601+
x_posts: "{{ count }} Posts"
16011602
questions: Questions
16021603
answers: Answers
16031604
newest: Newest

i18n/zh_CN.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ ui:
817817
tag_wiki: 标签维基
818818
create_tag: 创建标签
819819
edit_tag: 编辑标签
820-
ask_a_question: 提问题
820+
ask_a_question: 创建问题
821821
edit_question: 编辑问题
822822
edit_answer: 编辑回答
823823
search: 搜索
@@ -1122,18 +1122,18 @@ ui:
11221122
more: 更多
11231123
wiki: 维基
11241124
ask:
1125-
title: 新增问题
1125+
title: 创建问题
11261126
edit_title: 编辑问题
11271127
default_reason: 编辑问题
1128-
default_first_reason: 新增问题
1128+
default_first_reason: 创建问题
11291129
similar_questions: 相似问题
11301130
form:
11311131
fields:
11321132
revision:
11331133
label: 修订版本
11341134
title:
11351135
label: 标题
1136-
placeholder: 请详细描述你的问题,想象你在问一个人
1136+
placeholder: 你的主题是什么?请具体说明。
11371137
msg:
11381138
empty: 标题不能为空。
11391139
range: 标题最多 150 个字符
@@ -1161,7 +1161,7 @@ ui:
11611161
add_btn: 添加标签
11621162
create_btn: 创建新标签
11631163
search_tag: 搜索标签
1164-
hint: "描述您的问题是关于什么,至少需要一个标签。"
1164+
hint: "描述您的内容是关于什么,至少需要一个标签。"
11651165
no_result: 没有匹配的标签
11661166
tag_required_text: 必选标签(至少一个)
11671167
header:
@@ -1367,12 +1367,12 @@ ui:
13671367
review: 您的修订将在审阅通过后显示。
13681368
sent_success: 发送成功
13691369
related_question:
1370-
title: 相关问题
1370+
title: 相似
13711371
answers: 个回答
13721372
linked_question:
1373-
title: 关联的问题
1374-
description: 问题关联到
1375-
no_linked_question: 这个问题没有相关联的问题
1373+
title: 关联
1374+
description: 帖子关联到
1375+
no_linked_question: 没有与之关联的贴子
13761376
invite_to_answer:
13771377
title: 受邀人
13781378
desc: 邀请你认为可能知道答案的人。
@@ -1564,6 +1564,7 @@ ui:
15641564
all_questions: 全部问题
15651565
x_questions: "{{ count }} 个问题"
15661566
x_answers: "{{ count }} 个回答"
1567+
x_posts: "{{ count }} 个帖子"
15671568
questions: 问题
15681569
answers: 回答
15691570
newest: 最新

ui/src/components/QuestionList/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ const QuestionList: FC<Props> = ({
103103
<h5 className="fs-5 text-nowrap mb-3 mb-md-0">
104104
{source === 'questions'
105105
? t('all_questions')
106-
: t('x_questions', { count })}
106+
: source === 'linked'
107+
? t('x_posts', { count })
108+
: t('x_questions', { count })}
107109
</h5>
108110
<div className="d-flex flex-wrap">
109111
<QueryGroup

0 commit comments

Comments
 (0)