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

BBC language fix #1833

Closed
wants to merge 1 commit into from
Closed

BBC language fix #1833

wants to merge 1 commit into from

Conversation

leoncastro
Copy link

Language code en-GB for the BBC must not be fixed (as done here), because it uses different languages (examples: fr, es, pt, ru, ...). Language can be found in the HTML lang tag, using the preset only as fallback.

Maybe it works if you replace that line with:
item.language = ZU.xpathText(doc, '//*/@lang/') or "en-GB";

@zuphilip
Copy link
Contributor

Thanks @leoncastro for the try, but that does not work and is not valid JS.

Anyway, I see the issue and can fix it, which might be easier.

zuphilip added a commit to zuphilip/translators that referenced this pull request Jun 10, 2019
@leoncastro
Copy link
Author

My bad. Replace "or" with "||" and you will get an easier, working and valid JS.
Anyway, this pull can be closed if any other effective solution is applied.

@zuphilip
Copy link
Contributor

Superseeded by #1956.

@zuphilip zuphilip closed this Jun 12, 2019
zuphilip added a commit to zuphilip/translators that referenced this pull request Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants