I have about 20 sites that have a common translation. I don't want to go into admin of each site each time the po-file is updated.
Is it possible to import a po-file using Drush?
I found a way to do this using Drush and Localization Update.
drush en l10n_update
Now you can put your own po-files in a local path (for example sites/all/translations). If you have translations for your own module then you name it according to this naming convention:
So a Swedish po-file for 'my_module', version 7.x-1.1 would be named:
Now you have everything setup and you can start updating your sites translation with Drush:
drush l10n-update-refresh # Looks for new po-files drush l10n-update # Updates translations
At the moment there's no way to do it with Drush but you can use the Localization Update module.
You could also try using Selenium IDE or a Selenium script if you have a lot of sites. This is the best solution I was able to come up with for getting translations as an exportable.
Also, the drush module Drush Language Commands has support for importing and exporting po files.
Your best bet is to use the Potx Exportables module.
It exposes Drush command
For those who lands here many years later, the same commands for Drush 9 are: