Prefixing a double-quoted string with a dollar sign (‘$’), such
as $"hello, world",
will cause the string to be translated according to the current locale.
gettext infrastructure performs the lookup and
translation, using the
TEXTDOMAIN shell variables, as explained below.
See the gettext documentation for additional details not covered here.
If the current locale is
if there are no translations available,
of if the string is not translated,
the dollar sign is ignored.
Since this is a form of double quoting, the string remains double-quoted
by default, whether or not it is translated and replaced.
noexpand_translation option is enabled
shopt builtin (see The Shopt Builtin),
translated strings are single-quoted instead of double-quoted.
The rest of this section is a brief overview of how you use gettext to create translations for strings in a shell script named scriptname. There are more details in the gettext documentation.