Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: Update zh-CN [ Chinese (China) ] translations. #2699

Merged
merged 13 commits into from
May 3, 2017

Conversation

KenOokamiHoro
Copy link
Contributor

No description provided.

@KenOokamiHoro KenOokamiHoro changed the title Update zh-CN translations. i18n: Update zh-CN [ Chinese (China) ] translations. May 2, 2017
Copy link

@PeterCxy PeterCxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translations are generally acceptable.

Copy link
Contributor

@Artoria2e5 Artoria2e5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly good. Awoo.

lock_link: 保护你的账户
purge: 从关注者中移除
success:
one: In the process of soft-blocking followers from one domain...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the one line as Chinese won't use it anyway.

@@ -5,6 +5,7 @@ zh-CN:
about_this: 关于本实例
apps: 应用程序
business_email: 商业电邮︰
closed_registrations: 这个实例暂时(或者永久)不开放注册 _(:3」∠)_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like the idea of "temporarily (or permanently)". How about "目前" (currently)? Let's not try to probe into the future...


<p>有人(可能是你)请求更改你 Mastodon 账户的密码。如果是你的话,请点击下面的链接:</p>

<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change my password -> 更改密码

你刚刚在 <%= @instance %> 创建了帐号。

点击下面的链接来完成注册啦 : <br>
<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirm my account -> 确认帐号

点击下面的链接来完成注册啦 : <br>
<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %>

别忘了看看 <%= link_to 'terms and conditions', terms_url %>。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing translation, 使用条款

@@ -15,7 +15,6 @@ zh-CN:
invalid_uri: '必须是有效的 URL 格式'
relative_uri: '必须是绝对的 URL 地址'
secured_uri: '必须是 HTTPS/SSL 的 URL 地址'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahem..

@KenOokamiHoro
Copy link
Contributor Author

KenOokamiHoro commented May 2, 2017 via email

@@ -0,0 +1,7 @@
<p><%= @resource.email %> ,嗨呀!!</p>

<p>有人(可能是你)请求更改你 Mastodon 账户的密码。如果是你的话,请点击下面的链接:</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about "hopefully you"(但愿是你)?

Copy link
Contributor Author

@KenOokamiHoro KenOokamiHoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awoo~

"navigation_bar.logout": "注销",
"navigation_bar.mutes": "Muted users",
"navigation_bar.mutes": "被静音的用户",
// intentional departure from https://github.com/tootsuite/mastodon/blob/f864fee1/config/locales/zh-CN.yml#L126:
Copy link
Contributor

@Artoria2e5 Artoria2e5 May 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, remove the comments.

@@ -0,0 +1,7 @@
<p><%= @resource.email %> ,嗨呀!!</p>

<p>有人(但愿是你 ~ )请求更改你 Mastodon 账户的密码。如果是你的话,请点击下面的链接:</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, no tildes, no ASCII tildes, and no spaces around tildes or before a closing parenthesis.

"video_player.video_error": "视频无法播放啦……",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a JSON file now, so no trailing comma, and nothing after the closing }

@@ -124,4 +123,9 @@ zh-CN:
home: '首页'
application:
title: 'OAuth 认证'
scopes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be some sort of YML syntax error in this file, but I am not sure which exactly.

I18n::InvalidLocaleData: can not load translations from /home/travis/build/tootsuite/mastodon/config/locales/doorkeeper.zh-CN.yml: #<Psych::SyntaxError: (/home/travis/build/tootsuite/mastodon/config/locales/doorkeeper.zh-CN.yml): did not find expected key while parsing a block mapping at line 19 column 5>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unexpected indent ? 😂

@Gargron
Copy link
Member

Gargron commented May 3, 2017

Looks like the last failing part is these unused keys:

Unused keys (3) | i18n-tasks v0.9.13

+--------+------------------------------+--------------------------------+

| Locale | Key                          | Value                          |

+--------+------------------------------+--------------------------------+

| zh-CN  | media_attachments            |                                |

| zh-CN  | validations.images_and_video | 已经有照片的嘟文里没法加入视频 |

| zh-CN  | validations.too_many         | 文件太多(>4)                 |

+--------+------------------------------+--------------------------------+

@Gargron Gargron merged commit 1c469ca into mastodon:master May 3, 2017
@Artoria2e5
Copy link
Contributor

Hmm, I will probably change all the 账 to 帐 -- Mastodon is not a banking app after all.

mkody pushed a commit to im-in-space/mastodon that referenced this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants