Skip to content

Commit

Permalink
Merge pull request #287 from cofacts/translation
Browse files Browse the repository at this point in the history
Translation
  • Loading branch information
MrOrz authored Sep 8, 2021
2 parents 18f2081 + eba46e8 commit d508b02
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 20 deletions.
2 changes: 1 addition & 1 deletion i18n/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ msgid "This reply has no ${ prompt } and it may be biased"
msgstr "このリプライは${prompt}がありませんので、信頼性を見直す必要があります。"

#: src/webhook/handlers/choosingArticle.js:141
msgid "Volunteer editors has publised several replies to this message."
msgid "Volunteer editors have published several replies to this message."
msgstr "Cofacts のボランティアがこの情報に多くのリプライをしました!"

#: src/webhook/handlers/choosingArticle.js:263
Expand Down
22 changes: 11 additions & 11 deletions i18n/zh_TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ msgid "This reply has no ${ prompt } and it may be biased"
msgstr "此回應沒有${prompt},請自行斟酌回應之可信度。"

#: src/webhook/handlers/choosingArticle.js:151
msgid "Volunteer editors has publised several replies to this message."
msgstr "Cofacts 志工對這則訊息發表了多則看法唷!"
msgid "Volunteer editors have published several replies to this message."
msgstr "真的假的編輯志工對這則訊息發表了多則看法唷!"

#: src/webhook/handlers/choosingArticle.js:273
msgid "Let's pick one"
Expand Down Expand Up @@ -804,11 +804,11 @@ msgstr ""

#: src/liff/components/FeedbackForm.svelte:22
msgid "Please help Cofacts editors"
msgstr "幫幫 Cofacts 闢謠志工"
msgstr "幫幫 Cofacts 真的假的闢謠志工"

#: src/liff/components/FeedbackForm.svelte:31
msgid "It's glad to see the reply is helpful."
msgstr "很開心這則 Cofacts 回應有幫助到您。"
msgstr "很開心這則回應有幫助到您。"

#: src/liff/components/FeedbackForm.svelte:39
msgid "Please provide your comment above"
Expand All @@ -828,7 +828,7 @@ msgstr "表示回應有幫助"

#: src/liff/components/FeedbackForm.svelte:34
msgid "We are sorry that the reply is not helpful to you."
msgstr "很遺憾這則 Cofacts 回應對您沒有幫助。"
msgstr "很遺憾這則回應對您沒有幫助。"

#: src/liff/components/FeedbackForm.svelte:35
msgid "How can we make it helpful to you?"
Expand All @@ -852,17 +852,17 @@ msgid "${ dateStr } ago"
msgstr "${ dateStr }前"

#: src/liff/pages/Article.svelte:90
msgid "Cofacts reply"
msgstr "查核回應"
msgid "Cofacts volunteer's reply to the message above"
msgstr "真的假的編輯志工針對以上訊息的回應"

#: src/liff/pages/Article.svelte:91
#, javascript-format
msgid "There are ${ articleReplies.length } Cofacts replies for this message"
msgstr "此訊息有 ${ articleReplies.length } 則查證回應"
msgid "Cofacts volunteers have published ${ articleReplies.length } replies to the message above"
msgstr "真的假的編輯志工對以上訊息發表了 ${ articleReplies.length } 則回應"

#: src/liff/pages/Article.svelte:93
msgid "IM check"
msgstr "可疑訊息查證"
msgstr "網傳訊息查證"

#: src/liff/pages/Article.svelte:94
msgid "Cofacts chatbot"
Expand All @@ -874,7 +874,7 @@ msgstr "載入可疑訊息"

#: src/liff/pages/Article.svelte:96
msgid "Suspicious messages"
msgstr "網友回報可疑訊息"
msgstr "網傳可疑訊息"

#: src/liff/components/ArticleCard.svelte:11
#, javascript-format
Expand Down
3 changes: 2 additions & 1 deletion src/liff/components/ArticleCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
export let createdAt;
const createdAtStr = createdAt ? format(createdAt) : '';
const firstReportedStr = t`First reported on ${createdAtStr}`;
export let replyRequestCount;
const reportCountText = ngettext(
Expand Down Expand Up @@ -65,7 +66,7 @@
</div>
</div>
<Card style="--gap: 8px">
<aside>{t`First reported on ${createdAtStr}`}|{reportCountText}</aside>
<aside>{firstReportedStr}|{reportCountText}</aside>
<article
class:truncated={isTooLong && !isExpanded}
>{text}</article>
Expand Down
4 changes: 3 additions & 1 deletion src/liff/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap" rel="stylesheet">
<title>Cofacts</title>
<link rel="icon" href="/static/favicon.png" type="image/png" />
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml" />
<title>Cofacts 真的假的</title>
<script>
var _rollbarConfig = {
accessToken: "<%= htmlWebpackPlugin.options.ROLLBAR_CLIENT_TOKEN %>",
Expand Down
4 changes: 2 additions & 2 deletions src/liff/pages/Article.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
}
$: replySectionTitle = articleReplies.length === 1
? t`Cofacts reply`
: t`There are ${articleReplies.length} Cofacts replies for this message`
? t`Cofacts volunteer's reply to the message above`
: t`Cofacts volunteers have published ${articleReplies.length} replies to the message above`
</script>

<svelte:head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Object {
"isSkipUser": false,
"replies": Array [
Object {
"text": "👨‍👩‍👧‍👦 Volunteer editors has publised several replies to this message.
"text": "👨‍👩‍👧‍👦 Volunteer editors have published several replies to this message.
1 of them say itcontains misinformation.
1 of them says it 💬 contains personal perspective.
Expand Down Expand Up @@ -490,7 +490,7 @@ Object {
"isSkipUser": false,
"replies": Array [
Object {
"text": "👨‍👩‍👧‍👦 Volunteer editors has publised several replies to this message.
"text": "👨‍👩‍👧‍👦 Volunteer editors have published several replies to this message.
6 of them say itcontains misinformation.
2 of them says itcontains true information.
Expand Down Expand Up @@ -1330,7 +1330,7 @@ Object {
"isSkipUser": false,
"replies": Array [
Object {
"text": "👨‍👩‍👧‍👦 Volunteer editors has publised several replies to this message.
"text": "👨‍👩‍👧‍👦 Volunteer editors have published several replies to this message.
2 of them say itcontains misinformation.",
"type": "text",
Expand Down
2 changes: 1 addition & 1 deletion src/webhook/handlers/choosingArticle.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default async function choosingArticle(params) {

const summary =
'👨‍👩‍👧‍👦 ' +
t`Volunteer editors has publised several replies to this message.` +
t`Volunteer editors have published several replies to this message.` +
'\n\n' +
[
countOfType.RUMOR > 0
Expand Down
Binary file added static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions static/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d508b02

Please sign in to comment.