gettext: JavaScript
15.5.5 JavaScript
-----------------
RPMs
js
Ubuntu packages
gjs
File extension
‘js’
String syntax
• ‘"abc"’
• ‘'abc'’
• ‘`abc`’
gettext shorthand
‘_("abc")’
gettext/ngettext functions
‘gettext’, ‘dgettext’, ‘dcgettext’, ‘ngettext’, ‘dngettext’
textdomain
‘textdomain’ function
bindtextdomain
‘bindtextdomain’ function
setlocale
automatic
Prerequisite
—
Use or emulate GNU gettext
use, or emulate
Extractor
‘xgettext’
Formatting with positions
—
Portability
On platforms without gettext, the functions are not available.
po-mode marking
—