Skip to content

Instantly share code, notes, and snippets.

@quimic-gist
Created December 11, 2014 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quimic-gist/1be18c65a8b2088cd3af to your computer and use it in GitHub Desktop.
Save quimic-gist/1be18c65a8b2088cd3af to your computer and use it in GitHub Desktop.
Drupal: Download and install drupal in a specific language
# 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