- Timestamp:
- Mar 24, 2010, 3:00:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/translation_analysis.php
r5301 r5309 64 64 // strings not "really" translated? 65 65 $output_duplicated = ''; 66 $output_lost = ''; 66 67 foreach (array_keys($metalang[$language][$file]) as $key) 67 68 { … … 78 79 79 80 $local_value = $metalang[$language][$file][$key]; 80 $ref_value = $metalang[ $page['ref_default_values'] ][$file][$key]; 81 if ($local_value == $ref_value) 81 if (!isset($metalang[ $page['ref_default_values'] ][$file][$key])) 82 82 { 83 $output_duplicated.= get_line_to_translate($file, $key); 83 $output_lost.= '#'.$key.'# does not exist in the reference language'."\n"; 84 } 85 else 86 { 87 $ref_value = $metalang[ $page['ref_default_values'] ][$file][$key]; 88 if ($local_value == $ref_value) 89 { 90 $output_duplicated.= get_line_to_translate($file, $key); 91 } 84 92 } 85 93 } … … 98 106 echo '<h3>'.$file.'.lang.php</h3>'; 99 107 echo '<textarea style="width:100%;height:150px;">'.$output.'</textarea>'; 108 } 109 110 if ('' != $output_lost) 111 { 112 echo '<pre>'.$output_lost.'</pre>'; 100 113 } 101 114 }
Note: See TracChangeset
for help on using the changeset viewer.