I want to i18n variables with drush, e.g. after adding the following to settings.php

$conf['i18n_variables'] = array(
    'site_name',
    'site_slogan',
);

To do...
$ drush vset site_name --i18n fr "Le nom du site dans une autre langue" #Or something.

Maybe it's already possible, maybe it's okay to set it through a short php-eval statement?
Either way it's more convenient than setting it through admin/settings/site-information for a language one is totally not familiar with.

Comments

zeropaper’s picture

Project: Drush » Internationalization
Version: » 7.x-1.x-dev

I think it would be better to let the i18n project implement that command.
and it should maybe looks like

drush i18n-vset site_name fr "Le nom du site bla bla"

Otherwise.. nice idea.

jose reyero’s picture

Yes, nice idea, patches welcomed.

jose reyero’s picture

Status: Active » Fixed

Done for variable realm module, see #1201818: Drush commands for Variable / Variable Realms

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

No intereset in adding i18n specific ones.

Status: Fixed » Closed (fixed)
Issue tags: -i18n

Automatically closed -- issue fixed for 2 weeks with no activity.