X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/379a0267c27b3731c60b7221f8f533aaf418fcae..35f7adea8ca58e6570336e99c3aaf99410e9ac92:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index e4bfbb5..eaedfac 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -374,7 +374,7 @@ function jirafeau_upload($file, $one_time_download, $key, $time, $ip, $crypt, $l return (array( 'error' => array('has_error' => true, - 'why' => t('Internal error during file creation.')), + 'why' => t('INTERNAL_ERROR_DEL')), 'link' =>'', 'delete_link' => '')); } @@ -513,7 +513,7 @@ function check_errors($cfg) } if (!is_writable(VAR_ASYNC)) { - add_error(t('The async directory is not writable!'), VAR_ASYNC); + add_error(t('ASYNC_DIR_W'), VAR_ASYNC); } } @@ -553,28 +553,28 @@ function jirafeau_admin_list($name, $file_hash, $link_hash) { echo '
'; if (!empty($name)) { - echo t('Filename') . ": $name "; + echo t('FILENAME') . ": $name "; } if (!empty($file_hash)) { - echo t('file') . ": $file_hash "; + echo t('FILE') . ": $file_hash "; } if (!empty($link_hash)) { - echo t('link') . ": $link_hash "; + echo t('LINK') . ": $link_hash "; } if (empty($name) && empty($file_hash) && empty($link_hash)) { - echo t('List all files'); + echo t('LS_FILES'); } echo ''; echo ''; echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; echo ''; /* Get all links files. */ @@ -610,7 +610,7 @@ function jirafeau_admin_list($name, $file_hash, $link_hash) echo ''; echo ''; echo ''; echo ''; @@ -628,17 +628,17 @@ function jirafeau_admin_list($name, $file_hash, $link_hash) '' . '' . '' . - '' . + '' . '' . '' . '' . '' . - '' . + '' . '' . '' . '' . '' . - '' . + '' . '' . ''; echo '';
' . t('Filename') . '' . t('Type') . '' . t('Size') . '' . t('Expire') . '' . t('Onetime') . '' . t('Upload date') . '' . t('Origin') . '' . t('Action') . '' . t('FILENAME') . '' . t('TYPE') . '' . t('SIZE') . '' . t('EXPIRE') . '' . t('ONETIME') . '' . t('UPLOAD_DATE') . '' . t('ORIGIN') . '' . t('ACTION') . '
' . '' . htmlspecialchars($l['file_name']) . ''; + t('DL_PAGE') . '">' . htmlspecialchars($l['file_name']) . ''; echo '' . $l['mime_type'] . '' . jirafeau_human_size($l['file_size']) . '