Skip to content

Commit 7db6bca

Browse files
committed
auto merge of #12005 : omasanori/rust/update-trans, r=brson
Also, I've corrected src/doc/README.md in line with this change.
2 parents 449a99e + f72a2c7 commit 7db6bca

20 files changed

+3111
-882
lines changed

src/doc/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ po4a --copyright-holder="The Rust Project Developers" \
5959
--package-name="Rust" \
6060
--package-version="0.10-pre" \
6161
-M UTF-8 -L UTF-8 \
62-
po4a.conf
62+
src/doc/po4a.conf
6363
~~~~
6464

6565
(the version number must be changed if it is not 0.10-pre now.)
@@ -73,7 +73,7 @@ When you want to make a commit, do the command below before staging your
7373
change:
7474

7575
~~~~
76-
for f in doc/po/**/*.po; do
76+
for f in src/doc/po/**/*.po; do
7777
msgattrib --translated $f -o $f.strip
7878
if [ -e $f.strip ]; then
7979
mv $f.strip $f

src/doc/po/ja/complement-cheatsheet.md.po

+194-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
msgid ""
77
msgstr ""
88
"Project-Id-Version: Rust 0.10-pre\n"
9-
"POT-Creation-Date: 2014-01-13 12:01+0900\n"
9+
"POT-Creation-Date: 2014-02-03 08:13+0900\n"
1010
"PO-Revision-Date: 2014-01-13 12:01+0900\n"
1111
"Last-Translator: Automatically generated\n"
1212
"Language-Team: none\n"
@@ -17,7 +17,20 @@ msgstr ""
1717
"Plural-Forms: nplurals=1; plural=0;\n"
1818

1919
#. type: Plain text
20-
#: doc/complement-cheatsheet.md:13
20+
#: src/doc/complement-cheatsheet.md:8
21+
#, fuzzy
22+
#| msgid ""
23+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
24+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
25+
msgid ""
26+
"Use [`ToStr`](http://static.rust-lang.org/doc/master/std/to_str/trait.ToStr."
27+
"html)."
28+
msgstr ""
29+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
30+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
31+
32+
#. type: Plain text
33+
#: src/doc/complement-cheatsheet.md:13
2134
#, fuzzy
2235
#| msgid ""
2336
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
@@ -30,7 +43,7 @@ msgstr ""
3043
"~~~~"
3144

3245
#. type: Plain text
33-
#: doc/complement-cheatsheet.md:17
46+
#: src/doc/complement-cheatsheet.md:17
3447
#, fuzzy
3548
#| msgid ""
3649
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
@@ -44,7 +57,7 @@ msgstr ""
4457
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
4558

4659
#. type: Plain text
47-
#: doc/complement-cheatsheet.md:22
60+
#: src/doc/complement-cheatsheet.md:22
4861
#, fuzzy
4962
#| msgid ""
5063
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
@@ -57,7 +70,20 @@ msgstr ""
5770
"~~~~"
5871

5972
#. type: Plain text
60-
#: doc/complement-cheatsheet.md:29
73+
#: src/doc/complement-cheatsheet.md:26
74+
#, fuzzy
75+
#| msgid ""
76+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
77+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
78+
msgid ""
79+
"Use [`ToStrRadix`](http://static.rust-lang.org/doc/master/std/num/trait."
80+
"ToStrRadix.html)."
81+
msgstr ""
82+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
83+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
84+
85+
#. type: Plain text
86+
#: src/doc/complement-cheatsheet.md:29
6187
#, fuzzy
6288
#| msgid "~~~~ use std::task::spawn;"
6389
msgid "~~~ use std::num::ToStrRadix;"
@@ -66,7 +92,7 @@ msgstr ""
6692
"use std::task::spawn;"
6793

6894
#. type: Plain text
69-
#: doc/complement-cheatsheet.md:33
95+
#: src/doc/complement-cheatsheet.md:33
7096
#, fuzzy
7197
#| msgid ""
7298
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
@@ -79,7 +105,7 @@ msgstr ""
79105
"~~~~"
80106

