Skip to content

Translate post-03 to Japanese - #887

Merged
phil-opp merged 3 commits into
phil-opp:masterfrom
swnakamura:translate_post_03
Dec 17, 2020
Merged

Translate post-03 to Japanese#887
phil-opp merged 3 commits into
phil-opp:masterfrom
swnakamura:translate_post_03

Conversation

@swnakamura

Copy link
Copy Markdown
Contributor

The title says it all.
@JohnTitor could you review the translation?

@swnakamura
swnakamura marked this pull request as ready for review December 8, 2020 08:54
@JohnTitor

Copy link
Copy Markdown
Contributor

Hey, thanks for translating and the ping! I'd like to review in the next week, but seems your branch is messed up?

@swnakamura

Copy link
Copy Markdown
Contributor Author

@JohnTitor Thank you! and I fixed the messed-up branch by rebasing to the master.

@JohnTitor JohnTitor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left some minor wording improvements but almost looks great!

Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
chars: [[ScreenChar; BUFFER_WIDTH]; BUFFER_HEIGHT],
}
```
Rustにおいて、デフォルトの構造体におけるフィールドの並べ方は未定義なので、[`repr(C)`]属性が必要になります。これは、構造体のフィールドがCの構造体と全く同じように並べられることを保証してくれるので、フィールドの並べ方が正しいと保証してくれるのです。`Buffer`構造体については、[`repr(transparent)`]をもう一度使うことで、その唯一のフィールドと同じメモリレイアウトを持つようにしています。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd avoid using "保証" twice here but I have no better idea at all. It'd be great if we could improve it but it's fine to remain as-is.

Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Comment thread blog/content/second-edition/posts/03-vga-text-buffer/index.ja.md Outdated
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
@swnakamura

swnakamura commented Dec 16, 2020

Copy link
Copy Markdown
Contributor Author

@JohnTitor Thank you! Your suggestion makes the translation way more natural. I love it.
Can I add you as a co-translator as we did in post-02?

@JohnTitor JohnTitor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM on my end.

@JohnTitor

Copy link
Copy Markdown
Contributor

Can I add you as a co-translator as we did in post-02?

Yeah, of course!

@swnakamura

Copy link
Copy Markdown
Contributor Author

@phil-opp review process is completed! Could you merge this PR?

@phil-opp
phil-opp merged commit b5a1360 into phil-opp:master Dec 17, 2020
@phil-opp

Copy link
Copy Markdown
Owner

Thanks a lot!

@phil-opp

Copy link
Copy Markdown
Owner

Published at https://os.phil-opp.com/ja/vga-text-mode/

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.

3 participants