From adc646c2a83486ad50c07dfdc242328c09f61698 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Mon, 22 May 2023 01:45:06 +0200 Subject: [PATCH] [tools] Comment how to register a free DeepL API account Signed-off-by: Alexander Borsuk --- tools/python/translate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/python/translate.py b/tools/python/translate.py index db157ad64d..351d9a302c 100755 --- a/tools/python/translate.py +++ b/tools/python/translate.py @@ -140,7 +140,9 @@ if __name__ == '__main__': if not 'DEEPL_FREE_API_KEY' in os.environ and not 'DEEPL_API_KEY' in os.environ: print('Error: neither DEEPL_FREE_API_KEY nor DEEPL_API_KEY environment variables are set.') - print('DeepL translations are not available.') + print('DeepL translations are not available. Register for a free Developer API account here:') + print('https://www.deepl.com/pro#developer') + print('and get the API key here: https://www.deepl.com/account/summary') exit(1) text_to_translate = ' '.join(sys.argv[1:])