PayPal IPN Received: `dbLocale` is always the default locale when Multilanguage is enabled
Overview
Reproduction steps
- Enable Multilanguage and set at least 2 languages
- Create a Contribution Page with
- "Receipt Message" text in 2 languages
- Enable a payment method with "PayPal - Website Payments Standard" payment processor
- Open Test-drive Contribution Page in the first language
- Make a PayPal payment
- Redo the test with another language
Current behaviour
The recept_text
in Contributions - Receipt (on-line)
email is always in one language, that is the system language.
Expected behaviour
The recept_text
in Contributions - Receipt (on-line)
email must be the contact preferred language.
Environment information
- CiviCRM: 5.72.0
- PHP: 8.1
- CMS: WordPress
Comments
The PayPal IPN does not use lcMessages
and so the dbLocale
is set to system language. Or perhaps it would be better if the language was set to the prefered language of the contact of the contribution.
The function getLocaleTableName
of CRM_Contribute_DAO_ContributionPage
returns the table with system language suffix.