Skip to content

Commit 07ac97c

Browse files
authored
Date Modified in file view (#1250)
* Date Modified in file view * Add translation support
1 parent 8c78bc7 commit 07ac97c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tinyfilemanager.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,8 +1769,9 @@ function getSelected($l)
17691769
<li class="list-group-item active" aria-current="true"><strong><?php echo lng($view_title) ?>:</strong> <?php echo fm_enc(fm_convert_win($file)) ?></li>
17701770
<?php $display_path = fm_get_display_path($file_path); ?>
17711771
<li class="list-group-item"><strong><?php echo $display_path['label']; ?>:</strong> <?php echo $display_path['path']; ?></li>
1772-
<li class="list-group-item"><strong>File size:</strong> <?php echo ($filesize_raw <= 1000) ? "$filesize_raw bytes" : $filesize; ?></li>
1773-
<li class="list-group-item"><strong>MIME-type:</strong> <?php echo $mime_type ?></li>
1772+
<li class="list-group-item"><strong><?php echo lng('Date Modified') ?>:</strong> <?php echo date(FM_DATETIME_FORMAT, filemtime($file_path)); ?></li>
1773+
<li class="list-group-item"><strong><?php echo lng('File size') ?>:</strong> <?php echo ($filesize_raw <= 1000) ? "$filesize_raw bytes" : $filesize; ?></li>
1774+
<li class="list-group-item"><strong><?php echo lng('MIME-type') ?>:</strong> <?php echo $mime_type ?></li>
17741775
<?php
17751776
// ZIP info
17761777
if (($is_zip || $is_gzip) && $filenames !== false) {
@@ -5585,6 +5586,9 @@ function lng($txt)
55855586
$tr['en']['File or folder with this path already exists'] = 'File or folder with this path already exists';
55865587
$tr['en']['Are you sure want to rename?'] = 'Are you sure want to rename?';
55875588
$tr['en']['Are you sure want to'] = 'Are you sure want to';
5589+
$tr['en']['Date Modified'] = 'Date Modified';
5590+
$tr['en']['File size'] = 'File size';
5591+
$tr['en']['MIME-type'] = 'MIME-type';
55885592

55895593
$i18n = fm_get_translations($tr);
55905594
$tr = $i18n ? $i18n : $tr;

0 commit comments

Comments
 (0)