Ignore:
Timestamp:
Jan 21, 2016, 10:20:04 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Function GetTranslationTree moved from global to Translation module where it belongs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Dictionary/Dictionary.php

    r851 r859  
    1111    $this->License = 'GNU/GPL';
    1212    $this->Description = 'Custom dictionary for better translation coordination';
    13     $this->Dependencies = array();
     13    $this->Dependencies = array('Translation');
    1414  }
    1515
     
    6262    );
    6363
    64     $buff = GetTranslatNames($Text,$mode,GetTranslatNamesArray());
     64    $buff = GetTranslatNames($Text, $mode, GetTranslatNamesArray());
    6565
    6666    // $buff[] = array($Line['ID'],GetIDbyName($Table),$Line[$Column],$Line['Tran']);
     
    7373          $Output .= '<tr><td>'.$Line[2].'</td>';
    7474          if ($Line[3] <> '') $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&amp;ID='.$Line[0]).'">'.$Line[3].'</a></td></tr>';
    75           else $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&amp;ID='.$Line[0]).'">Překládat</a></td></tr>';
     75          else $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&amp;ID='.$Line[0]).'">'.T('Translate').'</a></td></tr>';
    7676        }
    7777      } else
     
    7979        $Output .= '<tr><td>'.$Line[2].'</td>';
    8080        if ($Line[3] <> '') $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&amp;ID='.$Line[0]).'">'.$Line[3].'</a></td></tr>';
    81           else $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&amp;ID='.$Line[0]).'">Překládat</a></td></tr>';
     81          else $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&amp;ID='.$Line[0]).'">'.T('Translate').'</a></td></tr>';
    8282      }
    8383    }
     
    185185  function DictionaryGroup()
    186186  {
    187     global $TranslationTree;
     187    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    188188
    189189    $Output = '';
Note: See TracChangeset for help on using the changeset viewer.