Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 976
    • Issues 976
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #478

Closed
Open
Opened Oct 26, 2018 by freeform.steph@freeform.steph

When displaying contribution page validation errors or confirmation screen, CiviCRM switches to the default language instead of remaining in the current language

When using a contribution form in French with the confirmation page enabled, the page redirects to the English confirmation page url instead of the French.

Start here: https://domain.ca/fr/civicrm/contribute/transact?reset=1&id=[cid]

End here: https://domain.ca/en/civicrm/contribute/transact?_qf_Confirm_display=true&qfKey=[key]

If I manually switch to the French url, everything looks OK, but if you hit the CiviCRM 'go back' button, it will take you back but switch to English again.

If you attempt to go to the confirmation page but the form doesn't validate, while the URL doesn't change, the contents switch to English - all except for price set options (price set labels and help text are in English though).

This is our set-up:

  • Drupal 7 with language detection based on url language prefix (en, or fr)
  • Multilingual site using CiviCRM 5.6.1 (latest at time of writing)
  • 'Inherit CMS Language' is enabled
  • Default language is en_CA, secondary language is fr_CA

The bilingual demo site is currently out of date so I've been unable to confirm the issue outside of our own site.

Cross-posted on Stack Exchange: https://civicrm.stackexchange.com/questions/27074/when-display-contribution-page-validation-errors-or-confirmation-screen-civicrm

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#478