@c This file is part of the GNU gettext manual.
@c Copyright (C) 1995-2025 Free Software Foundation, Inc.
@c See the file gettext.texi for copying conditions.

@node Modula-2
@subsection Modula-2
@cindex Modula-2

@table @asis
@item RPMs
gcc-gm2, libgm2

@item Ubuntu packages
gm2

@item File extension
@code{mod}, @code{def}

@item String syntax
@code{'abc'}, @code{"abc"}

@item gettext shorthand
---

@item gettext/ngettext functions
@code{Gettext}, @code{DGettext}, @code{DCGettext},
@code{NGettext}, @code{DNGettext}, @code{DCNGettext}

@item textdomain
@code{TextDomain} function

@item bindtextdomain
@code{BindTextDomain} function

@item setlocale
Programmer must call @code{SetLocale (LC_ALL, "")}

@item Prerequisite
@code{FROM Libintl IMPORT Gettext ...;}

@item Use or emulate GNU gettext
Use

@item Extractor
@code{xgettext}

@item Formatting with positions
---

@item Portability
fully portable to all platforms supported by GNU Modula-2

@item po-mode marking
---
@end table

An example is available in the @file{examples} directory: @code{hello-modula2}.
