Ignore:
Timestamp:
Jul 10, 2012, 6:13:37 PM (12 years ago)
Author:
mistic100
Message:

-fix template override with UserCollection
-localization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/events.inc.php

    r16592 r16598  
    3434      case 'view':
    3535        $page['sub_section'] = 'view';
    36         $page['title'].= l10n('Edit set');
     36        $page['title'].= l10n('Edit the set');
    3737        break;
    3838      default:
     
    107107  // toolbar button
    108108  $button = '<li><a href="'. $url .'&amp;action=advdown_set" title="'.l10n('Download all pictures of this selection').'" class="pwg-state-default pwg-button" rel="nofollow">
    109                         <span class="pwg-icon" style="background:url(\'' . BATCH_DOWNLOAD_PATH . 'template/zip.png\') center center no-repeat;">&nbsp;</span><span class="pwg-button-text">'.l10n('Advanced Downloader').'</span>
     109                        <span class="pwg-icon" style="background:url(\'' . BATCH_DOWNLOAD_PATH . 'template/zip.png\') center center no-repeat;">&nbsp;</span><span class="pwg-button-text">'.l10n('Batch Downloader').'</span>
    110110                </a></li>';
    111111  $template->concat('PLUGIN_INDEX_ACTIONS', $button);
     
    130130    user_id = '.$user['id'].'
    131131    AND status != "done"
     132  LIMIT 1
    132133;';
    133134  $result = pwg_query($query);
    134135  if (!pwg_db_num_rows($result)) return;
    135136 
    136   $menu->register_block(new RegisteredBlock('mbAdvancedDownloader', l10n('Downloads'), 'AdvancedDownloader'));
     137  $menu->register_block(new RegisteredBlock('mbBatchDownloader', l10n('Batch Downloader'), 'BatchDownloader'));
    137138}
    138139
     
    142143 
    143144  $menu = &$menu_ref_arr[0];
    144   $block = $menu->get_block('mbAdvancedDownloader');
     145  $block = $menu->get_block('mbBatchDownloader');
    145146 
    146147  if ($block != null)
     
    171172    $template->set_template_dir(BATCH_DOWNLOAD_PATH . 'template/');
    172173    $block->set_title(l10n('Downloads'));
    173     $block->template = 'menublock.tpl';
     174    $block->template = 'menublock_batch_down.tpl';
    174175    $block->data = $data;
    175176  }
Note: See TracChangeset for help on using the changeset viewer.