Show
Ignore:
Timestamp:
03/15/11 19:55:17 (2 years ago)
Author:
patdenice
Message:

New languages keys.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/trunk/template/extensions.tpl

    r9707 r9710  
    88var successHead = '{'Upgrade Complete'|@translate|@escape:'javascript'}'; 
    99var errorMsg    = '{'an error happened'|@translate|@escape:'javascript'}'; 
     10var restoreMsg  = '{'autoupdate_reset_ignore'|@translate|@escape:'javascript'}'; 
    1011 
    1112{literal} 
     
    3637      "plugins/autoupdate/ajax/ignore_list.php", 
    3738      { reset: true }, 
    38       function(data) { if (data == "ok") { jQuery(".pluginBox, fieldset").show(); jQuery("#reset_ignore").hide(); } } 
     39      function(data) { 
     40        if (data == "ok") { 
     41          jQuery(".pluginBox, fieldset").show(); 
     42          jQuery("#up_to_date").hide(); 
     43          jQuery("#reset_ignore").hide(); 
     44          jQuery("#ignored").hide(); 
     45        } 
     46      } 
    3947    ); 
    4048    return false; 
     
    4654  var types = new Array('plugin', 'theme', 'language'); 
    4755  var total = 0; 
     56  var ignored = 0; 
    4857  for (i=0;i<3;i++) { 
    4958    nbExtensions = 0; 
     
    5160        if (jQuery(this).css('display') == 'block') 
    5261          nbExtensions++; 
     62        else 
     63          ignored++; 
    5364      }); 
    5465    total = total + nbExtensions; 
     
    6071    jQuery("#update_all").hide(); 
    6172    jQuery("#up_to_date").show(); 
     73  } 
     74  if (ignored > 0) { 
     75    jQuery("#reset_ignore").val(restoreMsg + ' (' + ignored + ')'); 
    6276  } 
    6377} 
     
    132146  <h2>Piwigo AutoUpgrade</h2> 
    133147</div> 
     148 
    134149<div> 
    135150<input type="button" id="update_all" value="{'autoupdate_update_all'|@translate}"> 
    136151<input type="button" id="reset_ignore" value="{'autoupdate_reset_ignore'|@translate}" {if !$SHOW_RESET}style="display:none;"{/if}> 
    137152</div> 
     153 
     154<p id="up_to_date" style="display:none; text-align:left; margin-left:20px;">{'All extensions are up to date.'|@translate}</p> 
    138155 
    139156{if not empty($update_plugins)} 
     
    262279</div> 
    263280{/if} 
    264  
    265 <p>{'All extensions are up to date'|@translate}</p>