| 1 |
<?php |
<?php |
| 2 |
// $Id: live_translation.update.inc,v 1.4 2009/04/24 06:25:26 brmassa Exp $ |
// $Id: live_translation.update.inc,v 1.5 2009/04/24 10:53:57 brmassa Exp $ |
| 3 |
/** |
/** |
| 4 |
* @author Bruno Massa |
* @author Bruno Massa |
| 5 |
* @file |
* @file |
| 79 |
$file_obj->filename = $filename; |
$file_obj->filename = $filename; |
| 80 |
if ($ret = _locale_import_po($file_obj, $langcode, $mode, $group) == FALSE) { |
if ($ret = _locale_import_po($file_obj, $langcode, $mode, $group) == FALSE) { |
| 81 |
$message = t('The translation import of %filename failed.', array('%filename' => $filename)); |
$message = t('The translation import of %filename failed.', array('%filename' => $filename)); |
|
dpm($file_url); |
|
| 82 |
} |
} |
| 83 |
else { |
else { |
| 84 |
$message = t('The translation import of %filename was a sucess.', array('%filename' => $filename)); |
$message = t('The translation import of %filename was a sucess.', array('%filename' => $filename)); |
| 171 |
} |
} |
| 172 |
|
|
| 173 |
// Go to the report page |
// Go to the report page |
| 174 |
|
if ($return) { |
| 175 |
|
return; |
| 176 |
|
} |
| 177 |
drupal_goto('admin/reports/live-translation'); |
drupal_goto('admin/reports/live-translation'); |
| 178 |
} |
} |