From c8f707dd7ecedc278ebfbcb92a6d3b376957f9f6 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Thu, 3 Jan 2013 01:08:54 +0100 Subject: [PATCH 1/1] better form for download page and fix missing translation --- file.php | 20 +++++++++++++------- lib/lang/fr.php | 3 +++ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/file.php b/file.php index 1f79095..18bb459 100644 --- a/file.php +++ b/file.php @@ -110,8 +110,11 @@ if (!empty ($link['key'])) '' . + '' . + '
' . t('Give the password of this file') . ' : ' . '' . - '
'; - + '
' . + t('By using our services, you accept of our'). ' ' . t('Term Of Service') . '' . + '
'; ?>'; ?> ' . - '

' . ('You are about to download ') . substr ($link['file_name'], 0, 20) . ' (' . jirafeau_human_size($link['file_size']) . ')

' . - '

' . t('By using our services, you accept of our '). '' . t('Term Of Service') . '' . '

'. - '

' + echo '

' . $link['file_name'] . '' . + '' . + ''; + echo '
' . + t('You are about to download') . ' "' . $link['file_name'] . '" (' . jirafeau_human_size($link['file_size']) . ')' . + '
' . + t('By using our services, you accept of our'). ' ' . t('Term Of Service') . ''; ?>&bp=1'; document.getElementById('submit_preview').submit ();"/>'; + echo '
'; require (JIRAFEAU_ROOT.'lib/template/footer.php'); exit; } diff --git a/lib/lang/fr.php b/lib/lang/fr.php index 49ec634..c8b3fe4 100755 --- a/lib/lang/fr.php +++ b/lib/lang/fr.php @@ -52,6 +52,9 @@ $tr = array ( 'Password protection' => 'Protection par mot de passe', 'Give the password of this file' => 'Donnez le mot de passe pour ce fichier', 'Access denied' => 'Accès interdit', + 'You are about to download' => 'Vous êtes sur le point de télécharger', + 'By using our services, you accept of our' => 'En utilisant nos services, vous acceptez nos', + 'Term Of Service' => 'Conditions d\'utilisation', /* functions.php */ 'Internal error during file creation.' => 'Erreur interne durant la creation de fichier.', /* install.hpp */ -- 2.34.1