QuestionQ20

Essential Commands

Which command should be added to /etc/bash_profile to set the message language for an internationalized program to Portuguese (pt)?

  • A export LANGUAGE="pt"
  • B export MESSAGE="pt"
  • C export UI_MESSAGES="pt"
  • D export LC_MESSAGES="pt"
  • E export ALL_MESSAGES="pt"
Explanation

LC_MESSAGES is the standard locale environment variable that controls the language used for displaying program messages in internationalized (gettext-enabled) applications. Exporting LC_MESSAGES="pt" in a login shell configuration file such as /etc/bash_profile makes this setting apply to all users' sessions, causing compliant programs to output their messages in Portuguese. This is part of the standard POSIX/glibc locale category set (LC_CTYPE, LC_NUMERIC, LC_TIME, LC_MESSAGES, etc.) used in Linux internationalisation, as covered in LPIC topic 107.3.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!