Skip to content

Commit 2bc8a9b

Browse files
committed
doc: Update .pot files
1 parent 7b1b7f3 commit 2bc8a9b

8 files changed

+1840
-1775
lines changed

doc/po/rust.md.pot

Lines changed: 914 additions & 970 deletions
Large diffs are not rendered by default.

doc/po/rustpkg.md.pot

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
msgid ""
88
msgstr ""
99
"Project-Id-Version: Rust 0.8-pre\n"
10-
"POT-Creation-Date: 2013-07-17 07:18+0900\n"
10+
"POT-Creation-Date: 2013-07-30 07:07+0900\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <[email protected]>\n"
1414
"Language: \n"
1515
"MIME-Version: 1.0\n"
16-
"Content-Type: text/plain; charset=CHARSET\n"
16+
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
1818

1919
#. type: Plain text
@@ -160,7 +160,7 @@ msgid "# Package identifiers"
160160
msgstr ""
161161

162162
#. type: Plain text
163-
#: doc/rustpkg.md:79
163+
#: doc/rustpkg.md:87
164164
msgid ""
165165
"A package identifier identifies a package uniquely. A package can be stored "
166166
"in a workspace on the local file system, or on a remote Web server, in which "
@@ -169,51 +169,59 @@ msgid ""
169169
"github.com/mozilla/rust`. A package ID can also specify a version, like: "
170170
"`github.com/mozilla/rust#0.3`. In this case, `rustpkg` will check that the "
171171
"repository `github.com/mozilla/rust` has a tag named `0.3`, and report an "
172-
"error otherwise."
172+
"error otherwise. A package ID can also specify a particular revision of a "
173+
"repository, like: `github.com/mozilla/rust#release-0.7`. When the refspec "
174+
"(portion of the package ID after the `#`) can't be parsed as a decimal "
175+
"number, rustpkg passes the refspec along to the version control system "
176+
"without interpreting it. rustpkg also interprets any dependencies on such a "
177+
"package ID literally (as opposed to versions, where a newer version "
178+
"satisfies a dependency on an older version). Thus, `github.com/mozilla/"
179+
"rust#5c4cd30f80` is also a valid package ID, since git can deduce that "
180+
"5c4cd30f80 refers to a revision of the desired repository."
173181
msgstr ""
174182

175183
#. type: Plain text
176-
#: doc/rustpkg.md:81
184+
#: doc/rustpkg.md:89
177185
msgid "## Source files"
178186
msgstr ""
179187

180188
#. type: Plain text
181-
#: doc/rustpkg.md:83
189+
#: doc/rustpkg.md:91
182190
msgid ""
183191
"rustpkg searches for four different fixed filenames in order to determine "
184192
"the crates to build:"
185193
msgstr ""
186194

187195
#. type: Bullet: '* '
188-
#: doc/rustpkg.md:88
196+
#: doc/rustpkg.md:96
189197
msgid "`main.rs`: Assumed to be a main entry point for building an executable."
190198
msgstr ""
191199

192200
#. type: Bullet: '* '
193-
#: doc/rustpkg.md:88
201+
#: doc/rustpkg.md:96
194202
msgid "`lib.rs`: Assumed to be a library crate."
195203
msgstr ""
196204

197205
#. type: Bullet: '* '
198-
#: doc/rustpkg.md:88
206+
#: doc/rustpkg.md:96
199207
msgid ""
200208
"`test.rs`: Assumed to contain tests declared with the `#[test]` attribute."
201209
msgstr ""
202210

203211
#. type: Bullet: '* '
204-
#: doc/rustpkg.md:88
212+
#: doc/rustpkg.md:96
205213
msgid ""
206214
"`bench.rs`: Assumed to contain benchmarks declared with the `#[bench]` "
207215
"attribute."
208216
msgstr ""
209217

210218
#. type: Plain text
211-
#: doc/rustpkg.md:90
219+
#: doc/rustpkg.md:98
212220
msgid "## Versions"
213221
msgstr ""
214222

215223
#. type: Plain text
216-
#: doc/rustpkg.md:97
224+
#: doc/rustpkg.md:105
217225
msgid ""
218226
"`rustpkg` packages do not need to declare their versions with an attribute "
219227
"inside one of the source files, because `rustpkg` infers it from the version "
@@ -224,12 +232,12 @@ msgid ""
224232
msgstr ""
225233

