Skip to content

Commit 2584df2

Browse files
authored
Merge pull request #1794 from rust-lang-ja/ja
Add Japanese translation
2 parents d2df09b + 4249291 commit 2584df2

File tree

5 files changed

+17499
-2
lines changed

5 files changed

+17499
-2
lines changed

.github/workflows/rbe.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, pull_request]
33

44
env:
55
# Update the language picker in index.hbs to link new languages.
6-
LANGUAGES:
6+
LANGUAGES: ja
77

88
jobs:
99
test:
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Install mdbook-i18n-helpers
3434
run: |
35-
cargo install mdbook-i18n-helpers --locked --version 0.3.0
35+
cargo install mdbook-i18n-helpers --locked --version 0.3.1
3636
3737
- name: Report versions
3838
run: |

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ Please see the [TRANSLATING.md] file for more details.
5858

5959
[TRANSLATING.md]: https://github.com/rust-lang/rust-by-example/blob/master/TRANSLATING.md
6060

61+
### Translating guide for each languages
62+
63+
* Japanese/日本語: [TRANSLATING_JA.md]
64+
65+
[TRANSLATING_JA.md]: https://github.com/rust-lang/rust-by-example/blob/master/TRANSLATING_JA.md
66+
6167
## Translations to other languages
6268

6369
* [Bulgarian](https://github.com/kberov/rust-by-example-bg)

TRANSLATING_JA.md

Lines changed: 257 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
1+
# Rust by Example 日本語版 翻訳ガイド
2+
3+
日本語版の翻訳は https://github.com/rust-lang-ja/rust-by-example にて日本語のレビューを行います。
4+
翻訳に貢献される方は以下のフローに従ってください。
5+
6+
* https://github.com/rust-lang/rust-by-example を自身のアカウントにフォークする
7+
* `po/ja.po` に訳文を追加・変更する
8+
* https://github.com/rust-lang-ja/rust-by-example (の`ja`ブランチ)にプルリクエストを出す
9+
+ 直接オリジナルのリポジトリに出しても訳文自体のレビューができないので rust-lang-ja で一旦レビューします
10+
+ 上記リポジトリは`ja`ブランチがデフォルトなので通常通りプルリクエストを作成すれば`ja`ブランチ向けになります
11+
12+
rust-lang-ja のレビュワーは以下のように作業します。
13+
14+
* プルリクエストをレビューし、問題なければ`ja`ブランチにマージ
15+
* https://github.com/rust-lang/rust-by-example にプルリクエストを出す
16+
17+
最終的に https://github.com/rust-lang/rust-by-example でマージされれば公開されます。
18+
19+
## 翻訳の方法
20+
21+
### 全般的なこと
22+
23+
* 文体は「です・ます」調
24+
* 記号類は原則として全角(括弧`()`やコロン``など)
25+
26+
### 対訳表
27+
28+
* カタカナ語のままで違和感のない用語はカタカナ語のまま使う
29+
+ 気持としては「無理矢理和訳」を避けたい。そのための基準。
30+
+ カタカナ語の方が用語として認識しやすい
31+
* カタカナ語の末尾の長音記号「ー」は省く(JIS規格)
32+
* 構文キーワードなどはそのままアルファベットを使う
33+
34+
| English | 日本語
35+
| :------------------------------- | :-------------
36+
| (lockの) acquire | 獲得
37+
| (lockの) release | 解放
38+
| Intrinsics | Intrinsic
39+
| Lang Items | Lang Item
40+
| Universal Function Call Syntax | 共通の関数呼び出し構文
41+
| abort | アボート
42+
| activity | 実践
43+
| aggregate type | 合成型
44+
| alignment | アラインメント
45+
| allocator | アロケータ
46+
| antipattern | アンチパターン
47+
| application | アプリケーション
48+
| argument type | 引数タイプ
49+
| arity | アリティ
50+
| array | 配列
51+
| assignment | 代入
52+
| associated - | 関連-
53+
| atomic | アトミック
54+
| attribute | アトリビュート
55+
| binary | バイナリ
56+
| binding | 束縛
57+
| block | ブロック
58+
| borrow checker | 借用チェッカー
59+
| borrowing | 借用
60+
| bounds | 境界
61+
| bug | バグ
62+
| capture | キャプチャ
63+
| case analysis | 場合分け
64+
| casting | キャスト
65+
| channel | チャネル
66+
| closure | クロージャ
67+
| code bloat | コードの膨張
68+
| coercion | 型強制
69+
| color model | カラーモデル
70+
| combinator | コンビネータ
71+
| comma | カンマ
72+
| command line | コマンドライン
73+
| compile-time error | コンパイル時エラー
74+
| compiler | コンパイラ
75+
| composable | 合成可能
76+
| computer science | コンピュータサイエンス
77+
| concurrency | 並行性
78+
| constant | 定数
79+
| constructor | コンストラクタ
80+
| continuous integration | 継続的インテグレーション
81+
| crate | クレート
82+
| custom type | カスタム型
83+
| dangling | ダングリング
84+
| data race | データ競合
85+
| deadlock | デッドロック
86+
| declaration statement | 宣言文
87+
| dereferencing | 参照外し
88+
| derive | 導出
89+
| designator | 識別子
90+
| destructor | デストラクタ
91+
| destructuring | 分配
92+
| directive | ディレクティブ
93+
| directory | ディレクトリ
94+
| discriminant | 判別子
95+
| distribution | 配布物
96+
| diverge | ダイバージ
97+
| diverging | ダイバージング
98+
| diverging function | 発散する関数
99+
| documentation comment | ドキュメンテーションコメント
100+
| documentation test | ドキュメンテーションテスト
101+
| early return | 早期リターン
102+
| empty tuple | 空タプル
103+
| encode | エンコード
104+
| endpoint | エンドポイント
105+
| entry point | エントリポイント
106+
| enum | 列挙型
107+
| equality | 等値性
108+
| ergonomic | エルゴノミック(人間にとって扱いやすいもの)
109+
| error | エラー
110+
| error handling | エラーハンドリング
111+
| executable | 実行可能形式
112+
| existentially quantified type | 存在量型
113+
| expression statement | 式文
114+
| exterior | 外側の
115+
| feature | フィーチャ
116+
| field | フィールド
117+
| foreign | 他言語
118+
| free-standing function | フリースタンディングな関数
119+
| full path | 絶対パス
120+
| generic parameter | ジェネリックパラメータ
121+
| generics | ジェネリクス
122+
| glob | グロブ
123+
| growable | 伸張可能
124+
| guard | ガード
125+
| handle | ハンドル
126+
| hash | ハッシュ
127+
| hash set | ハッシュ集合
128+
| higher order functions | 高階関数
129+
| identifier | 識別子
130+
| immutability | イミュータビリティ
131+
| immutable | イミュータブル
132+
| implement | 実装する
133+
| initialize | 初期化する
134+
| input lifetime | 入力ライフタイム
135+
| install | インストール
136+
| installer | インストーラ
137+
| interior | 内側の
138+
| interpolate | インターポーレートする
139+
| interpolation | インターポーレーション
140+
| key | キー
141+
| keyword | キーワード
142+
| leak | リーク
143+
| least significant bit | 最下位ビット
144+
| lending | 貸付け
145+
| library | ライブラリ
146+
| lifetime | ライフタイム
147+
| lifetime coercion | ライフタイムの圧縮
148+
| lifetime elision | ライフタイムの省略
149+
| lifetime parameter | ライフタイムパラメータ
150+
| link | リンク
151+
| lint | リント
152+
| mangling | マングリング
153+
| match | マッチ
154+
| memory | メモリ
155+
| method | メソッド
156+
| monomorphization | 単相化
157+
| move | ムーブ
158+
| mutability | ミュータビリティ
159+
| mutable | ミュータブル
160+
| mutable binding | ミュータブルな束縛
161+
| mutual-exclusion | 相互排他
162+
| null | ヌル
163+
| numeric literal | 数値リテラル
164+
| object-safe | オブジェクト安全
165+
| offline | オフライン
166+
| opaque | オペーク
167+
| open source | オープンソース
168+
| option | オプション
169+
| output lifetime | 出力ライフタイム
170+
| output type | アウトプット型
171+
| overflow | オーバーフロー
172+
| owner | 所有者
173+
| ownership | 所有権
174+
| panic | パニック
175+
| parameter | パラメータ
176+
| parametric polymorphism | パラメトリック多相
177+
| parse | パース、パースする
178+
| partial moves | 部分的ムーブ
179+
| patch | パッチ
180+
| pattern | パターン
181+
| performance | パフォーマンス
182+
| phantom type | 幽霊型
183+
| platform | プラットフォーム
184+
| pointer | ポインタ
185+
| primitive type | プリミティブ型
186+
| private | プライベート
187+
| process | プロセス
188+
| public | パブリック
189+
| r-value | 右辺値
190+
| range | レンジ
191+
| raw pointer | 生ポインタ
192+
| raw identifier | 生識別子
193+
| re-assignment | 再代入
194+
| rebind | 再束縛
195+
| reference count | 参照カウント
196+
| regression | リグレッション
197+
| release | リリース
198+
| return | 返す
199+
| return type | リターン型
200+
| return value | 戻り値
201+
| runtime | 実行時
202+
| safe | 安全
203+
| safety check | 安全性検査
204+
| scope | スコープ
205+
| scoped | スコープ化された
206+
| script | スクリプト
207+
| semantics | セマンティクス
208+
| shadow | 覆い隠す
209+
| shadowing | シャドーイング
210+
| signature | シグネチャ
211+
| signed | 符号付き
212+
| slice | スライス
213+
| slicing | スライシング
214+
| specialized | 特殊化された
215+
| standard library | 標準ライブラリ
216+
| string | 文字列
217+
| string interpolation | 文字列インターポーレーション
218+
| struct | 構造体
219+
| structure | 構造体
220+
| sum type | 直和型
221+
| subtrait | サブトレイト
222+
| supertrait | スーパートレイト
223+
| symbol | シンボル
224+
| syntactic sugar | 糖衣構文
225+
| syntax tree | 構文木
226+
| system | システム
227+
| tagged union | タグ付き共用体
228+
| term | 項
229+
| thread-locality | スレッドローカル性
230+
| threadsafe | スレッドセーフ
231+
| tick | クオート
232+
| token trees | トークン木
233+
| trait | トレイト
234+
| transmute | トランスミュート
235+
| tuple | タプル
236+
| tuple struct | タプル
237+
| type alias | 型エイリアス
238+
| type erasure | 型消去
239+
| type family | 型族
240+
| type inference | 型推論
241+
| type parameter | 型パラメータ
242+
| uninstall | アンインストール
243+
| unit 注: `()` の読み | ユニット
244+
| unsafe | アンセーフ
245+
| unsigned | 符号無し
246+
| unsized type | サイズ不定型
247+
| unwinding | 巻き戻し
248+
| unwrap | アンラップ
249+
| value constructor | 値コンストラクタ
250+
| variable | 変数
251+
| variable binding | 変数束縛
252+
| variant | ヴァリアント
253+
| vector | ベクタ
254+
| version | バージョン
255+
| warning | ウォーニング
256+
| wildcard | ワイルドカード
257+
| wrapper | ラッパ

0 commit comments

Comments
 (0)