Closed carlosneves0 closed 4 years ago
Does https://github.com/tldr-pages/tldr-python-client/issues/119 help? It's an issue with language set, most likely.
That was it! I'm gonna try making an alias env LANG=en_US.UTF-8 tldr
.
Thank you.
You can also do export TLDR_LANGUAGE=en
to achieve the same result.
This helped! I was having this issue for months and I didn't manage to solve it. Does export TLDR_LANGUAGE=en
solve this problem at a level of session, user or system?
Additionally, it would be great if it's possible to solve this problem, accepting all locales from the code itself!
Shouldn't there be a fallback if LANG is not set? Somehow it worked.
Perhaps the error message could be improved?
No pages were found for ls in your current language "$LANG"
1 page was found in english. Run `tldr --language en ls` to see it
Improvements to the language handling are a definite thing I'd like to do, but are on hold to think about until tldr-pages/tldr#4101 is merged. It alone brings in that we will always fallback to english as a language to try, which nicely fixes this whole thing.
I don't know if I understand well all what you said, but what I would do would be:
if $LANG not in langs_on_tldr_list:
fallback_to_english_function()
Maybe it could be great to be able to choose which language to use.
I installed this CLI using pacman, and recently it's not finding any documentation for any command.
How can we fix this?