From cd398cbc7170411f8f67aa020e1ca2687a1a64c6 Mon Sep 17 00:00:00 2001 From: Darks Date: Mon, 21 Sep 2020 14:58:22 +0200 Subject: [PATCH] Try to get tldr in $LANG, fallback to en --- tldr.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tldr.py b/tldr.py index ba00e15..d51a7d4 100755 --- a/tldr.py +++ b/tldr.py @@ -425,6 +425,13 @@ def main(): options.platform, options.language ) + if not result: + result = get_page( + command, + options.source, + options.platform, + "en" + ) if not result: sys.exit(( "`{cmd}` documentation is not available. "