226234
#. type: Plain text
227-
#: doc/rustpkg.md:99
235+
#: doc/rustpkg.md:107
228236
msgid "# Dependencies"
229237
msgstr ""
230238

231239
#. type: Plain text
232-
#: doc/rustpkg.md:103
240+
#: doc/rustpkg.md:111
233241
msgid ""
234242
"rustpkg infers dependencies from `extern mod` directives. Thus, there "
235243
"should be no need to pass a `-L` flag to rustpkg to tell it where to find a "
@@ -238,20 +246,20 @@ msgid ""
238246
msgstr ""
239247

240248
#. type: Plain text
241-
#: doc/rustpkg.md:105
249+
#: doc/rustpkg.md:113
242250
msgid "# Custom build scripts"
243251
msgstr ""
244252

245253
#. type: Plain text
246-
#: doc/rustpkg.md:109
254+
#: doc/rustpkg.md:117
247255
msgid ""
248256
"A file called `pkg.rs` at the root level in a workspace is called a *package "
249257
"script*. If a package script exists, rustpkg executes it to build the "
250258
"package rather than inferring crates as described previously."
251259
msgstr ""
252260

253261
#. type: Plain text
254-
#: doc/rustpkg.md:113
262+
#: doc/rustpkg.md:121
255263
msgid ""
256264
"Inside `pkg.rs`, it's possible to call back into rustpkg to finish up the "
257265
"build. `rustpkg::api` contains functions to build, install, or clean "
@@ -260,17 +268,17 @@ msgid ""
260268
msgstr ""
261269

262270
#. type: Plain text
263-
#: doc/rustpkg.md:115
271+
#: doc/rustpkg.md:123
264272
msgid "# Command reference"
265273
msgstr ""
266274

267275
#. type: Plain text
268-
#: doc/rustpkg.md:117
276+
#: doc/rustpkg.md:125
269277
msgid "## build"
270278
msgstr ""
271279

272280
#. type: Plain text
273-
#: doc/rustpkg.md:123
281+
#: doc/rustpkg.md:131
274282
msgid ""
275283
"`rustpkg build foo` searches for a package with ID `foo` and builds it in "
276284
"any workspace(s) where it finds one. Supposing such packages are found in "
@@ -279,22 +287,22 @@ msgid ""
279287
msgstr ""
280288

281289
#. type: Plain text
282-
#: doc/rustpkg.md:125
290+
#: doc/rustpkg.md:133
283291
msgid "## clean"
284292
msgstr ""
285293

286294
#. type: Plain text
287-
#: doc/rustpkg.md:127
295+
#: doc/rustpkg.md:135
288296
msgid "`rustpkg clean foo` deletes the contents of `foo`'s `build` directory."
289297
msgstr ""
290298

291299
#. type: Plain text
292-
#: doc/rustpkg.md:129
300+
#: doc/rustpkg.md:137
293301
msgid "## install"
294302
msgstr ""
295303

296304
#. type: Plain text
297-
#: doc/rustpkg.md:133
305+
#: doc/rustpkg.md:141
298306
msgid ""
299307
"`rustpkg install foo` builds the libraries and/or executables that are "
300308
"targets for `foo`, and then installs them either into `foo`'s `lib` and "
@@ -303,12 +311,12 @@ msgid ""
303311
msgstr ""
304312

305313
#. type: Plain text
306-
#: doc/rustpkg.md:135
314+
#: doc/rustpkg.md:143
307315
msgid "## test"
308316
msgstr ""
309317

310318
#. type: Plain text
311-
#: doc/rustpkg.md:137
319+
#: doc/rustpkg.md:145
312320
msgid ""
313321
"`rustpkg test foo` builds `foo`'s `test.rs` file if necessary, then runs the "
314322
"resulting test executable."

doc/po/tutorial-borrowed-ptr.md.pot

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
msgid ""
88
msgstr ""
99
"Project-Id-Version: Rust 0.8-pre\n"
10-
"POT-Creation-Date: 2013-07-17 07:18+0900\n"
10+
"POT-Creation-Date: 2013-07-22 23:37+0900\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <[email protected]>\n"
1414
"Language: \n"
1515
"MIME-Version: 1.0\n"
16-
"Content-Type: text/plain; charset=CHARSET\n"
16+
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
1818

