As I was searching for an answer regarding what is $"..." , I came across this answer

The answer although tells what's $"..." but does not clarify with an example, it mentions about locale but I didn't understand that either which is why I still don't understand what is the purpose of $"..." , where do people use it and what do people use it for ?

I am looking for an example that explain this.


1 Answer 1


It is used to use your locale settings to allow the shell to translate text into the current locale (e. g. having LANGUAGE=de_DE echo $"Good morning" yield Guten Morgen). There is a fair amount of reading on how to set this up here.

  • What is locale ? Just the language settings ? So is $"..." used just for displaying text in the language the user selected as preference while installing the OS? Jul 27, 2017 at 22:45
  • 3
    @GypsyCosmonaut, see unix.stackexchange.com/q/149111/135943
    – Wildcard
    Jul 27, 2017 at 22:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .