From 6196a53a45247093baf3feadfadda468e28d04e6 Mon Sep 17 00:00:00 2001 From: Antonin Date: Mon, 12 Oct 2015 23:14:21 +0200 Subject: [PATCH] Display the comment timestamp --- app/inc/i18n.php | 1 + css/style.css | 7 +++++++ locale/de.json | 3 ++- locale/en.json | 3 ++- locale/es.json | 3 ++- locale/fr.json | 3 ++- locale/it.json | 3 ++- tpl/part/comments.tpl | 1 + 8 files changed, 19 insertions(+), 5 deletions(-) diff --git a/app/inc/i18n.php b/app/inc/i18n.php index 2257286..28e7a7c 100644 --- a/app/inc/i18n.php +++ b/app/inc/i18n.php @@ -37,6 +37,7 @@ $date_format['txt_short'] = __('Date', 'SHORT'); // radio title $date_format['txt_day'] = __('Date', 'DAY'); $date_format['txt_date'] = __('Date', 'DATE'); $date_format['txt_month_year'] = __('Date', 'MONTH_YEAR'); +$date_format['txt_datetime_short'] = __('Date', 'DATETIME'); if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { //%e can't be used on Windows platform, use %#d instead foreach ($date_format as $k => $v) { $date_format[$k] = preg_replace('#(?id|html}" class="btn btn-link" title="{__('Comments', 'Remove the comment')}">{__('Generic', 'Remove')} {/if} + {$comment->date|date_format:$date_format['txt_datetime_short']} {$comment->name|html}  {$comment->comment|escape|nl2br}