| 1 |
<?php |
<?php |
| 2 |
// $Id: transliteration.install,v 1.4 2009/08/25 14:44:25 smk Exp $ |
// $Id: transliteration.install,v 1.4.2.1 2009/08/25 17:01:11 smk Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 22 |
} |
} |
| 23 |
else { |
else { |
| 24 |
$t = get_t(); |
$t = get_t(); |
| 25 |
drupal_set_message($t('Existing file names have not been transliterated.')); |
drupal_set_message($t('Existing filenames have not been transliterated.')); |
| 26 |
} |
} |
| 27 |
} |
} |
| 28 |
|
|
| 63 |
break; |
break; |
| 64 |
|
|
| 65 |
default: |
default: |
| 66 |
drupal_set_message($t('File names could not be transliterated: database type not supported.'), 'error'); |
drupal_set_message($t('Filenames could not be transliterated: database type not supported.'), 'error'); |
| 67 |
return; |
return; |
| 68 |
} |
} |
| 69 |
|
|
| 87 |
} |
} |
| 88 |
|
|
| 89 |
if ($errors) { |
if ($errors) { |
| 90 |
$message = $t('Not all existing file names could be transliterated. The following files could not be accessed:'); |
$message = $t('Not all existing filenames could be transliterated. The following files could not be accessed:'); |
| 91 |
$message .= theme_item_list($errors); |
$message .= theme_item_list($errors); |
| 92 |
drupal_set_message($message, 'error'); |
drupal_set_message($message, 'error'); |
| 93 |
} |
} |
| 94 |
else { |
else { |
| 95 |
drupal_set_message($t('Existing file names have been successfully transliterated.')); |
drupal_set_message($t('Existing filenames have been successfully transliterated.')); |
| 96 |
} |
} |
| 97 |
} |
} |
| 98 |
|
|
| 106 |
} |
} |
| 107 |
else { |
else { |
| 108 |
$t = get_t(); |
$t = get_t(); |
| 109 |
drupal_set_message($t('Existing file names have not been transliterated.')); |
drupal_set_message($t('Existing filenames have not been transliterated.')); |
| 110 |
} |
} |
| 111 |
return $ret; |
return $ret; |
| 112 |
} |
} |