Show
Ignore:
Timestamp:
25.06.2009 12:39:43 (8 months ago)
Author:
cedric@…
Message:

erreur dans l'erreur, ou plutot son message, en cas de limitation du poids des documents ou image
on en profite pour utiliser un message plus clair

Location:
_plugins_/gestion_documents
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • _plugins_/gestion_documents/action/ajouter_documents.php

    r29339 r29396  
    313313                if (_DOC_MAX_SIZE > 0 
    314314                 AND $infos['taille'] > _DOC_MAX_SIZE*1024) 
    315                         return _T('info_logo_max_poids', array('maxi' => taille_en_octets(_DOC_MAX_SIZE*1024), 'actuel' => taille_en_octets($taille))); 
     315                        return _T('gestdoc:info_doc_max_poids', array('maxi' => taille_en_octets(_DOC_MAX_SIZE*1024), 'actuel' => taille_en_octets($infos['taille']))); 
    316316 
    317317                if ($infos['mode'] == 'image') 
     
    324324                if (_IMG_MAX_SIZE > 0 
    325325                 AND $infos['taille'] > _IMG_MAX_SIZE*1024) 
    326                         return _T('info_logo_max_poids', array('maxi' => taille_en_octets(_IMG_MAX_SIZE*1024), 'actuel' => taille_en_octets($taille))); 
     326                        return _T('gestdoc:info_image_max_poids', array('maxi' => taille_en_octets(_IMG_MAX_SIZE*1024), 'actuel' => taille_en_octets($infos['taille']))); 
    327327         
    328328                if (_IMG_MAX_WIDTH * _IMG_MAX_HEIGHT 
  • _plugins_/gestion_documents/lang/gestdoc_fr.php

    r29216 r29396  
    8080        'info_statut_document'=> 'Ce document est :', 
    8181        'info_illustrations' => 'Illustrations', 
    82          
     82        'info_doc_max_poids' => 'Les documents doivent obligatoirement faire moins de @maxi@ (ce fichier fait @actuel@).', 
     83        'info_image_max_poids' => 'Les images doivent obligatoirement faire moins de @maxi@ (ce fichier fait @actuel@).', 
     84 
    8385        // L 
    8486        'logo' => 'Logo',