function lingotek_source_uploaded_icon in Lingotek Translation 7.6
2 calls to lingotek_source_uploaded_icon()
File
- ./
lingotek.bulk_grid.inc, line 1660
Code
function lingotek_source_uploaded_icon($row) {
$icon = '';
if ($row->lingotek['profile'] == LingotekSync::PROFILE_DISABLED) {
$icon = '<i class="fa fa-minus-square" style="color: #999;" title="' . t('Lingotek is disabled') . '"></i>';
}
elseif (!is_null($row->upload_status)) {
switch ($row->upload_status) {
case LingotekSync::STATUS_EDITED:
$icon = '<i class="fa fa-square-o" title="' . t('Needs to be uploaded') . '"></i>';
break;
case LingotekSync::STATUS_CURRENT:
$icon = '<i class="fa fa-check-square" title="' . t('Uploaded to Lingotek') . '"></i>';
break;
case LingotekSync::STATUS_PENDING:
$icon = '<i class="fa fa-square" title="' . t('Upload to Lingotek in progress') . '"></i>';
break;
case LingotekSync::STATUS_FAILED:
$error = $row->last_sync_error ? $row->last_sync_error : '';
$icon = '<i class="fa fa-warning" style="color: darkorange;" title="' . t('Lingotek processing failed @error', array(
'@error' => ': ' . $error,
)) . '"></i>';
break;
default:
$icon = '<i class="fa fa-question-circle" style="color: darkorange;" title="' . t('Unknown upload status') . ': ' . check_plain($row->upload_status) . '"></i>';
break;
}
}
else {
$icon = '<i class="fa fa-square-o" title="' . t('Needs to be uploaded') . '"></i>';
}
return $icon;
}