Changeset 25677


Ignore:
Timestamp:
11/24/13 17:50:38 (6 years ago)
Author:
mistic100
Message:

compatible with new l10n

Location:
extensions/plugin_lang_analysis
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/plugin_lang_analysis/admin.php

    r23584 r25677  
    1616    'PLA_STEP' => 'select', 
    1717    'PLA_PLUGINS' => $plugins->fs_plugins, 
    18     'F_ACTION' => PLA_ADMIN, 
     18    'F_ACTION' => PLA_ADMIN.'&config', 
    1919    )); 
    2020} 
    2121 
    2222/* CONFIG */ 
    23 else if (!isset($_GET['analyze'])) 
     23else if (isset($_GET['config'])) 
    2424{ 
    2525  $files = list_plugin_files($_GET['plugin_id']); 
     
    7272 
    7373/* ANALYSIS */ 
    74 else 
     74else if (isset($_GET['analyze'])) 
    7575{ 
    7676  // save 
     
    242242    'PLA_LANG_FILES' => array_keys($language_files), 
    243243    'PLA_COUNTS' => $counts, 
    244     'U_BACK' => PLA_ADMIN.'&plugin_id='.$_GET['plugin_id'], 
     244    'U_BACK' => PLA_ADMIN.'&plugin_id='.$_GET['plugin_id'].'&config', 
    245245    )); 
    246246} 
  • extensions/plugin_lang_analysis/include/functions.inc.php

    r23584 r25677  
    103103  { 
    104104    // l10n 
    105     if (preg_match_all('#l10n\((?:\s*)(?:["\']{1})(.*?)(?:["\']{1})(?:\s*)\)#', $line, $matches)) 
     105    if (preg_match_all('#l10n\((?:\s*)(?:["\']{1})(.*?)(?:["\']{1})#', $line, $matches)) 
    106106    { 
    107107      for ($j=0; $j<count($matches[1]); ++$j) 
  • extensions/plugin_lang_analysis/template/analysis.tpl

    r23488 r25677  
    5555{/html_style} 
    5656 
     57<form class="properties"> 
    5758<fieldset> 
    5859  <legend>{'Analysis results'|@translate}</legend> 
     
    130131  </table> 
    131132</fieldset> 
     133</form> 
  • extensions/plugin_lang_analysis/template/select.tpl

    r23472 r25677  
    1 {footer_script}{literal} 
     1{footer_script} 
    22$('form#pla').submit(function() { 
    3   window.location.href = location.href + '&plugin_id=' + $(this).find('select').val(); 
     3  window.location.href = $(this).attr('action') + '&plugin_id=' + $(this).find('select').val(); 
    44  return false; 
    55}); 
    6 {/literal}{/footer_script} 
     6{/footer_script} 
    77 
    88<form method="GET" action="{$F_ACTION}" class="properties" id="pla"> 
Note: See TracChangeset for help on using the changeset viewer.