- Issue created by @nubeli
- πΊπΈUnited States markusa
If you happen to have or can get a backtrace, that could help diagnose this.
I'm going to guess the error is thrown from here: https://github.com/eileenmcnaughton/civicrm_entity/blob/4.0.x/src/Suppor...
But perhaps the entity type does get set there and no error, but later there is an error because its not a real entity type or has a matching database table.
Definitely this hasn't be tested, nor developed by Skvare:
https://docs.civicrm.org/user/en/latest/the-civicrm-community/localising...perhaps its due to the change from fr_FR to fr_CA ..
Do tables / MySQL Views get created that include the fr_CA or are they all fr_FR in the database?
Noting other multi-lingual code:
https://github.com/eileenmcnaughton/civicrm_entity/blob/4.0.x/civicrm_en... - π¨π¦Canada nubeli
I've got a PR https://github.com/eileenmcnaughton/civicrm_entity/pull/497. It will generate the entity types for all enabled locales instead of just the active one. The problem is that the code didn't account for the fact that entity types are cached so clearing cache depended on what the interface language was so it missed all the non-active locales.
- πΊπΈUnited States markusa
@nubeli
Can you provide me some instructions for setup to be equivalent to your instance?
Are you enabling French (France) here: /civicrm/admin/setting/localization?reset=1
Also French (Canada) ?
Any other configuration additional to default Civi setup?Is your Drupal installation also setup as multi-lingual, and does that matter for CiviCRM or this case?
Afterwards, what path is it to set the translations for French (Canada) for an event?
- π¨π¦Canada nubeli
On the Drupal side, set it up to multi-lingual: French and English. Drupal only has French (France) available.
On CiviCRM side, set it up to be multi-lingual with French (Canada) and English (Canada) (the latter is optional I think).
Then in
civicrm.settings.php
add:define('CIVICRM_LANGUAGE_MAPPING_FR', 'fr_CA'); define('CIVICRM_LANGUAGE_MAPPING_EN', 'en_CA');
It doesn't matter what page; no need to create events (I think). I think it displays an error only mentioning "event" because that's the first entity where it encounters the error. I got the error on the home page too.
example.org/fr
Automatically closed - issue fixed for 2 weeks with no activity.