diff options
-rw-r--r-- | doc/bison.texi | 10 | ||||
-rw-r--r-- | examples/c/README.md | 2 | ||||
-rw-r--r-- | examples/c/bistromathic/Makefile | 2 | ||||
-rw-r--r-- | examples/c/bistromathic/README.md | 2 | ||||
-rw-r--r-- | examples/c/bistromathic/parse.y | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/doc/bison.texi b/doc/bison.texi index 8f3f25ea..e5cc7bd7 100644 --- a/doc/bison.texi +++ b/doc/bison.texi @@ -13953,10 +13953,10 @@ or nonzero, full tracing. Identify the Bison version and skeleton used to generate this parser. @end deftypecv -The internationalization in D is very simmilar to the one in C. The D +The internationalization in D is very similar to the one in C. The D parser uses @code{dgettext} for translating Bison messages. -To enable internationalisation, compile using +To enable internationalization, compile using @code{-version ENABLE_NLS -version YYENABLE_NLS} and import @code{bindtextdomain} and @code{textdomain} from C: @@ -13965,7 +13965,7 @@ extern(C) char* bindtextdomain(const char* domainname, const char* dirname); extern(C) char* textdomain(const char* domainname); @end example -The main function should load the translation catalogues, similarly to the +The main function should load the translation catalogs, similarly to the @file{c/bistromathic} example: @example @@ -13975,10 +13975,10 @@ int main() // Set up internationalization. setlocale(LC_ALL, ""); - // Use Bison's standard translation catalogue for error messages + // Use Bison's standard translation catalog for error messages // (the generated messages). bindtextdomain("bison-runtime", BISON_LOCALEDIR); - // For the translation catalogue of your own project, use the + // For the translation catalog of your own project, use the // name of your project. bindtextdomain("bison", LOCALEDIR); textdomain("bison"); diff --git a/examples/c/README.md b/examples/c/README.md index aa7461f8..483b77d7 100644 --- a/examples/c/README.md +++ b/examples/c/README.md @@ -60,7 +60,7 @@ This example demonstrates best practices when using Bison. push-parser API to feed the parser with the incoming tokens. - It features an interactive command line with completion based on the parser state, based on `yyexpected_tokens`. -- It uses Bison's standard catalogue for internationalization of generated +- It uses Bison's standard catalog for internationalization of generated messages. - It uses a custom syntax error with location, lookahead correction and token internationalization. diff --git a/examples/c/bistromathic/Makefile b/examples/c/bistromathic/Makefile index 9efeeb8d..ae6630e6 100644 --- a/examples/c/bistromathic/Makefile +++ b/examples/c/bistromathic/Makefile @@ -10,7 +10,7 @@ XSLTPROC = xsltproc CPPFLAGS = -I/opt/local/include LDFLAGS = -L/opt/local/lib -# Find the translation catalogue for Bison's generated messagess. +# Find the translation catalog for Bison's generated messagess. BISON_LOCALEDIR = $(shell $(BISON) $(BISON_FLAGS) --print-localedir) CPPFLAGS += -DENABLE_NLS -DBISON_LOCALEDIR='"$(BISON_LOCALEDIR)"' diff --git a/examples/c/bistromathic/README.md b/examples/c/bistromathic/README.md index 5147cea4..d08e91e1 100644 --- a/examples/c/bistromathic/README.md +++ b/examples/c/bistromathic/README.md @@ -9,7 +9,7 @@ This example demonstrates best practices when using Bison. push-parser API to feed the parser with the incoming tokens. - It features an interactive command line with completion based on the parser state, based on `yyexpected_tokens`. -- It uses Bison's standard catalogue for internationalization of generated +- It uses Bison's standard catalog for internationalization of generated messages. - It uses a custom syntax error with location, lookahead correction and token internationalization. diff --git a/examples/c/bistromathic/parse.y b/examples/c/bistromathic/parse.y index 25c2c5ec..37532857 100644 --- a/examples/c/bistromathic/parse.y +++ b/examples/c/bistromathic/parse.y @@ -37,7 +37,7 @@ # define YYENABLE_NLS 1 # include <libintl.h> // Unless specified otherwise, we expect bistromathic's own - // catalogue to be installed in the same tree as Bison's catalogue. + // catalog to be installed in the same tree as Bison's catalog. # ifndef LOCALEDIR # define LOCALEDIR BISON_LOCALEDIR # endif @@ -638,10 +638,10 @@ main (int argc, char const* argv[]) #if defined ENABLE_NLS && ENABLE_NLS // Set up internationalization. setlocale (LC_ALL, ""); - // Use Bison's standard translation catalogue for error messages + // Use Bison's standard translation catalog for error messages // (the generated messages). bindtextdomain ("bison-runtime", BISON_LOCALEDIR); - // The translation catalogue of bistromathic is actually included in + // The translation catalog of bistromathic is actually included in // Bison's. In your own project, use the name of your project. bindtextdomain ("bison", LOCALEDIR); textdomain ("bison"); |