1919
#. type: Plain text
@@ -24,7 +24,7 @@ msgid "# Introduction"
2424
msgstr ""
2525

2626
#. type: Plain text
27-
#: doc/tutorial.md:1111 doc/tutorial-borrowed-ptr.md:72
27+
#: doc/tutorial.md:1108 doc/tutorial-borrowed-ptr.md:72
2828
msgid "Now we can call `compute_distance()` in various ways:"
2929
msgstr ""
3030

@@ -60,8 +60,8 @@ msgstr ""
6060
msgid ""
6161
"Although borrowed pointers have rather elaborate theoretical underpinnings "
6262
"(region pointers), the core concepts will be familiar to anyone who has "
63-
"worked with C or C++. Therefore, the best way to explain how they are "
64-
"usedand their limitationsis probably just to work through several examples."
63+
"worked with C or C++. Therefore, the best way to explain how they are used—"
64+
"and their limitations—is probably just to work through several examples."
6565
msgstr ""
6666

6767
#. type: Plain text
@@ -115,7 +115,7 @@ msgid ""
115115
"any two points, no matter where they were stored. For example, we might like "
116116
"to compute the distance between `on_the_stack` and `managed_box`, or between "
117117
"`managed_box` and `owned_box`. One option is to define a function that takes "
118-
"two arguments of type `Point`that is, it takes the points by value. But if "
118+
"two arguments of type `Point`that is, it takes the points by value. But if "
119119
"we define it this way, calling the function will cause the points to be "
120120
"copied. For points, this is probably not so bad, but often copies are "
121121
"expensive. Worse, if the data type contains mutable fields, copying can "
@@ -313,8 +313,8 @@ msgstr ""
313313
#. type: Plain text
314314
#: doc/tutorial-borrowed-ptr.md:186
315315
msgid ""
316-
"Weve seen a few examples so far of borrowing heap boxes, both managed and "
317-
"owned. Up till this point, weve glossed over issues of safety. As stated in "
316+
"We’ve seen a few examples so far of borrowing heap boxes, both managed and "
317+
"owned. Up till this point, we’ve glossed over issues of safety. As stated in "
318318
"the introduction, at runtime a borrowed pointer is simply a pointer, nothing "
319319
"more. Therefore, avoiding C's problems with dangling pointers requires a "
320320
"compile-time safety check."
@@ -626,7 +626,7 @@ msgstr ""
626626
#. type: Plain text
627627
#: doc/tutorial-borrowed-ptr.md:376
628628
msgid ""
629-
"As an example, lets look at the following `shape` type that can represent "
629+
"As an example, let’s look at the following `shape` type that can represent "
630630
"both rectangles and circles:"
631631
msgstr ""
632632

@@ -792,7 +792,7 @@ msgstr ""
792792
#: doc/tutorial-borrowed-ptr.md:483
793793
msgid ""
794794
"So far, all of the examples we have looked at, use borrowed pointers in a "
795-
"downward direction. That is, a method or code block creates a borrowed "
795+
"downward direction. That is, a method or code block creates a borrowed "
796796
"pointer, then uses it within the same scope. It is also possible to return "
797797
"borrowed pointers as the result of a function, but as we'll see, doing so "
798798
"requires some explicit annotation."
@@ -844,7 +844,7 @@ msgstr ""
844844
msgid ""
845845
"Named lifetimes that appear in function signatures are conceptually the same "
846846
"as the other lifetimes we have seen before, but they are a bit abstract: "
847-
"they dont refer to a specific expression within `get_x()`, but rather to "
847+
"they don’t refer to a specific expression within `get_x()`, but rather to "
848848
"some expression within the *caller of `get_x()`*. The lifetime `r` is "
849849
"actually a kind of *lifetime parameter*: it is defined by the caller to "
850850
"`get_x()`, just as the value for the parameter `p` is defined by that caller."
@@ -862,7 +862,7 @@ msgstr ""
862862
#. type: Plain text
863863
#: doc/tutorial-borrowed-ptr.md:526
864864
msgid ""
865-
"To emphasize this point, lets look at a variation on the example, this time "
865+
"To emphasize this point, let’s look at a variation on the example, this time "
866866
"one that does not compile:"
867867
msgstr ""
868868

0 commit comments

Comments
 (0)