X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/1fe28b19ecaaeedfb9b5087f6d8c742968934ddb..53517d3b939f85007001beb3a01a32b032a9070b:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php index d4a5e6a..7b63148 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -67,26 +67,26 @@ jirafeau_upload_errstr ($code) { case UPLOAD_ERR_INI_SIZE: case UPLOAD_ERR_FORM_SIZE: - return _('Your file exceeds the maximum authorized file size. '); + return t('Your file exceeds the maximum authorized file size. '); break; case UPLOAD_ERR_PARTIAL: case UPLOAD_ERR_NO_FILE: return - _ + t ('Your file was not uploaded correctly. You may succeed in retrying. '); break; case UPLOAD_ERR_NO_TMP_DIR: case UPLOAD_ERR_CANT_WRITE: case UPLOAD_ERR_EXTENSION: - return _('Internal error. You may not succeed in retrying. '); + return t('Internal error. You may not succeed in retrying. '); break; default: break; } - return _('Unknown error. '); + return t('Unknown error. '); } /** Remove link and it's file @@ -208,7 +208,7 @@ jirafeau_upload ($file, $one_time_download, $key, $time, $cfg, $ip) return (array( 'error' => array ('has_error' => true, - 'why' => _('Internal error during file creation. ')), + 'why' => t('Internal error during file creation. ')), 'link' =>'', 'delete_link' => '')); } @@ -262,7 +262,7 @@ jirafeau_upload ($file, $one_time_download, $key, $time, $cfg, $ip) return (array( 'error' => array ('has_error' => true, - 'why' => _('Internal error during file creation. ')), + 'why' => t('Internal error during file creation. ')), 'link' =>'', 'delete_link' => '')); } @@ -388,18 +388,18 @@ jirafeau_admin_list ($name, $file_hash, $link_hash) if (!empty ($link_hash)) echo $link_hash . ' '; if (empty ($name) && empty ($file_hash) && empty ($link_hash)) - echo _('List all files'); + echo t('List all files'); echo ''; echo '
' . _('Filename') . ' | '; - echo '' . _('Type') . ' | '; - echo '' . _('Size') . ' | '; - echo '' . _('Expire') . ' | '; - echo '' . _('Onetime') . ' | '; - echo '' . _('Upload date') . ' | '; - echo '' . _('Origin') . ' | '; - echo '' . _('Action') . ' | '; + echo '' . t('Filename') . ' | '; + echo '' . t('Type') . ' | '; + echo '' . t('Size') . ' | '; + echo '' . t('Expire') . ' | '; + echo '' . t('Onetime') . ' | '; + echo '' . t('Upload date') . ' | '; + echo '' . t('Origin') . ' | '; + echo '' . t('Action') . ' | '; echo '