Created
December 11, 2014 09:49
-
-
Save quimic-gist/1be18c65a8b2088cd3af to your computer and use it in GitHub Desktop.
Drupal: Download and install drupal in a specific language
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
# download latest drupal core | |
drush dl drupal | |
mv drupal-7.xx mysitedirectory | |
# download appropriate language files from http://ftp.drupal.org/files/translations/7.x/drupal and place them in mysitedirectory/profiles/standard/translations | |
# install in French | |
drush si --db-url=mysql://dbusername:dbpassword@localhost/dbname --db-su=name --db-su-pw=password --site-name="Your New Site" --locale=fr --account-name=siteadm1 --account-pass=siteadm1password --account-mail=admaddress@mail.com | |
# Add French and make default | |
drush dl drush_language l10n_update -y && drush en locale -y && drush language-add fr -y && drush language-enable fr -y && drush language-default fr -y | |
# Enable language management modules and update language | |
drush en drush_language l10n_update -y && l10n-update-refresh -y && drush l10n-update -y | |
# Final step | |
drush cron && drush cc all -y && drush st |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment