Changeset 859 for trunk/Modules/Dictionary/Dictionary.php
- Timestamp:
- Jan 21, 2016, 10:20:04 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Dictionary/Dictionary.php
r851 r859 11 11 $this->License = 'GNU/GPL'; 12 12 $this->Description = 'Custom dictionary for better translation coordination'; 13 $this->Dependencies = array( );13 $this->Dependencies = array('Translation'); 14 14 } 15 15 … … 62 62 ); 63 63 64 $buff = GetTranslatNames($Text, $mode,GetTranslatNamesArray());64 $buff = GetTranslatNames($Text, $mode, GetTranslatNamesArray()); 65 65 66 66 // $buff[] = array($Line['ID'],GetIDbyName($Table),$Line[$Column],$Line['Tran']); … … 73 73 $Output .= '<tr><td>'.$Line[2].'</td>'; 74 74 if ($Line[3] <> '') $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&ID='.$Line[0]).'">'.$Line[3].'</a></td></tr>'; 75 else $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&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].'&ID='.$Line[0]).'">'.T('Translate').'</a></td></tr>'; 76 76 } 77 77 } else … … 79 79 $Output .= '<tr><td>'.$Line[2].'</td>'; 80 80 if ($Line[3] <> '') $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&ID='.$Line[0]).'">'.$Line[3].'</a></td></tr>'; 81 else $Output .= '<td><a target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Line[1].'&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].'&ID='.$Line[0]).'">'.T('Translate').'</a></td></tr>'; 82 82 } 83 83 } … … 185 185 function DictionaryGroup() 186 186 { 187 global $TranslationTree;187 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 188 188 189 189 $Output = '';
Note:
See TracChangeset
for help on using the changeset viewer.