function _locale_translation_file_is_remote

Determine if a file is a remote file.

Parameters

string $uri: The URI or URI pattern of the file.

Return value

boolean TRUE if the $uri is a remote file.

1 call to _locale_translation_file_is_remote()
locale_translation_source_build in drupal/core/modules/locale/locale.translation.inc
Builds abstract translation source.

File

drupal/core/modules/locale/locale.translation.inc, line 296
Common API for interface translation.

Code

function _locale_translation_file_is_remote($uri) {
  $scheme = file_uri_scheme($uri);
  if ($scheme) {
    return !drupal_realpath($scheme . '://');
  }
  return FALSE;
}