I'm trying to use this Drush command:

drush variable-set site_name "My site name"

I have no problem at all to use this command when the site has only 1 language. But it doesn't seem to work (have any effect) in a multilingual site when the "site name" is to be translated to additional languages.

Is there a way to use this Drush command to set the site-name in every of those additional languages? Either at once or in every language (in several steps)?

  • Any feedback about my answer? Did you get it to work somehow? If so: how? May 14, 2016 at 7:05

1 Answer 1


I understand your question as trying to use Drush for setting the site name, using Drush command like so:

drush variable-set site_name "Some name here"

And this for a multilingual site.

The equivalent of doing this via Drupal admin screens (instead of Drush), would require to first declare your site name as a "multilingual varialable". For more details on these kind of variables, and how to get this to work, refer to my answer at How to make content translation available for front page?.

In this case however, in "step 4" the variable to be selected is "Site name" (not "Default front frontpage"), within "Site information". While you're at it, you probably want to double check other similar variables like Site Slogan, etc.

If you try to do this using Drush, it won't work however, as explained in the issue about set i18n variables with drush? However, if you have the Variable module enabled, then according to Comment #3 in that issue, it should be possible to use Drush to achieve the equivalent result via Drush command like so (to set the Spanish language (es) to 'Spanish site'):

variable-realm-set language es site_name "Spanish Site"

Curious to some hear if in this case this Drush command resolved the issue here.

  • variable-realm-set language es site_name "Spanish Site" Works great for me (Drupal 7) May 22, 2020 at 13:09
  • Is this the famous StackOverflow arrogance I keep hearing about? May 23, 2020 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.