For a particular client to generate a feedback form we were loading in some custom data to show as the fields for the form without using a profile. The issue is that when we were loading it on the french version of the page all the custom data came out in english, This is because the url used to retrieve the custom data did not have the /fr/ prefix to it
- Set your database to be multilingual e.g en_US, fr_FR
- Create a custom form and ensure that you assign custom field entity_id and entity type values on the form.
- In your template include the CRM/common/CustomField.tpl.
- Load the french version of your newly created page and find the custom field labels and options etc are all in English .
Custom value labels are returned using English
Custom field labels should be in the other language
- CiviCRM: 5.20
- PHP: 7.1
- CMS: _Drupal 8