Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CiviCRM: rebuild multilingual views
# Drupal 7
drush php-eval 'civicrm_initialize(); CRM_Core_I18n_Schema::rebuildMultilingualSchema(["en_US","fr_CA"], NULL);'
# Drupal 8
drush php-eval '\Drupal::service('civicrm')->initialize(); CRM_Core_I18n_Schema::rebuildMultilingualSchema(["en_US","fr_CA"], NULL);'
# WordPress
wp eval 'civicrm_initialize(); CRM_Core_I18n_Schema::rebuildMultilingualSchema(["en_US","fr_CA"], NULL);'
@adixon

This comment has been minimized.

Copy link

adixon commented Sep 12, 2017

Just what I needed today, thanks!

@shaneonabike

This comment has been minimized.

Copy link

shaneonabike commented Mar 19, 2018

Wooooa life saver!

@MegaphoneJon

This comment has been minimized.

Copy link

MegaphoneJon commented Apr 20, 2018

Thank you @mlutfy!

@mlutfy

This comment has been minimized.

Copy link
Owner Author

mlutfy commented Apr 23, 2018

In CiviCRM 5.1, there will be a new API for rebuilding the multi-lingual schema: civicrm/civicrm-core#11967

drush cvapi System.rebuildmultilingualschema

wp civicrm api System.rebuildmultilingualschema

(Thanks to @seamuslee001)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.