After enabeling the drush_extras module, which is all too fantastic to be true, I'm grinning for every module I install. It's so easy! It made me thinking. I'm going to install some languages soon. Wouldn't it be fantastisk to just say drush lm install norwegian? I think so.

Comments

grn’s picture

Great idea!! +1

mikl’s picture

That's a great idea, although we would need some better mechanisms for it than we have today. To my knowledge, there's currently nowhere you can get a plain po-file that would be needed for this operation :)

grn’s picture

Hmm, has anyone worked on a po-file merging tool? Or should we start from scratch?

owen barton’s picture

With the 2.x branch you can do this with drush core using the "dl" command - e.g. "drush dl es" - this will download and unpack the translations on the Drupal root (so it is available for installation too). There isn't a command to load the translations on an already installed site using locale module, however if you write one that would be great for drush extras.

mnlund’s picture

That's true. Using the dl command with path . works like a charm.

grn’s picture

Shouldn't the language files be put somewhere in the sites folder?

For example sites/all/modules or database import through the locale module?

I know that this is not what the handbook suggests on the translations topic.

owen barton’s picture

For i18n installation the language needs to be extracted into the Drupal root, at least according the INSTALL.txt;

http://cvs.drupal.org/viewvc.py/drupal/drupal/INSTALL.txt?revision=1.71&...

" If you would like to have the default English interface translated to a
different language, we have good news. You can install and use Drupal in
other languages from the start. Check whether a released package of the
language desired is available for this Drupal version at
http://drupal.org/project/translations and download the package. Extract
the contents to the same directory where you extracted Drupal into.
"

moshe weitzman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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