diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 4b146e9c4..6919b525d 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -282,13 +282,17 @@ while ($user_row = pwg_db_fetch_assoc($result)) $row['added_by'] = $user_row['username']; } +$extTab = explode('.',$row['file']); + $intro_vars = array( - 'file' => l10n('Original file : %s', $row['file']), - 'add_date' => l10n('Posted %s on %s', time_since($row['date_available'], 'year'), format_date($row['date_available'], array('day', 'month', 'year'))), + 'file' => l10n('%s', $row['file']), + 'date' => l10n('Posted the %s', format_date($row['date_available'], array('day', 'month', 'year'))), + 'age' => l10n(ucfirst(time_since($row['date_available'], 'year'))), 'added_by' => l10n('Added by %s', $row['added_by']), 'size' => $row['width'].'×'.$row['height'].' pixels, '.sprintf('%.2f', $row['filesize']/1024).'MB', 'stats' => l10n('Visited %d times', $row['hit']), - 'id' => l10n('Numeric identifier : %d', $row['id']), + 'id' => l10n($row['id']), + 'ext' => l10n('%s file type',strtoupper(end($extTab))) ); if ($conf['rate'] and !empty($row['rating_score'])) diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 4a6899610..b0aa89d43 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -84,14 +84,14 @@ $('#action-delete-picture').on('click', function() { }()); {/footer_script} -