Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Breaking changes in v3.0.0 for users with language 'pt' #12082
#11799 changes the language 'pt' to 'pt-PT'
I have notice that users that have set their language to 'pt' in the past (locale in the database) do not receive notifications (possible other issues) and there a lot of errors in Sidekiq because the language doesn't exist in https://github.com/tootsuite/mastodon/blob/master/config/application.rb
If the user affected goes to Preferences->Appearance and presses the 'save' button, the database gets updated and the issue is solved.
For admins, running something like
Probably this could be done in a future release automatically. Unfortunately this is way outside my knowledge of Ruby and I don't feel comfortable creating a PR that touches the database.
Also, it wouldn't be a bad idea to mention in a future release that anyone using
We should add code that maintains the backwards compatibility, probably a migration for existing users and some special-casing for the DEFAULT_LOCALE case…
On Sat, Oct 5, 2019 at 9:02 PM Takeshi Umeda ***@***.***> wrote: If you write within the knowledge of rails, bin/rails r "User.where(locale: 'pt').in_batches.update_all(locale: 'pt-PT')" — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#12082?email_source=notifications&email_token=AABZCVYO4OANN7LN4RRMWXDQNE2I7A5CNFSM4I5YNPO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAN7CZQ#issuecomment-538702182>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AABZCV6GKEUQUXGG2HC6XNDQNE2I7ANCNFSM4I5YNPOQ> .