81107
#. type: Plain text
82-
#: doc/complement-cheatsheet.md:37
108+
#: src/doc/complement-cheatsheet.md:37
83109
#, fuzzy
84110
#| msgid ""
85111
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
@@ -93,7 +119,7 @@ msgstr ""
93119
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
94120

95121
#. type: Plain text
96-
#: doc/complement-cheatsheet.md:40
122+
#: src/doc/complement-cheatsheet.md:40
97123
#, fuzzy
98124
#| msgid "~~~~ use std::task::spawn;"
99125
msgid "~~~ use std::num::from_str_radix;"
@@ -102,14 +128,44 @@ msgstr ""
102128
"use std::task::spawn;"
103129

104130
#. type: Plain text
105-
#: doc/complement-cheatsheet.md:46
131+
#: src/doc/complement-cheatsheet.md:44
132+
#, fuzzy
133+
#| msgid ""
134+
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
135+
msgid ""
136+
"let x: Option<i64> = from_str_radix(\"deadbeef\", 16); let y: i64 = x."
137+
"unwrap(); ~~~"
138+
msgstr ""
139+
"~~~~\n"
140+
"let x: f64 = 4.0;\n"
141+
"let y: uint = x as uint;\n"
142+
"assert!(y == 4u);\n"
143+
"~~~~"
144+
145+
#. type: Plain text
146+
#: src/doc/complement-cheatsheet.md:46
106147
#, fuzzy
107148
#| msgid "## Operators"
108149
msgid "# File operations"
109150
msgstr "## 演算子"
110151

111152
#. type: Plain text
112-
#: doc/complement-cheatsheet.md:54
153+
#: src/doc/complement-cheatsheet.md:50
154+
#, fuzzy
155+
#| msgid ""
156+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
157+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
158+
msgid ""
159+
"Use [`File::open`](http://static.rust-lang.org/doc/master/std/io/fs/struct."
160+
"File.html#method.open) to create a [`File`](http://static.rust-lang.org/doc/"
161+
"master/std/io/fs/struct.File.html) struct, which implements the [`Reader`]"
162+
"(http://static.rust-lang.org/doc/master/std/io/trait.Reader.html) trait."
163+
msgstr ""
164+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
165+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
166+
167+
#. type: Plain text
168+
#: src/doc/complement-cheatsheet.md:54
113169
#, fuzzy
114170
#| msgid "~~~~ use std::task::spawn;"
115171
msgid "~~~ {.ignore} use std::path::Path; use std::io::fs::File;"
@@ -118,7 +174,7 @@ msgstr ""
118174
"use std::task::spawn;"
119175

120176
#. type: Plain text
121-
#: doc/complement-cheatsheet.md:63
177+
#: src/doc/complement-cheatsheet.md:63
122178
#, fuzzy
123179
#| msgid ""
124180
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
@@ -132,21 +188,145 @@ msgstr ""
132188
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
133189

134190
#. type: Plain text
135-
#: doc/complement-cheatsheet.md:77
191+
#: src/doc/complement-cheatsheet.md:67
192+
#, fuzzy
193+
#| msgid "~~~~ use std::task::spawn;"
194+
msgid "~~~ use std::io::BufferedReader; # use std::io::MemReader;"
195+
msgstr ""
196+
"~~~~\n"
197+
"use std::task::spawn;"
198+
199+
#. type: Plain text
200+
#: src/doc/complement-cheatsheet.md:77
136201
#, fuzzy
137202
#| msgid "## Using other crates"
138203
msgid "# String operations"
139204
msgstr "## 他のクレートの利用"
140205

141206
#. type: Plain text
142-
#: doc/complement-cheatsheet.md:88 doc/guide-container.md:4
207+
#: src/doc/complement-cheatsheet.md:81
208+
#, fuzzy
209+
#| msgid ""
210+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
211+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
212+
msgid ""
213+
"Use the [`find_str`](http://static.rust-lang.org/doc/master/std/str/trait."
214+
"StrSlice.html#tymethod.find_str) method."
215+
msgstr ""
216+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
217+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
218+
219+
#. type: Plain text
220+
#: src/doc/complement-cheatsheet.md:88 src/doc/guide-container.md:4
143221
#, fuzzy
144222
msgid "# Containers"
145223
msgstr "## 本書の表記について"
146224

147225
#. type: Plain text
148-
#: doc/complement-cheatsheet.md:176
226+
#: src/doc/complement-cheatsheet.md:92
227+
#, fuzzy
228+
#| msgid ""
229+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
230+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
231+
msgid ""
232+
"The [`Container`](http://static.rust-lang.org/doc/master/std/container/trait."
233+
"Container.html) trait provides the `len` method."
234+
msgstr ""
235+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
236+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
237+
238+
#. type: Plain text
239+
#: src/doc/complement-cheatsheet.md:104
240+
#, fuzzy
241+
#| msgid ""
242+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
243+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
244+
msgid ""
245+
"Use the [`iter`](http://static.rust-lang.org/doc/master/std/vec/trait."
246+
"ImmutableVector.html#tymethod.iter) method."
247+
msgstr ""
248+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
249+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
250+
251+
#. type: Plain text
252+
#: src/doc/complement-cheatsheet.md:113
253+
#, fuzzy
254+
#| msgid ""
255+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
256+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
257+
msgid ""
258+
"(See also [`mut_iter`](http://static.rust-lang.org/doc/master/std/vec/trait."
259+
"MutableVector.html#tymethod.mut_iter) which yields `&mut int` and "
260+
"[`move_iter`](http://static.rust-lang.org/doc/master/std/vec/trait."
261+
"OwnedVector.html#tymethod.move_iter) which yields `int` while consuming the "
262+
"`values` vector.)"
263+
msgstr ""
264+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
265+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
266+
267+
#. type: Plain text
268+
#: src/doc/complement-cheatsheet.md:115 src/doc/rust.md:3019
269+
#, fuzzy
270+
msgid "# Type system"
271+
msgstr "## タプル"
272+
273+
#. type: Plain text
274+
#: src/doc/complement-cheatsheet.md:122
275+
#, fuzzy, no-wrap
276+
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
277+
msgid ""
278+
"~~~\n"
279+
"struct Foo {\n"
280+
" myfunc: fn(int, uint) -> i32\n"
281+
"}\n"
282+
msgstr ""
283+
"~~~~ {.ignore}\n"
284+
"// main.rs\n"
285+
"extern mod world;\n"
286+
"fn main() { println(~\"hello \" + world::explore()); }\n"
287+
"~~~~"
288+
289+
#. type: Plain text
290+
#: src/doc/complement-cheatsheet.md:130
291+
#, fuzzy, no-wrap
292+
#| msgid "~~~~ fn line(a: int, b: int, x: int) -> int { a * x + b } fn oops(a: int, b: int, x: int) -> () { a * x + b; }"
293+
msgid ""
294+
"fn a(a: int, b: uint) -> i32 {\n"
295+
" (a as uint + b) as i32\n"
296+
"}\n"
297+
msgstr ""
298+
"~~~~\n"
299+
"fn line(a: int, b: int, x: int) -> int { a * x + b }\n"
300+
"fn oops(a: int, b: int, x: int) -> () { a * x + b; }"
301+
302+
#. type: Plain text
303+
#: src/doc/complement-cheatsheet.md:138
304+
#, fuzzy, no-wrap
305+
#| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
306+
msgid ""
307+
"fn main() {\n"
308+
" let f = Foo { myfunc: a };\n"
309+
" let g = FooClosure { myfunc: |a, b| { (a - b as int) as i32 } };\n"
310+
" println!(\"{}\", (f.myfunc)(1, 2));\n"
311+
" println!(\"{}\", (g.myfunc)(3, 4));\n"
312+
"}\n"
313+
"~~~\n"
314+
msgstr ""
315+
"~~~~ {.ignore}\n"
316+
"# struct Point { x: f64, y: f64 }\n"
317+
"let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
318+
"let origin = Point { x: 0.0, y: 0.0 };"
319+
320+
#. type: Plain text
321+
#: src/doc/complement-cheatsheet.md:176
149322
#, fuzzy
150323
#| msgid "[The foreign function interface][ffi]"
151324
msgid "# FFI (Foreign Function Interface)"
152325
msgstr "[他言語間インターフェース (foreign function inferface)][ffi]"
326+
327+
#. type: Plain text
328+
#: src/doc/complement-cheatsheet.md:178
329+
#, fuzzy
330+
#| msgid "# Control structures"
331+
msgid "## C function signature conversions"
332+
msgstr "# 制御構造"

