Problem/Motivation

Currently the registrant entity doesn't have a language associated with it. We should add one so we can capture the language used by the registrant at the time they submit the registration form. This is especially useful in multilingual websites. It will also allow us to make sure the notification mails are sent in the user's language, and event managers have a record of the language used by the registrant.

Proposed resolution

We can just set a langcode base field on the entity and let ContentEntityBase handle the heavy lifting. We should make sure to populate the language when a registrant entity is created.

On the registrant type edit form we can choose which language to apply to a newly created registrant using the familiar form options supplied by the core language module:

CommentFileSizeAuthor
#2 registrant-language-settings.png23.15 KBpfrenssen
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pfrenssen created an issue. See original summary.

pfrenssen’s picture

Issue summary: View changes
StatusFileSize
new23.15 KB

pfrenssen’s picture

Status: Active » Needs review

  • pfrenssen committed f95daedb on 3.0.x
    Issue #3485904 by pfrenssen: Registrants should have a language
    
pfrenssen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.