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 JavaScript 6@subsection JavaScript 7 8@table @asis 9@item RPMs 10js 11 12@item Ubuntu packages 13gjs 14 15@item File extension 16@code{js} 17 18@item String syntax 19@itemize @bullet 20 21@item @code{"abc"} 22 23@item @code{'abc'} 24 25@item @code{`abc`} 26 27@end itemize 28 29@item gettext shorthand 30@code{_("abc")} 31 32@item gettext/ngettext functions 33@code{gettext}, @code{dgettext}, @code{dcgettext}, @code{ngettext}, 34@code{dngettext} 35 36@item textdomain 37@code{textdomain} function 38 39@item bindtextdomain 40@code{bindtextdomain} function 41 42@item setlocale 43automatic 44 45@item Prerequisite 46--- 47 48@item Use or emulate GNU gettext 49use, or emulate 50 51@item Extractor 52@code{xgettext} 53 54@item Formatting with positions 55--- 56 57@item Portability 58On platforms without gettext, the functions are not available. 59 60@item po-mode marking 61--- 62@end table 63