• Home
Name Date Size #Lines LOC

..--

hello-c/12-May-2024-294199

hello-c++/12-May-2024-302206

hello-c++-gnome/12-May-2024-942800

hello-c++-kde/12-May-2024-26,23821,507

hello-c++-qt/12-May-2024-1,061773

hello-c++-wxwidgets/12-May-2024-1,018742

hello-c-gnome/12-May-2024-541421

hello-c-gnome3/12-May-2024-590437

hello-clisp/12-May-2024-598398

hello-csharp/12-May-2024-617396

hello-csharp-forms/12-May-2024-760510

hello-gawk/12-May-2024-586387

hello-guile/12-May-2024-590391

hello-java/12-May-2024-663431

hello-java-awt/12-May-2024-713474

hello-java-qtjambi/12-May-2024-738487

hello-java-swing/12-May-2024-711472

hello-librep/12-May-2024-599399

hello-objc/12-May-2024-296209

hello-objc-gnome/12-May-2024-554441

hello-objc-gnustep/12-May-2024-1,5251,284

hello-pascal/12-May-2024-644414

hello-perl/12-May-2024-621410

hello-php/12-May-2024-594395

hello-python/12-May-2024-593393

hello-sh/12-May-2024-581381

hello-smalltalk/12-May-2024-638431

hello-tcl/12-May-2024-510317

hello-tcl-tk/12-May-2024-518325

hello-ycp/12-May-2024-609410

po/12-May-2024-6,2225,135

ChangeLog.0D12-May-202442 KiB1,238901

HACKINGD12-May-2024143 63

Makefile.amD12-May-202414.4 KiB539504

READMED12-May-20244.2 KiB8779

check-examplesD12-May-202425.7 KiB831652

configure.acD12-May-20241.5 KiB4133

installpaths.inD12-May-20241 KiB2724

README

1This directory contains simple examples of the use of GNU gettext.
2Each example is a simple "hello world" program with a very small message
3catalog, written in a particular programming language for a particular
4environment.
5
6    Example                    Language          GUI Environment
7
8    hello-c                    C
9    hello-c-gnome              C                 GNOME (obsolete)
10    hello-c-gnome3             C                 GNOME 3.10 or later
11    hello-c++                  C++
12    hello-c++-qt               C++               Qt
13    hello-c++-kde              C++               KDE
14    hello-c++-gnome            C++               GNOME (obsolete)
15    hello-c++-wxwidgets        C++               wxWidgets
16    hello-objc                 ObjectiveC
17    hello-objc-gnustep         ObjectiveC        GNUstep
18    hello-objc-gnome           ObjectiveC        GNOME (obsolete)
19    hello-sh                   Shell
20    hello-python               Python
21    hello-clisp                Lisp
22    hello-librep               librep
23    hello-guile                Scheme
24    hello-smalltalk            Smalltalk
25    hello-java                 Java
26    hello-java-awt             Java              AWT
27    hello-java-swing           Java              Swing
28    hello-java-qtjambi         Java              Qt
29    hello-csharp               C#
30    hello-csharp-forms         C#                Forms
31    hello-gawk                 awk
32    hello-pascal               Pascal
33    hello-ycp                  YCP               libyui
34    hello-tcl                  Tcl
35    hello-tcl-tk               Tcl               Tk
36    hello-perl                 Perl
37    hello-php                  PHP
38
39Before building an example, you need to
40  1. Build and install the GNU gettext package, as described in the INSTALL
41     file.
42  2. cd to the example and do
43        ./autogen.sh
44  3. Then you can build the example as usual:
45        ./configure --prefix=/some/prefix
46        make
47        make install
48     and see it work by executing
49        /some/prefix/bin/hello
50
51The po/ directories of the examples use different binary catalog formats and
52Makefile types:
53
54    Example                    Binary catalog format   Makefile type
55
56    hello-c                    .gmo                    Makefile.in.in
57    hello-c-gnome              .gmo                    Makefile.in.in
58    hello-c-gnome3             .gmo                    Makefile.in.in
59    hello-c++                  .gmo                    Makefile.in.in
60    hello-c++-kde              .gmo                    Makefile.in.in
61    hello-c++-gnome            .gmo                    Makefile.in.in
62    hello-objc                 .gmo                    Makefile.in.in
63    hello-objc-gnome           .gmo                    Makefile.in.in
64    hello-c++-wxwidgets        .gmo                    Makefile.am
65    hello-sh                   .gmo                    Makefile.am
66    hello-python               .gmo                    Makefile.am
67    hello-clisp                .gmo                    Makefile.am
68    hello-librep               .gmo                    Makefile.am
69    hello-guile                .gmo                    Makefile.am
70    hello-smalltalk            .gmo                    Makefile.am
71    hello-gawk                 .gmo                    Makefile.am
72    hello-pascal               .gmo                    Makefile.am
73    hello-ycp                  .gmo                    Makefile.am
74    hello-perl                 .gmo                    Makefile.am
75    hello-php                  .gmo                    Makefile.am
76    hello-java                 .properties             Makefile.am
77    hello-java-awt             .properties             Makefile.am
78    hello-java-swing           .properties             Makefile.am
79    hello-java-qtjambi         .properties             Makefile.am
80    hello-csharp               .resources.dll          Makefile.am
81    hello-csharp-forms         .resources.dll          Makefile.am
82    hello-tcl                  .msg                    Makefile.am
83    hello-tcl-tk               .msg                    Makefile.am
84    hello-c++-qt               .qm                     Makefile.am
85    hello-objc-gnustep         .strings                GNUmakefile
86
87