xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/README (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1*946379e7SchristosThis directory contains simple examples of the use of GNU gettext.
2*946379e7SchristosEach example is a simple "hello world" program with a very small message
3*946379e7Schristoscatalog, written in a particular programming language for a particular
4*946379e7Schristosenvironment.
5*946379e7Schristos
6*946379e7Schristos    Example                    Language          GUI Environment
7*946379e7Schristos
8*946379e7Schristos    hello-c                    C
9*946379e7Schristos    hello-c-gnome              C                 GNOME
10*946379e7Schristos    hello-c++                  C++
11*946379e7Schristos    hello-c++-qt               C++               Qt
12*946379e7Schristos    hello-c++-kde              C++               KDE
13*946379e7Schristos    hello-c++-gnome            C++               GNOME
14*946379e7Schristos    hello-c++-wxwidgets        C++               wxWidgets
15*946379e7Schristos    hello-objc                 ObjectiveC
16*946379e7Schristos    hello-objc-gnustep         ObjectiveC        GNUstep
17*946379e7Schristos    hello-objc-gnome           ObjectiveC        GNOME
18*946379e7Schristos    hello-sh                   Shell
19*946379e7Schristos    hello-python               Python
20*946379e7Schristos    hello-clisp                Lisp
21*946379e7Schristos    hello-librep               librep
22*946379e7Schristos    hello-guile                Scheme
23*946379e7Schristos    hello-smalltalk            Smalltalk
24*946379e7Schristos    hello-java                 Java
25*946379e7Schristos    hello-java-awt             Java              AWT
26*946379e7Schristos    hello-java-swing           Java              Swing
27*946379e7Schristos    hello-csharp               C#
28*946379e7Schristos    hello-csharp-forms         C#                Forms
29*946379e7Schristos    hello-gawk                 awk
30*946379e7Schristos    hello-pascal               Pascal
31*946379e7Schristos    hello-ycp                  YCP               libyui
32*946379e7Schristos    hello-tcl                  Tcl
33*946379e7Schristos    hello-tcl-tk               Tcl               Tk
34*946379e7Schristos    hello-perl                 Perl
35*946379e7Schristos    hello-php                  PHP
36*946379e7Schristos
37*946379e7SchristosBefore building an example, you need to
38*946379e7Schristos  1. Build and install the GNU gettext package, as described in the INSTALL
39*946379e7Schristos     file.
40*946379e7Schristos  2. cd to the example and do
41*946379e7Schristos        ./autogen.sh
42*946379e7Schristos  3. Then you can build the example as usual:
43*946379e7Schristos        ./configure --prefix=/some/prefix
44*946379e7Schristos        make
45*946379e7Schristos        make install
46*946379e7Schristos     and see it work by executing
47*946379e7Schristos        /some/prefix/bin/hello
48*946379e7Schristos
49