@@ -60,7 +60,6 @@ You can configure the behavior and output of the `tldr` client by setting enviro
60
60
export TLDR_CACHE_MAX_AGE=720
61
61
export TLDR_PAGES_SOURCE_LOCATION="https://raw.githubusercontent.com/tldr-pages/tldr/master/pages"
62
62
export TLDR_DOWNLOAD_CACHE_LOCATION="https://tldr-pages.github.io/assets/tldr.zip"
63
- export TLDR_LANGUAGE="en"
64
63
65
64
### Cache
66
65
@@ -109,16 +108,16 @@ Any of the values of above may be omitted. For example, you can do similar thing
109
108
* ` TLDR_COLOR_PARAMETER="red on_yellow underline" ` for underlined red text on yellow background
110
109
* ` TLDR_COLOR_NAME="bold underline" ` for default system font and background colors with underline and bolded effects
111
110
112
- ### Language
111
+ ### Language
113
112
114
113
The language that tldr will use is dependent on a number of factors. If you specify a language via the
115
114
` --language ` flag, tldr will attempt to use that language and only that language. Otherwise, it will
116
- default to language set using either ` TLDR_LANGUAGE ` before falling back to ` LANG ` (ignoring the value ` C ` ).
117
- If neither are set, then tldr will always attempt to get the ` en ` page. Finally, if ` LANGUAGES ` is set, it uses
118
- this as the priority list to try languages in, with the exception that it will attempt ` TLDR_LANGUAGE ` and ` LANG `
119
- first, and if neither are set, will use ` en ` last (assuming it does not already appear somewhere in ` LANGUAGES ` ).
115
+ default to language set using ` LANGUAGE ` and ` LANG ` (ignoring the value ` C ` and ` POSIX ` ).
116
+ If neither are set, then tldr will always attempt to get the ` en ` page. Finally, if ` LANG ` is set, it uses ` LANGUAGE ` , if set,
117
+ first as the priority list to try languages in, followed by ` LANG ` if not included in ` LANGUAGE `
118
+ and ` en ` as fallback (assuming it does not already appear somewhere in ` LANGUAGE ` or ` LANG ` ).
120
119
All language values should be set to a value that follows [ RFC 1766] ( https://tools.ietf.org/html/rfc1766.html ) ,
121
- with the special exception of ` C ` which is ignored.
120
+ with the special exception of ` C ` and ` POSIX ` which is ignored.
122
121
123
122
### Remote source
124
123
0 commit comments