Changeset 1404


Ignore:
Timestamp:
02/19/18 08:10:51 (8 months ago)
Author:
gogo
Message:

Setup to sort the language data files properly by key, I meant to do that before committing the big patch.

Location:
trunk/contrib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/contrib/lc_create_merged_file.php

    r1402 r1404  
    181181   
    182182  // Setup the array so that the ordering is correct 
    183   $Nt = '___ TRANSLATOR NOTE   ___';    
     183  $Nt = '__ TRANSLATOR NOTE __';    
    184184  foreach($languageDirs as $langX => $dir) 
    185185  { 
  • trunk/contrib/lc_split_merged_file.php

    r1402 r1404  
    163163      } 
    164164       
    165       // if the existign file string isn't in the new data 
     165      // if the existing file string isn't in the new data 
    166166      // it is obsolete 
    167167      foreach($existingFile as $English=>$Local) 
     
    173173      } 
    174174       
     175      // Remove any note 
     176      unset($Data['__ TRANSLATOR NOTE __']); 
     177       
     178      // Sort on the key (english text) 
     179      ksort($Data); 
     180       
    175181      // Push those obsoletes into the data so marked 
    176182      if(count($obsoleteStrings)) 
    177183      { 
     184        ksort($obsoleteStrings); 
    178185        $Data['__OBSOLETE__'] = $obsoleteStrings; 
    179186      } 
     
    200207          $Data = $newData; 
    201208      */ 
     209       
    202210    } 
    203211     
Note: See TracChangeset for help on using the changeset viewer.