src/doc/po/ja/complement-lang-faq.md.po

+40-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
msgid ""
77
msgstr ""
88
"Project-Id-Version: Rust 0.10-pre\n"
9-
"POT-Creation-Date: 2014-01-13 12:01+0900\n"
9+
"POT-Creation-Date: 2014-02-03 08:13+0900\n"
1010
"PO-Revision-Date: 2014-01-13 12:01+0900\n"
1111
"Last-Translator: Automatically generated\n"
1212
"Language-Team: none\n"
@@ -17,7 +17,21 @@ msgstr ""
1717
"Plural-Forms: nplurals=1; plural=0;\n"
1818

1919
#. type: Plain text
20-
#: doc/complement-lang-faq.md:83
20+
#: src/doc/complement-lang-faq.md:2
21+
#, fuzzy
22+
#| msgid "## Structs"
23+
msgid "% Language FAQ"
24+
msgstr "## 構造体"
25+
26+
#. type: Plain text
27+
#: src/doc/complement-lang-faq.md:4
28+
#, fuzzy
29+
#| msgid "## Structs"
30+
msgid "# General language issues"
31+
msgstr "## 構造体"
32+
33+
#. type: Plain text
34+
#: src/doc/complement-lang-faq.md:83
2135
#, fuzzy
2236
#| msgid ""
2337
#| "[bug-3319]: https://github.com/mozilla/rust/issues/3319 [wiki-start]: "
@@ -33,7 +47,23 @@ msgstr ""
3347
"developing-Rust"
3448

3549
#. type: Plain text
36-
#: doc/complement-lang-faq.md:110
50+
#: src/doc/complement-lang-faq.md:99
51+
#, fuzzy
52+
#| msgid ""
53+
#| "[bug-3319]: https://github.com/mozilla/rust/issues/3319 [wiki-start]: "
54+
#| "https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust"
55+
msgid ""
56+
"[sprocketnes]: https://github.com/pcwalton/sprocketnes [hash]: https://"
57+
"github.com/mozilla/rust/blob/master/src/libstd/hash.rs [HashMap]: https://"
58+
"github.com/mozilla/rust/blob/master/src/libstd/hashmap.rs [json]: https://"
59+
"github.com/mozilla/rust/blob/master/src/libextra/json.rs"
60+
msgstr ""
61+
"[bug-3319]: https://github.com/mozilla/rust/issues/3319\n"
62+
"[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-"
63+
"developing-Rust"
64+
65+
#. type: Plain text
66+
#: src/doc/complement-lang-faq.md:110
3767
#, fuzzy
3868
#| msgid ""
3969
#| "[bug-3319]: https://github.com/mozilla/rust/issues/3319 [wiki-start]: "
@@ -45,3 +75,10 @@ msgstr ""
4575
"[bug-3319]: https://github.com/mozilla/rust/issues/3319\n"
4676
"[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-"
4777
"developing-Rust"
78+
79+
#. type: Plain text
80+
#: src/doc/complement-lang-faq.md:131
81+
#, fuzzy
82+
#| msgid "## Structs"
83+
msgid "# Specific language issues"
84+
msgstr "## 構造体"

0 commit comments

Comments
 (0)