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

wikipedia: implement language preferences in DB for channels & nicks #1916

Merged
merged 2 commits into from
Aug 14, 2020
Merged

wikipedia: implement language preferences in DB for channels & nicks #1916

merged 2 commits into from
Aug 14, 2020

Conversation

dgw
Copy link
Member

@dgw dgw commented Aug 3, 2020

Description

If the DB does not contain any relevant settings for the calling nick or the channel in which the command was run, falls back to the existing lang_per_channel config value (if set), then default_lang.

Note that the lang_per_channel setting is considered deprecated after this change. It has to stay defined in the section class (or it wouldn't be loaded), but it's been removed from everywhere possible and documented as deprecated in the code.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

Notes

Upon merging this PR, update #827 to request removal of fallback to deprecated lang_per_channel setting for 8.0 milestone.

@dgw dgw added this to the 7.1.0 milestone Aug 3, 2020
@dgw dgw requested a review from a team August 3, 2020 16:14
sopel/modules/wikipedia.py Outdated Show resolved Hide resolved
sopel/modules/wikipedia.py Show resolved Hide resolved
sopel/modules/wikipedia.py Show resolved Hide resolved
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑 it

dgw added 2 commits August 11, 2020 12:51
If the DB does not contain any relevant settings for the calling nick or
the channel in which the command was run, falls back to the existing
`lang_per_channel` config value (if set), then `default_lang`.
The former `from sopel.module import ...` line was getting WAY too long
when this PR was combined with more changes from `master` that happened
while it was in flight.
@dgw dgw merged commit 8577094 into sopel-irc:master Aug 14, 2020
@dgw dgw deleted the wikipedia-lang-overhaul branch August 14, 2020 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants