Last active
April 24, 2024 13:04
-
-
Save mlutfy/647e6325a09079e4f08f273af64900d9 to your computer and use it in GitHub Desktop.
CiviCRM: rebuild multilingual views
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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);' |
Wooooa life saver!
Thank you @mlutfy!
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)
cv php:eval 'CRM_Core_I18n_Schema::rebuildMultilingualSchema(["en_US","fr_FR"], NULL);'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just what I needed today, thanks!