Note: A simple language tag such as es is sufficient, but you may add a region identifier (e.g., es_AR for Argentina), and even a charset suffix (e.g., es_AR.UTF-8). Ls: no se puede acceder a NoSuchFile: No existe el archivo o el directorio Option 1: Set LANGUAGEĮxample: Switch to Spanish ( es) messages ad-hoc: $ LANGUAGE=es ls NoSuchFile Given that LANGUAGE is set by default on Ubuntu systems, namely to a substring of the LANG value that reflects either a simple language tag (e.g., es for Spanish) or a language-region tag (e.g., de_DE for the Germany variant of German), you must unset or override LANGUAGE in order for a different language's messages to take effect. Over POSIX-defined locale environment variables LC_ALL, LC_MESSAGES, and LANG (in that order). GNU gettext-based utilities give precedence to the nonstandard LANGUAGE environment variable Lekensteyn's helpful answer works great if you want to switch to US English on demand, as the OP requested, but if you want to switch to a different language on demand, more work is needed.īefore starting, you must install message tables with sudo apt-get install language-pack-, where is a simple RTF 5646 language subtag, such as es for Spanish. Ls: kan geen toegang krijgen tot /nonexistent: Bestand of map bestaat nietĬhange the locale for all commands executed in the current shell and include proofs again: $ LANG=C Ls: cannot access /nonexistent: No such file or directory Temporarily override the language for one program and show that it is really temporary: $ LANG=C ls /nonexistent (In order to temporarily change to non-English locales, see post.)Įxecuting a command with the default language settings and print the current locale settings: $ /nonexistentīash: /nonexistent: Bestand of map bestaat niet This C locale is always available without installing additional language packs. To change all locale settings to English, use LANG=C. You can view your current locale settings by executing the locale command. There are several environment variables available for changing language settings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |