1@c This file is part of the GNU gettext manual. 2@c Copyright (C) 1995-2020 Free Software Foundation, Inc. 3@c See the file gettext.texi for copying conditions. 4 5@node Smalltalk 6@subsection GNU Smalltalk 7@cindex Smalltalk 8 9@table @asis 10@item RPMs 11smalltalk 12 13@item Ubuntu packages 14gnu-smalltalk 15 16@item File extension 17@code{st} 18 19@item String syntax 20@code{'abc'} 21 22@item gettext shorthand 23@code{NLS ? 'abc'} 24 25@item gettext/ngettext functions 26@code{LcMessagesDomain>>#at:}, @code{LcMessagesDomain>>#at:plural:with:} 27 28@item textdomain 29@code{LcMessages>>#domain:localeDirectory:} (returns a @code{LcMessagesDomain} 30object).@* 31Example: @code{I18N Locale default messages domain: 'gettext' localeDirectory: /usr/local/share/locale'} 32 33@item bindtextdomain 34@code{LcMessages>>#domain:localeDirectory:}, see above. 35 36@item setlocale 37Automatic if you use @code{I18N Locale default}. 38 39@item Prerequisite 40@code{PackageLoader fileInPackage: 'I18N'!} 41 42@item Use or emulate GNU gettext 43emulate 44 45@item Extractor 46@code{xgettext} 47 48@item Formatting with positions 49@code{'%1 %2' bindWith: 'Hello' with: 'world'} 50 51@item Portability 52fully portable 53 54@item po-mode marking 55--- 56@end table 57 58An example is available in the @file{examples} directory: 59@code{hello-smalltalk}. 60