2

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 Answers1

3

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.

DopeGhoti
  • 76,081
  • 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? – GypsyCosmonaut Jul 27 '17 at 22:45
  • 3
    @GypsyCosmonaut, see https://unix.stackexchange.com/q/149111/135943 – Wildcard Jul 27 '17 at 22:49