| 1 |
<?php |
<?php |
| 2 |
// $Id: live_translation.module,v 1.2 2009/04/19 02:35:51 brmassa Exp $ |
// $Id: live_translation.module,v 1.3 2009/04/20 02:48:32 brmassa Exp $ |
| 3 |
/** |
/** |
| 4 |
* @author Bruno Massa |
* @author Bruno Massa |
| 5 |
* @file |
* @file |
| 69 |
case LIVE_TRANSLATION_STATUS_OUTDATE: |
case LIVE_TRANSLATION_STATUS_OUTDATE: |
| 70 |
$requirements['live_translation']['value'] = t('New translations available'); |
$requirements['live_translation']['value'] = t('New translations available'); |
| 71 |
$requirements['live_translation']['severity'] = REQUIREMENT_ERROR; |
$requirements['live_translation']['severity'] = REQUIREMENT_ERROR; |
| 72 |
$requirements['live_translation']['description'] = t('There are new strings translated on the translation servers. Go to <a href="admin/reports/live-translation">translation status page</a>.'); |
$requirements['live_translation']['description'] = t('There are new strings translated on the translation servers. Go to !translation_status_page.', array('!translation_status_page' => l('translation status page', 'admin/reports/live-translation'))); |
| 73 |
break; |
break; |
| 74 |
case LIVE_TRANSLATION_STATUS_UNKNOWN: |
case LIVE_TRANSLATION_STATUS_UNKNOWN: |
| 75 |
$requirements['live_translation']['value'] = t('No update data available'); |
$requirements['live_translation']['value'] = t('No update data available'); |
| 76 |
$requirements['live_translation']['severity'] = REQUIREMENT_WARNING; |
$requirements['live_translation']['severity'] = REQUIREMENT_WARNING; |
| 77 |
$requirements['live_translation']['description'] = t('There is a long time you do not check the translation status with the server. Configure cron or <a href="/admin/reports/live-translation/update">check it now</a>.'); |
$requirements['live_translation']['description'] = t('There is a long time you do not check the translation status with the server. Configure cron or !check_it_now.', array('!check_it_now' => l('check it now', 'admin/reports/live-translation/update'))); |
| 78 |
break; |
break; |
| 79 |
default: |
default: |
| 80 |
$requirements['live_translation']['value'] = t('Up to date'); |
$requirements['live_translation']['value'] = t('Up to date'); |