X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Flocale.d8.drush.inc;h=7e6a06829f78e7a1ba40ecf1281bc4db1fe440b1;hp=ab639e264d27eceae5f726161917f0fb51985238;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drush/drush/commands/core/locale.d8.drush.inc b/vendor/drush/drush/commands/core/locale.d8.drush.inc index ab639e264..7e6a06829 100644 --- a/vendor/drush/drush/commands/core/locale.d8.drush.inc +++ b/vendor/drush/drush/commands/core/locale.d8.drush.inc @@ -89,6 +89,10 @@ function drush_locale_update() { // @todo Not selecting any language code in the user interface results in // all translations being updated, so we mimick that behavior here. } + // Deduplicate the list of langcodes since each project may have added the + // same language several times. + $langcodes = array_unique($langcodes); + // @todo Restricting by projects is not possible in the user interface and is // broken when attempting to do it in a hook_form_alter() implementation so // we do not allow for it here either.