Changeset 23383 for extensions


Ignore:
Timestamp:
Jun 20, 2013, 2:10:51 AM (11 years ago)
Author:
mistic100
Message:

new parameters on config screen "photo_size", "one_archive", "force_pclzip", "direct"

Location:
extensions/BatchDownloader
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/admin/config.php

    r23288 r23383  
    1515    'max_elements'    => intval($_POST['max_elements']),
    1616    'max_size'        => intval($_POST['max_size']),
     17    'one_archive'     => isset($_POST['one_archive']),
     18    'force_pclzip'    => isset($_POST['force_pclzip']),
     19    'direct'          => isset($_POST['direct']),
    1720    'last_clean'      => $conf['batch_download']['last_clean'],
    1821    );
     
    2124  conf_update_param('batch_download', serialize($conf['batch_download']));
    2225  conf_update_param('batch_download_comment', $conf['batch_download_comment']);
     26 
     27  array_push($page['infos'], l10n('Information data registered in database'));
    2328}
    2429
     
    3641
    3742// sizes
    38 $enabled = ImageStdParams::get_defined_type_map();
    39 $disabled = @unserialize(@$conf['disabled_derivatives']);
    40 if ($disabled === false) $disabled = array();
    41 
    42 $sizes_keys = array_diff(array_keys($enabled), array_keys($disabled));
     43$type_map = ImageStdParams::get_defined_type_map();
     44$sizes_keys = array_keys($type_map);
    4345$sizes_names = array_map(create_function('$s', 'return l10n($s);'), $sizes_keys);
    4446
     
    5860  'batch_download' => $conf['batch_download'],
    5961  'batch_download_comment' => stripslashes($conf['batch_download_comment']),
    60   'use_ziparchive' => class_exists('ZipArchive') && !isset($conf['batch_downloader_force_pclzip']),
     62  'use_ziparchive' => class_exists('ZipArchive') && !$conf['batch_download']['force_pclzip'],
    6163  'PHP_VERSION' => PHP_VERSION,
    6264  'ADVANCED_CONF' => load_language('advanced.html', BATCH_DOWNLOAD_PATH, array('return'=>true))
  • extensions/BatchDownloader/admin/sets.php

    r23318 r23383  
    1515  $set->updateParam('nb_zip', $set->getEstimatedArchiveNumber());
    1616  $set->updateParam('status', 'done');
    17   $set->deleteLastArchive();
     17  $set->deleteArchives();
    1818  $set->clearImages();
    1919  unset($set);
  • extensions/BatchDownloader/admin/template/config.tpl

    r23288 r23383  
    6262      <label>
    6363      {if $group_options}
    64         <span class="property">{'User groups'|@translate}</span>
     64        <b>{'User groups'|@translate}</b>
    6565        <select name="groups[]" data-placeholder="{'Everybody'|@translate}" class="chzn-select" multiple="multiple" style="width:370px;">
    6666          {html_options options=$group_options selected=$batch_download.groups}
     
    7373    <li>
    7474      <label>
    75         <span class="property">{'Privacy level'|@translate}</span>
     75        <b>{'Privacy level'|@translate}</b>
    7676        <select name="level">
    7777          {html_options options=$level_options selected=$batch_download.level}
     
    8080    </li>
    8181    <li>
    82       <span class="property">{'What can be downloaded?'|@translate}</span>
     82      <i>{'Warning: Only registered users can use Batch Downloader.'|@translate}</i>
     83    </li>
     84    <li>
     85      <b>{'What can be downloaded?'|@translate}</b>
    8386      <label><input type="checkbox" name="what[categories]" {if in_array('categories',$batch_download.what)}checked="checked"{/if}/> {'Albums'|@translate}</label>
    8487      {if $USER_COLLEC_LOADED}<label><input type="checkbox" name="what[collections]" {if in_array('collections',$batch_download.what)}checked="checked"{/if}/> {'Collections'|@translate}</label>{/if}
    8588      <label><input type="checkbox" name="what[specials]" {if in_array('specials',$batch_download.what)}checked="checked"{/if}/> {'Specials'|@translate}</label>
    86           <a class="showInfo" title="{'Most visited'|@translate}, {'Random photos'|@translate}, {'Best rated'|@translate}...">i</a>
     89      <a class="showInfo" title="{'Most visited'|@translate}, {'Random photos'|@translate}, {'Best rated'|@translate}...">i</a>
    8790    </li>
    8891    <li>
    89       <i>{'Warning: Only registered users can use Batch Downloader.'|@translate}</i>
     92      <label>
     93        <b>{'Maximum photo size'|@translate}</b>
     94        <select name="photo_size">
     95          {html_options options=$sizes_options selected=$batch_download.photo_size}
     96        </select>
     97      </label>
    9098    </li>
    9199  </ul>
     
    96104 
    97105  <ul>
    98     <li style="display:none;">
    99       <label>
    100         <span class="property">{'Maximum photo size'|@translate}</span>
    101         <select name="photo_size">
    102           {html_options options=$sizes_options selected=$batch_download.photo_size}
    103         </select>
    104         NOT IMPLEMENTED
    105       </label>
    106     </li>
    107106    <li>
    108107      <label>
    109         <span class="property">{'Delete downloads after'|@translate}</span>
     108        <b>{'Delete downloads after'|@translate}</b>
    110109        <input type="text" name="archive_timeout" value="{$batch_download.archive_timeout}" size="3"> {'hours'|@translate}
    111110      </label>
     
    113112    <li>
    114113      <label>
    115         <span class="property">{'Maximum number of photos per download set'|@translate}</span>
     114        <b>{'Maximum number of photos per download set'|@translate}</b>
    116115        <div id="max_elements"></div>
    117116        <input type="text" name="max_elements" value="{$batch_download.max_elements}" size="5">
     
    120119    <li>
    121120      <label>
    122         <span class="property">{'Maximum size of each archive (in Megabytes)'|@translate}</span>
     121        <b>{'Maximum size of each archive (in Megabytes)'|@translate}</b>
    123122        <div id="max_size"></div>
    124123        <input type="text" name="max_size" value="{$batch_download.max_size}" size="5">
     
    127126    <li>
    128127      <label>
    129         <span class="property">{'Archive prefix'|@translate}</span>
     128        <b>{'Archive prefix'|@translate}</b>
    130129        <input type="text" name="archive_prefix" value="{$batch_download.archive_prefix}">
    131130      </label>
     131    </li>
     132    <li>
     133      <label>
     134        <input type="checkbox" name="one_archive" {if $batch_download.one_archive}checked{/if}>
     135        <b>{'Delete previous archive when starting to download another one'|@translate}</b>
     136      </label>
     137      <a class="showInfo" title="{'It saves space on the server but doesn\'t allow to restart failed downloads.'|@translate}">i</a>
     138    </li>
     139    <li>
     140      <label>
     141        <input type="checkbox" name="force_pclzip" {if $batch_download.force_pclzip}checked{/if}>
     142        <b>{'Force the usage of PclZip instead of ZipArchive as ZIP library'|@translate}</b>
     143      </label>
     144      <a class="showInfo" title="{'Only check if you are experiencing corrupted archives with ZipArchive.'|@translate}">i</a>
     145    </li>
     146    <li>
     147      <label>
     148        <input type="checkbox" name="direct" {if $batch_download.direct}checked{/if}>
     149        <b>{'Don\'t download archives through PHP'|@translate}</b>
     150      </label>
     151      <a class="showInfo" title="{'Only check if your host complains about high PHP usage.'|@translate}">i</a>
    132152    </li>
    133153  {if $use_ziparchive}
    134154    <li>
    135155      <label>
    136         <span class="property">{'Archive comment'|@translate} :</span><br>
     156        <b>{'Archive comment'|@translate} :</b><br>
    137157        <textarea name="archive_comment" rows="5" style="width:450px;">{$batch_download_comment}</textarea>
    138158      </label>
  • extensions/BatchDownloader/admin/template/style.css

    r23318 r23383  
    11.chzn-choices li {
    22  clear:none !important;
    3 }
    4 
    5 .property {
    6   width:auto !important;
    73}
    84
  • extensions/BatchDownloader/download.php

    r23291 r23383  
    77try {
    88  $BatchDownloader = new BatchDownloader($_GET['set_id']);
    9   $file = $BatchDownloader->getArchivePath();
    109 
    11   if (!file_exists($file))
     10  if ($conf['batch_download']['one_archive'] and $_GET['zip'] == $BatchDownloader->getParam('last_zip'))
     11  {
     12    $file = $BatchDownloader->getArchivePath();
     13  }
     14  else if (!$conf['batch_download']['one_archive'])
     15  {
     16    $file = $BatchDownloader->getArchivePath($_GET['zip']);
     17  }
     18 
     19  if (empty($file) || !file_exists($file))
    1220  {
    1321    throw new Exception('Unable to locate file.');
    1422  }
    1523 
    16   if (isset($conf['batch_download_direct']) and $conf['batch_download_direct'])
     24  if ($conf['batch_download']['direct'])
    1725  {
    1826    header('Location: '.$file);
  • extensions/BatchDownloader/include/BatchDownloader.class.php

    r23360 r23383  
    381381 
    382382  /**
    383    * deleteLastArchive
    384    */
    385   function deleteLastArchive()
    386   {
    387     $zip_path = $this->getArchivePath();
    388     if (file_exists($zip_path))
    389     {
    390       unlink($zip_path);
     383   * deleteArchives
     384   */
     385  function deleteArchives()
     386  {
     387    $zip_path = glob($this->getArchivePath('*'));
     388   
     389    if (is_array($zip_path))
     390    {
     391      foreach ($zip_path as $file)
     392      {
     393        unlink($file);
     394      }
    391395    }
    392396  }
     
    458462      $this->updateParam('last_zip', $this->data['last_zip']+1);
    459463      $zip_path = $this->getArchivePath();
    460       $zip = new myZip($zip_path, isset($conf['batch_download_force_pclzip']));
     464      $zip = new myZip($zip_path, $this->conf['force_pclzip']);
    461465     
    462466      // add images until size limit is reach, or all images are added
     
    533537      if (count($images_to_add) == count($images_added))
    534538      {
    535         $this->updateParam('status', 'done');
    536       }
    537      
    538       // over estimed
    539       if ($this->data['status'] == 'done')
    540       {
     539        if ($this->conf['one_archive']) $this->updateParam('status', 'done');
     540        $done = true;
     541       
     542        // over estimed
    541543        $this->updateParam('nb_zip', $this->data['last_zip']);
    542544      }
     545     
    543546      // under estimed
    544       else if ($this->data['last_zip'] == $this->data['nb_zip'])
     547      if (!isset($done) && $this->data['status'] != 'done' && $this->data['last_zip'] == $this->data['nb_zip'])
    545548      {
    546549        $this->updateParam('nb_zip', $this->data['last_zip']+1);
     
    619622      $out.= '<li id="zip-'.$i.'">';
    620623     
    621       if ($this->data['status'] == 'done' or $i < $this->data['last_zip']+1)
     624      if ($this->data['status']=='done' or ($this->conf['one_archive'] and $i<$this->data['last_zip']+1))
    622625      {
    623626        $out.= '<img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/images/drive_error.png"> '.sprintf(l10n('Archive #%d (already downloaded)'), $i);
    624627      }
    625       else if ($i == $this->data['last_zip']+1)
     628      else if ($i==$this->data['last_zip']+1 or (!$this->conf['one_archive'] and $i<$this->data['last_zip']+1))
    626629      {
    627630          $out.= '<a href="'.add_url_params($url, array('set_id'=>$this->data['id'],'zip'=>$i)).'" rel="nofollow" style="font-weight:bold;"'
    628             .($i!=1 ? ' onClick="return confirm(\''.addslashes(sprintf(l10n('Starting download Archive #%d will destroy Archive #%d, be sure you finish the download. Continue ?'), $i, $i-1)).'\');"' : null).
    629             '><img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/images/drive_go.png">  '.sprintf(l10n('Archive #%d (ready)'), $i).'</a>';
     631            .(($i!=1 and $this->conf['one_archive']) ? ' onClick="return confirm(\''.addslashes(sprintf(l10n('Starting download Archive #%d will destroy Archive #%d, be sure you finish the download. Continue ?'), $i, $i-1)).'\');"' : null).
     632            '><img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/images/drive_go.png"> '.sprintf(l10n('Archive #%d (ready)'), $i).'</a>';
    630633      }
    631634      else
    632635      {
    633         $out.= '<img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/images/drive.png">  '.sprintf(l10n('Archive #%d (pending)'), $i);
     636        $out.= '<img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/images/drive.png"> '.sprintf(l10n('Archive #%d (pending)'), $i);
    634637      }
    635638     
     
    882885  function delete()
    883886  {
    884     $this->deleteLastArchive();
     887    $this->deleteArchives();
    885888    $this->clearImages();
    886889    pwg_query('DELETE FROM '.BATCH_DOWNLOAD_TSETS.' WHERE id = '.$this->data['id'].';');
  • extensions/BatchDownloader/include/download.inc.php

    r23323 r23383  
    2020      if ( isset($_GET['cancel']) )
    2121      {
    22         $BatchDownloader->deleteLastArchive();
     22        $BatchDownloader->deleteArchives();
    2323        $BatchDownloader->clearImages();
    2424        pwg_query('DELETE FROM '.BATCH_DOWNLOAD_TSETS.' WHERE id = '.$_GET['set_id'].';');
     
    2828     
    2929      // prepare next zip
    30       if ( isset($_GET['zip']) and $BatchDownloader->getParam('status') != 'new' and $BatchDownloader->getParam('status') != 'done' and $_GET['zip'] > $BatchDownloader->getParam('last_zip') )
     30      if ( isset($_GET['zip']) and $BatchDownloader->getParam('status') != 'new' and $BatchDownloader->getParam('status') != 'done' )
    3131      {
    32         $BatchDownloader->deleteLastArchive();
    33         $next_file = $BatchDownloader->createNextArchive();
     32        if ($_GET['zip'] > $BatchDownloader->getParam('last_zip'))
     33        {
     34          if ($conf['batch_download']['one_archive']) $BatchDownloader->deleteArchives();
     35          $BatchDownloader->createNextArchive();
     36        }
     37       
     38        if ($conf['batch_download']['one_archive'])
     39        {
     40          $next_file = $BatchDownloader->getParam('last_zip')+1;
     41        }
     42        else
     43        {
     44          $next_file = $_GET['zip'];
     45        }
    3446      }
    3547     
     
    7486      if (isset($next_file))
    7587      {
    76         $set['U_DOWNLOAD'] = get_root_url().BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$_GET['set_id'].'&amp;zip='.$_GET['zip'];
     88        $set['U_DOWNLOAD'] = get_root_url().BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$_GET['set_id'].'&zip='.$_GET['zip'];
    7789        $page['infos'][] = sprintf(l10n('The archive is downloading, if the download doesn\'t start automatically please <a href="%s">click here</a>'), $set['U_DOWNLOAD']);
    7890      }
     
    8597     
    8698      // cancel link
    87       if ($BatchDownloader->getParam('status') != 'done')
     99      if ($BatchDownloader->getParam('last_zip') != $BatchDownloader->getParam('nb_zip'))
    88100      {
    89101        $set['U_CANCEL'] = add_url_params(BATCH_DOWNLOAD_PUBLIC . 'init_zip', array('set_id'=>$_GET['set_id'], 'cancel'=>'true'));
  • extensions/BatchDownloader/include/events.inc.php

    r23362 r23383  
    155155        )
    156156      );
    157   }
    158   $template->append(
    159     'BATCH_DOWNLOAD_SIZES',
    160     array(
    161       'TYPE' => 'original',
    162       'DISPLAY' => l10n('Original'),
    163       'SIZE' => null,
    164       )
    165     );
     157      if ($params->type == $conf['batch_download']['photo_size']) break;
     158  }
     159  if ($conf['batch_download']['photo_size'] == 'original')
     160  {
     161    $template->append(
     162      'BATCH_DOWNLOAD_SIZES',
     163      array(
     164        'TYPE' => 'original',
     165        'DISPLAY' => l10n('Original'),
     166        'SIZE' => null,
     167        )
     168      );
     169  }
    166170   
    167171  $template->set_filename('batchdwn_button', realpath(BATCH_DOWNLOAD_PATH.'template/download_button.tpl'));
     
    241245  global $conf;
    242246 
     247  $time = time();
     248 
    243249  // we only search for old downloads every hour, nevermind which user is connected
    244   if ($conf['batch_download']['last_clean'] > time() - 3600) return;
    245  
    246   $conf['batch_download']['last_clean'] = time();
     250  if ($conf['batch_download']['last_clean'] > $time - 3600) return;
     251 
     252  $conf['batch_download']['last_clean'] = $time;
    247253  conf_update_param('batch_download', serialize($conf['batch_download']));
    248254 
     
    275281    foreach ($zips as $zip)
    276282    {
    277       if (filemtime($zip) < time()-$conf['batch_download']['archive_timeout']*3600)
     283      if (filemtime($zip) < $time-$conf['batch_download']['archive_timeout']*3600)
    278284      {
    279285        unlink($zip);
  • extensions/BatchDownloader/include/install.inc.php

    r23290 r23383  
    1313      'level'           => 0,
    1414      'what'            => array('categories','specials','collections'),
    15       'photo_size'      => 'original', // not used
     15      'photo_size'      => 'original',
    1616      'archive_prefix'  => 'piwigo',
    1717      'archive_timeout' => 48, /* hours */
     
    1919      'max_size'        => 100, /* MB */
    2020      'last_clean'      => time(),
     21      'one_archive'     => false,
     22      'force_pclzip'    => false,
     23      'direct'          => false,
    2124      );
    2225     
     
    3134    $new_conf = is_string($conf['batch_download']) ? unserialize($conf['batch_download']) : $conf['batch_download'];
    3235   
    33     if (empty($new_conf['what']))
     36    if (!isset($new_conf['what']))
    3437    {
    3538      $new_conf['what'] = array('categories','specials','collections');
    36      
    37       $conf['batch_download'] = serialize($new_conf);
    38       conf_update_param('batch_download', $conf['batch_download']);
    3939    }
     40    if (!isset($new_conf['one_archive']))
     41    {
     42      $new_conf['one_archive'] = false;
     43      $new_conf['force_pclzip'] = isset($conf['batch_download_force_pclzip']) && $conf['batch_download_force_pclzip'];
     44      $new_conf['direct'] = isset($conf['batch_download_direct']) && $conf['batch_download_direct'];
     45    }
     46   
     47    $conf['batch_download'] = serialize($new_conf);
     48    conf_update_param('batch_download', $conf['batch_download']);
    4049  }
    4150
  • extensions/BatchDownloader/language/da_DK/advanced.html

    r23294 r23383  
    55<dd>Maksimal værdi på <b>Maksimal størrelse på hvert arkiv</b>-skyderen. <i>Standardværdien er <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Hvis <span>true</span>, gennemtvinges anvendelse af <b>PclZip</b> i stedet for <b>ZipArchive</b> som ZIP-bibliotek. <i>Standardværdien er <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Hvis <span>true</span>, leveres ZIP-filer med HTTP-omdirigering i stedet for PHP-forløb. <i>Standardværdien er <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Array indeholdende downloadbare filendelser (forskel på små og store bogstaver). <i>Standardværdien er <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/da_DK/plugin.lang.php

    r23359 r23383  
    7777$lang['Preparation'] = 'Forberedelse';
    7878$lang['Unknown'] = 'Ukendt';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Gennemtvinges anvendelse af PclZip i stedet for ZipArchive som ZIP-bibliotek';
    7980?>
  • extensions/BatchDownloader/language/de_DE/advanced.html

    r23327 r23383  
    55<dd>Maximalwert des Schiebereglers <b>Maximale Größe des Archivs</b>. <i>Standardwert <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Falls <span>true</span>, wird <b>PclZip</b> anstelle von <b>ZipArchive</b> als ZIP Bibliothek verwendet. <i>Standardwert <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Falls <span>true</span>, wird die ZIP Datei per HTTP redirection anstelle PHP flow geliefert. <i>Standardwert <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Array der Dateiendungen zum Herunterladen (Groß/Kleinschreibung beachten). <i>Standardwert <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/de_DE/plugin.lang.php

    r23369 r23383  
    7979$lang['Archive #%d (pending)'] = 'Archiv #%d (ausstehend)';
    8080$lang['Archive #%d (ready)'] = 'Archiv #%d (verfügbar)';
     81$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Wird PclZip anstelle von ZipArchive als ZIP Bibliothek verwendet';
    8182?>
  • extensions/BatchDownloader/language/el_GR/advanced.html

    r23328 r23383  
    55<dd>Μέγιστη τιμή του <b>Μέγιστο μέγεθος κάθε αρχείου</b> slider. <i>Η προεπιλογή είναι <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Εαν <span>true</span>, εξαναγκάζει τη χρήση του <b>PclZip</b> αντι του <b>ZipArchive</b> ως βιβλιοθήκη ZIP. <i>Η προεπιλογή είναι <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Εαν <span>true</span>, διαμοιράζει τα αρχεία ZIP με ανακατεύθυνση HTTP αντί της ροής PHP. <i>Η προεπιλογή είναι <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Πίνακα περιέχει επεκτάσεις αρχείων κατάληλων για κατέβασμα (case sensitive). <i>Η προεπιλογή είναι <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/el_GR/plugin.lang.php

    r23367 r23383  
    7777$lang['Archive #%d (already downloaded)'] = 'Το αρχείο #%d (ήδη κατεβασμένο)';
    7878$lang['%d MB'] = '%d MB';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'εξαναγκάζει τη χρήση του PclZip αντι του ZipArchive ως βιβλιοθήκη ZIP';
    7980?>
  • extensions/BatchDownloader/language/en_UK/advanced.html

    r23288 r23383  
    55<dd>Maximum value of the <b>Maximum size of each archive</b> slider. <i>Default is <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>If <span>true</span>, forces the usage of <b>PclZip</b> instead of <b>ZipArchive</b> as ZIP library. <i>Default is <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>If <span>true</span>, delivers ZIP files with HTTP redirection instead of PHP flow. <i>Default is <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Array containing downloadable file extensions (case sensitive). <i>Default is <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/en_UK/plugin.lang.php

    r23359 r23383  
    2323$lang['Archives'] = 'Archives';
    2424$lang['Maximum photo size'] = 'Maximum photo size';
    25 $lang['Delete downloads after'] = 'Delete downloads after';
     25$lang['Delete downloads after'] = 'Delete archives after';
    2626$lang['Maximum number of photos per download set'] = 'Maximum number of photos per download set';
    2727$lang['Maximum size of each archive (in Megabytes)'] = 'Maximum size of each archive (in Megabytes)';
     
    5757$lang['Archive #%d (ready)'] = 'Archive #%d (ready)';
    5858$lang['Archive #%d (pending)'] = 'Archive #%d (pending)';
     59$lang['Delete previous archive when starting to download another one'] = 'Delete previous archive when starting to download another one';
     60$lang['It saves space on the server but doesn\'t allow to restart failed downloads.'] = 'It saves space on the server but doesn\'t allow to restart failed downloads.';
     61$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Force the usage of PclZip instead of ZipArchive as ZIP library';
     62$lang['Only check if you are experiencing corrupted archives with ZipArchive.'] = 'Only check if you are experiencing corrupted archives with ZipArchive.';
     63$lang['Don\'t download archives through PHP'] = 'Don\'t download archives through PHP';
     64$lang['Only check if your host complains about high PHP usage.'] = 'Only check if your host complains about high PHP usage.';
    5965
    6066?>
  • extensions/BatchDownloader/language/et_EE/advanced.html

    r23354 r23383  
    55<dd>Maksimaalse väärtuse <b>Maksimaalne iga arhiivi suurus</b> riba. <i>Vaikimisi on <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Kui <span>true</span>, kasuta <b>PclZip</b> ja mitte <b>ZipArchive</b> ZIP arhiivina. <i>Vaikimisi on <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Kui <span>true</span>, tagastab ZIP failid HTTP ümbersuunamisega, mitte PHP voona. <i>Vaikimisi on <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Massiiv sisaldab allalaaditavaid faililaiendeid (tõstutundlikud). <i>Vaikimisi on <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/et_EE/plugin.lang.php

    r23359 r23383  
    7777$lang['Sorry, there is nothing to download. Some files may have been excluded because of <i title="Authorized types are : %s">filetype restrictions</i>.'] = 'Vabandame, ei ole midagi alla laadida. Mõned failid võivad olla välja arvatud järgmisel põhjusel:  <i title="Lubatud tüübid on : %s">failitüüpide kitsendused</i>.';
    7878$lang['Unknown'] = 'Teadmata';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Kasuta PclZip ja mitte ZipArchive ZIP arhiivina';
    7980?>
  • extensions/BatchDownloader/language/fr_FR/advanced.html

    r23288 r23383  
    55<dd>Valeur maximale du paramètre <b>Taille maximale de chaque archive</b>. <i><span>500</span> par défaut.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Si <span>true</span>, force l'utilisation de <b>PclZip</b> à la place de <b>ZipArchive</b> comme librairie ZIP. <i><span>false</span> par défaut.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Si <span>true</span>, fournit les fichiers ZIP par redirection HTTP plutôt que par téléchargement PHP. <i><span>false</span> par défaut.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Tableau contenant les extensions de fichier qui peuvent être téléchargés (sensible à la casse). <i><span>$conf['picture_ext']</span> par défaut.</i></dd>
  • extensions/BatchDownloader/language/fr_FR/plugin.lang.php

    r23359 r23383  
    2222$lang['User groups'] = 'Groupes d\'utilisateurs';
    2323$lang['Archives'] = 'Archives';
    24 $lang['Maximum photo size'] = 'Taille maximale des photo';
    25 $lang['Delete downloads after'] = 'Supprimer les téléchargements après';
     24$lang['Maximum photo size'] = 'Taille maximale des photos';
     25$lang['Delete downloads after'] = 'Supprimer les archives après';
    2626$lang['Maximum number of photos per download set'] = 'Nombre maximal de photos par lot';
    2727$lang['Maximum size of each archive (in Megabytes)'] = 'Taille maximale de chaque archive (en Megaoctets)';
     
    5757$lang['Archive #%d (ready)'] = 'Archive #%d (prête)';
    5858$lang['Archive #%d (pending)'] = 'Archive #%d (en attente)';
     59$lang['Delete previous archive when starting to download another one'] = 'Supprimer l\'archive précédente avant de commencer le téléchargement de l\'archive suivante';
     60$lang['It saves space on the server but doesn\'t allow to restart failed downloads.'] = 'Cela permet d\'économiser l\'espace disque mais interdit de recommencer un téléchargement échoué.';
     61$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Forcer l\'utilisation de PclZip à la place de ZipArchive comme librairie ZIP';
     62$lang['Only check if you are experiencing corrupted archives with ZipArchive.'] = 'Ne cochez uniquement que si vous avez des archives corrompues avec ZipArchive.';
     63$lang['Don\'t download archives through PHP'] = 'Ne pas télécharger les archives via PHP';
     64$lang['Only check if your host complains about high PHP usage.'] = 'Ne cochez uniquement que si votre hébergeur se plaint d\'une activité abusive de PHP.';
    5965
    6066?>
  • extensions/BatchDownloader/language/it_IT/advanced.html

    r23350 r23383  
    55<dd>Valore massimo del <b>Dimensione massima di ciascun archivo</b> di slider. <i>Predefinito è <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Se <span>true</span>, impone l'utilizzo di <b>PclZip</b> anziché <b>ZipArchive</b> come libreria ZIP. <i>Predefinito è <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Se <span>true</span>, fornisce i file ZIP con reindirizzamento HTTP invece di flusso PHP. <i>Predefinito è <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Array contenente le estensioni dei file scaricabili (differenzia maiuscole e minuscole). <i>Predefinito è <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/it_IT/plugin.lang.php

    r23359 r23383  
    7777$lang['Archive #%d (already downloaded)'] = 'Archivio #%d (già scaricato)';
    7878$lang['%d MB'] = '%d MB';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Impone l\'utilizzo di PclZip anziché ZipArchive come libreria ZIP';
    7980?>
  • extensions/BatchDownloader/language/lv_LV/advanced.html

    r23347 r23383  
    55<dd>Maksimālā <b>Katra arhīva maksimālais lielums </b> slaidera vērtība.<i>Noklusējuma vērtība ir <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Ja <span>true</span>, lieto piespiedu <b>PclZip</b> <b>ZipArchive</b> vietā kā ZIP bibliotēku. <i>Noklusējuma vērtība ir<span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Ja <span>true</span>, piegādā ZIP failus ar HTTP pāradresāciju PHP plūsmas vietā. <i>Noklusējuma vērtība ir<span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Lejuplādējamu failu paplašinājumu masīvs (reģistrjutīgs). <i>Noklusējuma vērtība ir <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/lv_LV/plugin.lang.php

    r23359 r23383  
    7878$lang['Archive #%d (already downloaded)'] = 'Arhīvs #%d (jau lejupielādēts)';
    7979$lang['%d MB'] = '%d MB';
     80$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Lieto piespiedu PclZip, ZipArchive vietā kā ZIP bibliotēku';
    8081?>
  • extensions/BatchDownloader/language/nl_NL/advanced.html

    r23343 r23383  
    55<dd>Maximale waarde van de <b>Maximale grootte van elk archief</b> schuif. <i>Standaard is <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Indien <span>true</span>, wordt <b>PclZip</b> gebruikt in plaats van <b>ZipArchive</b> als ZIP bibliotheek. <i>Standaard is <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Indien <span>true</span>, geeft ZIP-bestanden met HTTP redirection in plaats van PHP flow. <i>Standaard is <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Reeks met downloadbare bestands-extensies (hoofdlettergevoelig). <i>Standaard is <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/nl_NL/plugin.lang.php

    r23359 r23383  
    7777$lang['Unknown'] = 'Onbekend';
    7878$lang['%d MB'] = '%d MB';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Wordt <b>PclZip</b> gebruikt in plaats van <b>ZipArchive</b> als ZIP bibliotheek';
    7980?>
  • extensions/BatchDownloader/language/pl_PL/advanced.html

    r23341 r23383  
    55<dd>Maksymalna wartość suwaka: <b>Maksymalny rozmiar każdego archiwum</b>. <i>Domyślnie <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Jeśli <span>true</span>, wymusza użycie <b>PclZip</b> w przeciwnym razie używa <b>ZipArchive</b> jako biblioteki ZIP. <i>Domyślnie <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Jeśli <span>true</span>, dostarcza pliki z przekierowaniem HTTP zamiast przepływu PHP. <i>Domyślnie <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Tablica zawierająca dopuszczone do pobrania rozszerzenia plików (ważna wielkość znaków). <i>Domyślnie <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/pl_PL/plugin.lang.php

    r23359 r23383  
    7777$lang['Preparation'] = 'Przygotowanie';
    7878$lang['Unknown'] = 'Nieznane';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Wymusza użycie PclZip w przeciwnym razie używa ZipArchive jako biblioteki ZIP';
    7980?>
  • extensions/BatchDownloader/language/pt_BR/advanced.html

    r23355 r23383  
    55<dd>Valor máximo do <b>Tamanho máximo de cada arquivo</b> deslizante. <i>O padrão é <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Se <span>true</span>, obriga à utilização de <b>PclZip</b> no lugar de <b>ZipArchive</b> como biblioteca ZIP. <i>O padrão é <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Se <span>true</span>, entrega será de arquivos ZIP com o redirecionamento de HTTP em vez de fluxo PHP. <i>O padrão é <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Array contendo as extensões de arquivo para download (existe distição entre maiúsculas e minúsculas). <i>O padrão é <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/pt_BR/plugin.lang.php

    r23359 r23383  
    7777$lang['Sorry, there is nothing to download. Some files may have been excluded because of <i title="Authorized types are : %s">filetype restrictions</i>.'] = 'Desculpe, não há nada para baixar. Alguns arquivos podem ter sido excluídos por causa de <i title="Tipos authorizados são: %s">restrições de tipo de arquivo</i>.';
    7878$lang['Unknown'] = 'Desconhecido';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Obriga à utilização de PclZip no lugar de ZipArchive como biblioteca ZIP';
    7980?>
  • extensions/BatchDownloader/language/pt_PT/advanced.html

    r23352 r23383  
    22<dd>Definir o valor máximo de fotos por descarga. <i>Por defeito é <span>1000</span>.</i></dd>
    33
    4 <dt><span$conf['batch_download_max_size']</span></dt>
     4<dt><span>$conf['batch_download_max_size']</span></dt>
    55<dd>Valor máximo do tamanho de cada arquivo. <i>Por defeito é <span>500</span>.</i></dd>
    66
    7 <dt><span$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Se <span>true</span>, O uso de <b>PclZip</b> é forçado em vez de <b>ZipArchive</b> da livraria ZIP. <i>Por defeito é <span>false</span>.</i></dd>
    9 
    10 <dt><span$conf['batch_download_direct']</span></dt>
    11 <dd>Se <span>true</span>, fornece arquivos ZIP com redirecionamento HTTP em vez de fluxo PHP. <i>Por defeito é <span>false</span>.</i></dd>
    12 
    13 <dt><span$conf['batch_download_additional_ext']</span></dt>
     7<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Matriz contendo extensões de arquivos descarregáveis (maiúsculas e minúsculas). <i>Por defeito é <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/pt_PT/plugin.lang.php

    r23359 r23383  
    6868$lang['Warning: Only registered users can use Batch Downloader.'] = 'Aviso: Apenas utilizadores registados podem usar o Batch Downloader';
    6969$lang['What can be downloaded?'] = 'O que pode ser descarregado?';
    70 $lang['No result'] = 'Κανένα αποτέλεσμα';
    7170$lang['%d MB'] = '%d MB';
    7271$lang['Archive #%d (already downloaded)'] = 'Arquivo #%d (já descarregado)';
     
    7776$lang['Sorry, there is nothing to download. Some files may have been excluded because of <i title="Authorized types are : %s">filetype restrictions</i>.'] = 'Desculpe, não existe algo para descarga. Alguns arquivos foram excluídos devido ao <i title="Tipos autorizados são: %s">filetype restrictions</i>.';
    7877$lang['Unknown'] = 'Desconhecido';
     78$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'O uso de PclZip é forçado em vez de ZipArchive da livraria ZIP';
    7979?>
  • extensions/BatchDownloader/language/ru_RU/advanced.html

    r23298 r23383  
    55<dd>Максимальный уровень <b>Максимальный размер каждого архива</b> slider. <i>По умолчанию <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Если <span>true</span>, то применяется <b>PclZip</b> вместо <b>ZipArchive</b> в качестве Zip-архиватора. <i>По умолчанию <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Если <span>true</span>, то разрешаются ZIP-файлы с перенаправлением HTTP, вместо PHP. <i>По умолчанию <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Массив-перечень расширений файлов, доступных для закачивания (с учетом регистра). <i>По умолчанию <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/ru_RU/plugin.lang.php

    r23359 r23383  
    7676$lang['Please wait, your download is being prepared. This page will automatically refresh when it is ready.'] = 'Пожалуйста, подождите. Ваша закачка готовится. Эта страница обновится автоматически по мере готовности.';
    7777$lang['Preparation'] = 'Подготовка';
    78 $lang['Unknown'] = 'Неизвестно :(';
     78$lang['Unknown'] = 'Неизвестно';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'то применяется PclZip вместо ZipArchive в качестве Zip-архиватора';
    7980?>
  • extensions/BatchDownloader/language/sk_SK/advanced.html

    r23353 r23383  
    55<dd>Maximálna hodnota <b>Maximálna veľkosť každého archívu</b>. <i>Prednastavené je <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd>Ak je <span>true</span>, použije sa <b>PclZip</b> namiesto <b>ZipArchive</b> ako ZIP knižnica. <i>Prednastavené je <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd>Ak je <span>true</span>, posiela ZIP súbory s presmerovaním HTTP namiesto toku PHP. <i>Prednastavené je <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>Polia obsahujúce prípony súborov na prevzatie (malé a veľké písmená). <i>Prednastavené je <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/sk_SK/plugin.lang.php

    r23359 r23383  
    7777$lang['Archive #%d (already downloaded)'] = 'Archív #%d (bol stiahnutý)';
    7878$lang['%d MB'] = '%d MB';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'Použije sa PclZip namiesto ZipArchive ako ZIP knižnica';
    7980?>
  • extensions/BatchDownloader/language/tr_TR/advanced.html

    r23346 r23383  
    55<dd><b>Her arşivin azami büyüklüğü</b> slider'ındaki azami değer. <i>Varsayılan <span>500</span>.</i></dd>
    66
    7 <dt><span>$conf['batch_download_force_pclzip']</span></dt>
    8 <dd><span>true</span> olduğunda, ZIP kütüphanesi olarak <b>ZipArchive</b> yerine <b>PclZip</b> kullanılmasını zorlar. <i>Varsayılan <span>false</span>.</i></dd>
    9 
    10 <dt><span>$conf['batch_download_direct']</span></dt>
    11 <dd><span>true</span> olduğunda ZIP dosyaları PHP akışı yerine HTTP yönlendirmesi ile indirilir. <i>Varsayılan <span>false</span>.</i></dd>
    12 
    137<dt><span>$conf['batch_download_additional_ext']</span></dt>
    148<dd>İndirilebilir dosya uzantısına sahip dizi (büyük-küçük harfe duyarlı). <i>Varsayılan <span>$conf['picture_ext']</span>.</i></dd>
  • extensions/BatchDownloader/language/tr_TR/plugin.lang.php

    r23359 r23383  
    7777$lang['Preparation'] = 'Hazırlık';
    7878$lang['Unknown'] = 'Bilinmiyor';
     79$lang['Force the usage of PclZip instead of ZipArchive as ZIP library'] = 'ZIP kütüphanesi olarak ZipArchive yerine PclZip kullanılmasını zorlar';
    7980?>
Note: See TracChangeset for help on using the changeset viewer.