Determine if a file is a remote file.
string $uri: The URI or URI pattern of the file.
boolean TRUE if the $uri is a remote file.
function _locale_translation_file_is_remote($uri) {
$scheme = file_uri_scheme($uri);
if ($scheme) {
return !drupal_realpath($scheme . '://');
}
return FALSE;
}