Ignore:
Timestamp:
Jan 19, 2016, 11:10:33 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Translation groups sorted by localized name again.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/TranslationList.php

    r847 r855  
    2323
    2424    $Output = '<form action="?" method="post">'.
    25         '<table class="BaseTable"><tr>'.
    26         '<th>'.T('Processing').'</th>'.
    27         '<th>'.T('Group').'</th>'.
    28         '<th>'.T('Version').'</th>'.
    29         '<th>'.T('Language').'</th>'.
    30         '<th>'.T('Translator').'</th>'.
    31         '<th>'.T('Words').'</th>'.
    32         '<th>'.T('Item').'</th>'.
    33         '<th></th></tr><tr>';
     25      '<table class="BaseTable"><tr>'.
     26      '<th>'.T('Processing').'</th>'.
     27      '<th>'.T('Group').'</th>'.
     28      '<th>'.T('Version').'</th>'.
     29      '<th>'.T('Language').'</th>'.
     30      '<th>'.T('Translator').'</th>'.
     31      '<th>'.T('Words').'</th>'.
     32      '<th>'.T('Item').'</th>'.
     33      '<th></th></tr><tr>';
    3434
    3535    // State
     
    7373    else $Selected = '';
    7474    $Output .= '<option value="0"'.$Selected.'>'.T('All').'</option>';
    75     $DbResult = $this->Database->query('SELECT `Id`,`Name` FROM `Group` ORDER BY `Name`');
     75    $DbResult = $this->Database->query('SELECT `Id`,`Name` FROM `Group`');
    7676    while($Group = $DbResult->fetch_assoc())
     77      $Groups[T($Group['Name'])] = $Group;
     78    ksort($Groups);
     79    foreach($Groups as $Group)
    7780    {
    7881      if($Group['Id'] == $Filter['Group']) $Selected = ' selected="selected"';
     
    382385      $Filter = $this->ShowFilter();
    383386      if($Filter['Group'] > 0) $Output = $this->ShowTranslationList($Filter);
    384       else $Output = $this->ShowGroupList($Filter);
     387        else $Output = $this->ShowGroupList($Filter);
    385388    }
    386389    return($Output);
Note: See TracChangeset for help on using the changeset viewer.