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

Get language from headers #2978

Closed
ngosang opened this issue Mar 14, 2017 · 2 comments
Closed

Get language from headers #2978

ngosang opened this issue Mar 14, 2017 · 2 comments

Comments

@ngosang
Copy link
Contributor

ngosang commented Mar 14, 2017

Issue details

Currently you are getting the language information from the "lang" tag, but many sites doesn't have this tag and uses HTTP headers instead.
My proposal is to use the "lang" tag and if it's not available get the language from the header "Content-Language".
Example URl without tag but with header:
http://www.investopedia.com/university/introduction-stock-trader-types/pivot-traders.asp

Environment

  • wallabag 2.2.2
@tcitworld
Copy link
Member

Please report this to Graby instead.

@tcitworld
Copy link
Member

But thanks for the tip ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants