You are here

function l10n_update_download_import in Localization update 6

Same name and namespace in other branches
  1. 7 l10n_update.inc \l10n_update_download_import()

Download and import remote translation file.

Parameters

$download_url: Download URL.

$locale: Language code.

$mode: Download mode. How to treat exising and modified translations.

Return value

boolean TRUE on success.

File

./l10n_update.inc, line 57

Code

function l10n_update_download_import($download_url, $locale, $mode = LOCALE_IMPORT_OVERWRITE) {
  if ($file = l10n_update_download_file($download_url)) {
    $result = l10n_update_import_file($file, $locale, $mode);
    return $result;
  }
}