Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: translate(dest=[]) passed language is not supported: None #287

Closed
mrf345 opened this issue Mar 17, 2023 · 0 comments
Closed
Labels

Comments

@mrf345
Copy link
Owner

mrf345 commented Mar 17, 2023

Describe the bug
When using a browser other than firefox, and chrome, the default language session variable seems to be missing.

To Reproduce
Steps to reproduce the issue:

  1. Use browser, other than chrome, and firefox.

Error:

  File "/home/mrf3/Projects/FQM/templates/index.html", line 28, in top-level template code
    {{ beloadingNotifier(version, beload=False, release=translate("You are using an older version of FQM, a newer release is available on fqms.github.io", 'en', [defLang]), firefox=translate("You are not using Firefox browser, which this project is designed and most suited for.", 'en', [defLang])) }}
  File "/home/mrf3/Projects/FQM/.venv/lib/python3.9/site-packages/flask_googletrans/__init__.py", line 116, in translate
    raise(AttributeError(
AttributeError: translate(dest=[]) passed language is not supported: None 
@mrf345 mrf345 added the bug label Mar 17, 2023
@mrf345 mrf345 closed this as completed in 3c9abd2 Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant