Changeset 5312


Ignore:
Timestamp:
03/24/10 16:49:48 (10 years ago)
Author:
plg
Message:

improvement: ability to analyse a single language.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/translation_analysis.php

    r5309 r5312  
    2929$page['ref_compare'] = 'en_UK'; 
    3030$page['ref_default_values'] = 'en_UK'; 
     31 
     32if (!isset($_GET['lang'])) 
     33{ 
     34  echo '<a href="?lang=all">All languages</a><br><br>'; 
     35  echo '<ul>'; 
     36  foreach ($languages as $language) 
     37  { 
     38    if ($page['ref_compare'] == $language) 
     39    { 
     40      continue; 
     41    } 
     42    echo '<li><a href="?lang='.$language.'">'.$language.'</a></li>'; 
     43  } 
     44  echo '</ul>'; 
     45  exit(); 
     46} 
     47else if (in_array($_GET['lang'], $languages)) 
     48{ 
     49  $languages = array($_GET['lang']); 
     50} 
    3151 
    3252$file_list = array('common', 'admin', 'install', 'upgrade'); 
Note: See TracChangeset for help on using the changeset viewer.