[openstreetmap/openstreetmap-website] Change user.preferred_language to user.default_diary_language (PR #6014)

Anton Khorev notifications at github.com
Thu May 15 12:27:56 UTC 2025


You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6014

-- Commit Summary --

  * Test if preferred diary entry language is selected
  * Allow new diary entry language to be specified in params
  * Rename default_lang to diary_language_preference
  * Change user.preferred_language to user.default_diary_language supporting preferences
  * Add user.default_diary_language setter

-- File Changes --

    M .rubocop_todo.yml (2)
    M app/controllers/diary_entries_controller.rb (13)
    M app/models/user.rb (18)
    M test/controllers/diary_entries_controller_test.rb (64)
    M test/models/user_test.rb (68)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6014.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6014.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6014
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6014 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250515/19dec94a/attachment.htm>


More information about the rails-dev mailing list