misc doc fixes
This commit is contained in:
parent
f3a20562cf
commit
947bf8e109
|
@ -3,7 +3,7 @@
|
|||
|
||||
@gametitle["Pousse" "pousse" "Tic-Tac-Toe-like Game"]
|
||||
|
||||
@onscreen{Pousse} (French for "push", pronounced "poo-ss") is a 2
|
||||
@onscreen{Pousse} (French for ``push,'' pronounced ``poo-ss'') is a 2
|
||||
person game, played on an @math{N} by @math{N} board (usually 4 by 4).
|
||||
Initially the board is empty, and the players take turns inserting one
|
||||
marker of their color (@onscreen{X} or @onscreen{O}) on the board.
|
||||
|
|
|
@ -35,7 +35,7 @@ defined by the standard.
|
|||
dialects of Scheme within Racket.}
|
||||
|
||||
@|r6rs| defines both @defterm{libraries} and @defterm{top-level
|
||||
programs}. Both correspond to Rackey @defterm{modules} (see
|
||||
programs}. Both correspond to Racket @defterm{modules} (see
|
||||
@secref[#:doc guide-src "modules"]). That is, although @|r6rs| defines
|
||||
top-level programs as entry points, you can just as easily treat a
|
||||
library as an entry point when using Racket. The only difference
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#lang scribble/doc
|
||||
@(require scribble/manual
|
||||
(for-label string-constants
|
||||
scheme))
|
||||
racket))
|
||||
|
||||
@title{@bold{String Constants}: GUI Internationalization}
|
||||
|
||||
This library provides the facility for multiple languages in
|
||||
DrScheme's GUI.
|
||||
DrRacket's GUI.
|
||||
|
||||
@; ----------------------------------------------------------------------
|
||||
|
||||
|
@ -15,12 +15,12 @@ DrScheme's GUI.
|
|||
|
||||
@defform[(string-constant name)]{
|
||||
|
||||
This form returns the string constant named @scheme[name].}
|
||||
This form returns the string constant named @racket[name].}
|
||||
|
||||
@defform[(string-constants name)]{
|
||||
|
||||
This form returns a list of string constants, one for each language
|
||||
that DrScheme's GUI supports.}
|
||||
that DrRacket's GUI supports.}
|
||||
|
||||
@defform[(this-language)]{
|
||||
|
||||
|
@ -29,20 +29,20 @@ This form returns the name of the current language as a symbol.}
|
|||
@defform[(all-languages)]{
|
||||
|
||||
This form returns a list of symbols (in the same order as those
|
||||
returned from @scheme[string-constants]) naming each language.}
|
||||
returned from @racket[string-constants]) naming each language.}
|
||||
|
||||
@defproc[(set-language-pref [lang string?]) void?]{
|
||||
|
||||
Sets the language for the next run of DrScheme to @scheme[lang], which
|
||||
must be a symbol returned from @scheme[all-languages]. Does not affect the
|
||||
running DrScheme.}
|
||||
Sets the language for the next run of DrRacket to @racket[lang], which
|
||||
must be a symbol returned from @racket[all-languages]. Does not affect the
|
||||
running DrRacket.}
|
||||
|
||||
@; ----------------------------------------------------------------------
|
||||
|
||||
@section{Adding String Constants}
|
||||
@defmodule[string-constants/string-constant-lang]
|
||||
|
||||
To add string constants to DrScheme, see the files:
|
||||
To add string constants to DrRacket, see the files:
|
||||
|
||||
@itemize[
|
||||
@item{@filepath{english-string-constants.ss}}
|
||||
|
@ -53,7 +53,7 @@ To add string constants to DrScheme, see the files:
|
|||
@item{@filepath{italian-string-constants.ss}}]
|
||||
|
||||
Each file has the same format. They are each modules in the
|
||||
@schememodname[string-constants/string-constant-lang] language. The
|
||||
@racketmodname[string-constants/string-constant-lang] language. The
|
||||
body of each module is a finite mapping table that gives the mapping
|
||||
from the symbolic name of a string constant to its translation in the
|
||||
appropriate language.
|
||||
|
@ -72,15 +72,15 @@ the context of the strings whose symbol name might not be clear.
|
|||
@item{@indexed-envvar{PLTSTRINGCONSTANTS}}
|
||||
@item{@indexed-envvar{STRINGCONSTANTS}}]
|
||||
|
||||
If either of these environment variables are set, DrScheme
|
||||
If either of these environment variables are set, DrRacket
|
||||
shows you, during startup, which string constants are not
|
||||
yet defined for each language.
|
||||
|
||||
You can also specify which languages you are interested
|
||||
in. If either environment variable is bound to a symbol (as
|
||||
interpreted by @scheme[read]) you see only the corresponding
|
||||
interpreted by @racket[read]) you see only the corresponding
|
||||
language's messages. If either one is bound to a list of
|
||||
symbols (again, as interpreted by @scheme[read]) you see the
|
||||
symbols (again, as interpreted by @racket[read]) you see the
|
||||
messages for all the languages in the list. If either is
|
||||
bound to anything else, you see all of the languages.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user