Next: GNU guile - Scheme, Previous: C#, Up: Individual Programming Languages [Contents][Index]
js
gjs
js
"abc"
'abc'
`abc`
tag`abc${expression}def{expression}...`
,
see the description of ‘--tag’ in Invoking the xgettext
Program.
_("abc")
gettext
, dgettext
, dcgettext
, ngettext
,
dngettext
textdomain
function
bindtextdomain
function
automatic
—
use, or emulate
xgettext
A format
method on strings can be used.
But since it is not standard in JavaScript,
you have to enable it yourself, through
const Format = imports.format; String.prototype.format = Format.format;
On platforms without gettext, the functions are not available.
—