Skip to content

Commit 62bb843

Browse files
committed
auto merge of #7641 : lucab/rust/lucab/po4a, r=catamorphism
As per https://mail.mozilla.org/pipermail/rust-dev/2013-July/004685.html This is the initial machinery to setup the l10n infrastructure for markdown documentation. A new "docs-l10n" target will take care of generating, updating and then building .pot and .po files, and later on the final .md. This commit includes the .pot for all current .md docs; they can be feed directly to Mozilla Verbatim if wanted. Please note that po4a only provides the orig.md -> .pot -> l10n.po -> l10n.md flow. The l10n.md -> l10n.html generation is not currently built in the makefile, as no language has been enabled.
2 parents ee10246 + 7a4210a commit 62bb843

10 files changed

+14909
-0
lines changed

doc/po/rust.md.pot

Lines changed: 6389 additions & 0 deletions
Large diffs are not rendered by default.

doc/po/rustpkg.md.pot

Lines changed: 315 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,315 @@
1+
# SOME DESCRIPTIVE TITLE
2+
# Copyright (C) YEAR Free Software Foundation, Inc.
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: PACKAGE VERSION\n"
10+
"POT-Creation-Date: 2013-07-07 21:10+0300\n"
11+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13+
"Language-Team: LANGUAGE <[email protected]>\n"
14+
"Language: \n"
15+
"MIME-Version: 1.0\n"
16+
"Content-Type: text/plain; charset=CHARSET\n"
17+
"Content-Transfer-Encoding: 8bit\n"
18+
19+
#. type: Plain text
20+
#: doc/rust.md:4 doc/rustpkg.md:4 doc/tutorial.md:4
21+
#: doc/tutorial-borrowed-ptr.md:4 doc/tutorial-ffi.md:4
22+
#: doc/tutorial-macros.md:4 doc/tutorial-tasks.md:4 doc/tut.md:4
23+
msgid "# Introduction"
24+
msgstr ""
25+
26+
#. type: Plain text
27+
#: doc/rust.md:30 doc/rustpkg.md:8
28+
msgid "## Disclaimer"
29+
msgstr ""
30+
31+
#. type: Plain text
32+
#: doc/rustpkg.md:2
33+
msgid "% Rustpkg Reference Manual"
34+
msgstr ""
35+
36+
#. type: Plain text
37+
#: doc/rustpkg.md:6
38+
msgid ""
39+
"This document is the reference manual for the Rustpkg packaging and build "
40+
"tool for the Rust programming language."
41+
msgstr ""
42+
43+
#. type: Plain text
44+
#: doc/rustpkg.md:12
45+
msgid ""
46+
"Rustpkg is a work in progress, as is this reference manual. If the actual "
47+
"behavior of rustpkg differs from the behavior described in this reference, "
48+
"that reflects either an incompleteness or a bug in rustpkg."
49+
msgstr ""
50+
51+
#. type: Plain text
52+
#: doc/rustpkg.md:14
53+
msgid "# Package searching"
54+
msgstr ""
55+
56+
#. type: Plain text
57+
#: doc/rustpkg.md:17
58+
msgid ""
59+
"rustpkg searches for packages using the `RUST_PATH` environment variable, "
60+
"which is a colon-separated list (semicolon-separated on Windows) of "
61+
"directories."
62+
msgstr ""
63+
64+
#. type: Plain text
65+
#: doc/rustpkg.md:19
66+
msgid "Each directory in this list is a *workspace* for rustpkg."
67+
msgstr ""
68+
69+
#. type: Plain text
70+
#: doc/rustpkg.md:30
71+
msgid ""
72+
"`RUST_PATH` implicitly contains an entry for `./.rust` (as well as `../."
73+
"rust`, `../../.rust`, and so on for every parent of `.` up to the filesystem "
74+
"root). That means that if `RUST_PATH` is not set, then rustpkg will still "
75+
"search for workspaces in `./.rust` and so on. `RUST_PATH` also implicitly "
76+
"contains an entry for the system path: `/usr/local` or the equivalent on "
77+
"Windows. This entry comes after the implicit entries for `./.rust` and so "
78+
"on. Finally, the last implicit entry in `RUST_PATH` is `~/.rust` or the "
79+
"equivalent on Windows."
80+
msgstr ""
81+
82+
#. type: Plain text
83+
#: doc/rustpkg.md:32
84+
msgid "Each workspace may contain one or more packages."
85+
msgstr ""
86+
87+
#. type: Plain text
88+
#: doc/rustpkg.md:38
89+
msgid ""
90+
"When building code that contains one or more directives of the form `extern "
91+
"mod P`, rustpkg automatically searches for packages named `P` in the "
92+
"`RUST_PATH` (as described above). It builds those dependencies if "
93+
"necessary. Thus, when using rustpkg, there is no need for `-L` flags to "
94+
"tell the linker where to find libraries for external crates."
95+
msgstr ""
96+
97+
#. type: Plain text
98+
#: doc/rustpkg.md:40
99+
msgid "# Package structure"
100+
msgstr ""
101+
102+
#. type: Plain text
103+
#: doc/rustpkg.md:42
104+
msgid "A valid workspace must contain each of the following subdirectories:"
105+
msgstr ""
106+
107+
#. type: Bullet: '* '
108+
#: doc/rustpkg.md:44
109+
msgid ""
110+
"'src/': contains one subdirectory per package. Each subdirectory contains "
111+
"source files for a given package."
112+
msgstr ""
113+
114+
#. type: Plain text
115+
#: doc/rustpkg.md:49
116+
#, no-wrap
117+
msgid ""
118+
" For example, if `foo` is a workspace containing the package `bar`,\n"
119+
" then `foo/src/bar/main.rs` could be the `main` entry point for\n"
120+
" building a `bar` executable.\n"
121+
"* 'lib/': `rustpkg install` installs libraries into a target-specific subdirectory of this directory.\n"
122+
msgstr ""
123+
124+
#. type: Plain text
125+
#: doc/rustpkg.md:56
126+
#, no-wrap
127+
msgid ""
128+
" For example, on a 64-bit machine running Mac OS X,\n"
129+
" if `foo` is a workspace containing the package `bar`,\n"
130+
" rustpkg will install libraries for bar to `foo/lib/x86_64-apple-darwin/`.\n"
131+
" The libraries will have names of the form `foo/lib/x86_64-apple-darwin/libbar-[hash].dylib`,\n"
132+
" where [hash] is a hash of the package ID.\n"
133+
"* 'bin/': `rustpkg install` installs executable binaries into a target-specific subdirectory of this directory.\n"
134+
msgstr ""
135+
136+
#. type: Plain text
137+
#: doc/rustpkg.md:63
138+
#, no-wrap
139+
msgid ""
140+
" For example, on a 64-bit machine running Mac OS X,\n"
141+
" if `foo` is a workspace, containing the package `bar`,\n"
142+
" rustpkg will install executables for `bar` to\n"
143+
" `foo/bin/x86_64-apple-darwin/`.\n"
144+
" The executables will have names of the form `foo/bin/x86_64-apple-darwin/bar`.\n"
145+
"* 'build/': `rustpkg build` stores temporary build artifacts in a target-specific subdirectory of this directory.\n"
146+
msgstr ""
147+
148+
#. type: Plain text
149+
#: doc/rustpkg.md:67
150+
#, no-wrap
151+
msgid ""
152+
" For example, on a 64-bit machine running Mac OS X,\n"
153+
" if `foo` is a workspace containing the package `bar` and `foo/src/bar/main.rs` exists,\n"
154+
" then `rustpkg build` will create `foo/build/x86_64-apple-darwin/bar/main.o`.\n"
155+
msgstr ""
156+
157+
#. type: Plain text
158+
#: doc/rustpkg.md:69
159+
msgid "# Package identifiers"
160+
msgstr ""
161+
162+
#. type: Plain text
163+
#: doc/rustpkg.md:79
164+
msgid ""
165+
"A package identifier identifies a package uniquely. A package can be stored "
166+
"in a workspace on the local file system, or on a remote Web server, in which "
167+
"case the package ID resembles a URL. For example, `github.com/mozilla/rust` "
168+
"is a package ID that would refer to the git repository browsable at `http://"
169+
"github.com/mozilla/rust`. A package ID can also specify a version, like: "
170+
"`github.com/mozilla/rust#0.3`. In this case, `rustpkg` will check that the "
171+
"repository `github.com/mozilla/rust` has a tag named `0.3`, and report an "
172+
"error otherwise."
173+
msgstr ""
174+
175+
#. type: Plain text
176+
#: doc/rustpkg.md:81
177+
msgid "## Source files"
178+
msgstr ""
179+
180+
#. type: Plain text
181+
#: doc/rustpkg.md:83
182+
msgid ""
183+
"rustpkg searches for four different fixed filenames in order to determine "
184+
"the crates to build:"
185+
msgstr ""
186+
187+
#. type: Bullet: '* '
188+
#: doc/rustpkg.md:88
189+
msgid "`main.rs`: Assumed to be a main entry point for building an executable."
190+
msgstr ""
191+
192+
#. type: Bullet: '* '
193+
#: doc/rustpkg.md:88
194+
msgid "`lib.rs`: Assumed to be a library crate."
195+
msgstr ""
196+
197+
#. type: Bullet: '* '
198+
#: doc/rustpkg.md:88
199+
msgid ""
200+
"`test.rs`: Assumed to contain tests declared with the `#[test]` attribute."
201+
msgstr ""
202+
203+
#. type: Bullet: '* '
204+
#: doc/rustpkg.md:88
205+
msgid ""
206+
"`bench.rs`: Assumed to contain benchmarks declared with the `#[bench]` "
207+
"attribute."
208+
msgstr ""
209+
210+
#. type: Plain text
211+
#: doc/rustpkg.md:90
212+
msgid "## Versions"
213+
msgstr ""
214+
215+
#. type: Plain text
216+
#: doc/rustpkg.md:97
217+
msgid ""
218+
"`rustpkg` packages do not need to declare their versions with an attribute "
219+
"inside one of the source files, because `rustpkg` infers it from the version "
220+
"control system. When building a package that is in a `git` repository, "
221+
"`rustpkg` assumes that the most recent tag specifies the current version. "
222+
"When building a package that is not under version control, or that has no "
223+
"tags, `rustpkg` assumes the intended version is 0.1."
224+
msgstr ""
225+
226+
#. type: Plain text
227+
#: doc/rustpkg.md:99
228+
msgid "# Dependencies"
229+
msgstr ""
230+
231+
#. type: Plain text
232+
#: doc/rustpkg.md:103
233+
msgid ""
234+
"rustpkg infers dependencies from `extern mod` directives. Thus, there "
235+
"should be no need to pass a `-L` flag to rustpkg to tell it where to find a "
236+
"library. (In the future, it will also be possible to write an `extern mod` "
237+
"directive referring to a remote package.)"
238+
msgstr ""
239+
240+
#. type: Plain text
241+
#: doc/rustpkg.md:105
242+
msgid "# Custom build scripts"
243+
msgstr ""
244+
245+
#. type: Plain text
246+
#: doc/rustpkg.md:109
247+
msgid ""
248+
"A file called `pkg.rs` at the root level in a workspace is called a *package "
249+
"script*. If a package script exists, rustpkg executes it to build the "
250+
"package rather than inferring crates as described previously."
251+
msgstr ""
252+
253+
#. type: Plain text
254+
#: doc/rustpkg.md:113
255+
msgid ""
256+
"Inside `pkg.rs`, it's possible to call back into rustpkg to finish up the "
257+
"build. `rustpkg::api` contains functions to build, install, or clean "
258+
"libraries and executables in the way rustpkg normally would without custom "
259+
"build logic."
260+
msgstr ""
261+
262+
#. type: Plain text
263+
#: doc/rustpkg.md:115
264+
msgid "# Command reference"
265+
msgstr ""
266+
267+
#. type: Plain text
268+
#: doc/rustpkg.md:117
269+
msgid "## build"
270+
msgstr ""
271+
272+
#. type: Plain text
273+
#: doc/rustpkg.md:123
274+
msgid ""
275+
"`rustpkg build foo` searches for a package with ID `foo` and builds it in "
276+
"any workspace(s) where it finds one. Supposing such packages are found in "
277+
"workspaces X, Y, and Z, the command leaves behind files in `X`'s, `Y`'s, and "
278+
"`Z`'s `build` directories, but not in their `lib` or `bin` directories."
279+
msgstr ""
280+
281+
#. type: Plain text
282+
#: doc/rustpkg.md:125
283+
msgid "## clean"
284+
msgstr ""
285+
286+
#. type: Plain text
287+
#: doc/rustpkg.md:127
288+
msgid "`rustpkg clean foo` deletes the contents of `foo`'s `build` directory."
289+
msgstr ""
290+
291+
#. type: Plain text
292+
#: doc/rustpkg.md:129
293+
msgid "## install"
294+
msgstr ""
295+
296+
#. type: Plain text
297+
#: doc/rustpkg.md:133
298+
msgid ""
299+
"`rustpkg install foo` builds the libraries and/or executables that are "
300+
"targets for `foo`, and then installs them either into `foo`'s `lib` and "
301+
"`bin` directories, or into the `lib` and `bin` subdirectories of the first "
302+
"entry in `RUST_PATH`."
303+
msgstr ""
304+
305+
#. type: Plain text
306+
#: doc/rustpkg.md:135
307+
msgid "## test"
308+
msgstr ""
309+
310+
#. type: Plain text
311+
#: doc/rustpkg.md:137
312+
msgid ""
313+
"`rustpkg test foo` builds `foo`'s `test.rs` file if necessary, then runs the "
314+
"resulting test executable."
315+
msgstr ""

0 commit comments

Comments
 (0)