Changeset 846 for trunk/Modules/Translation
- Timestamp:
- Jan 15, 2016, 10:24:05 PM (9 years ago)
- Location:
- trunk/Modules/Translation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Progress.php
r837 r846 52 52 while($Group = $DbResult->fetch_assoc()) 53 53 { 54 $Output .= '<tr><td>'. $Group['Name'].'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';54 $Output .= '<tr><td>'.T($Group['Name']).'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>'; 55 55 $Translated += $Group['Translated']; 56 56 $Total += $Group['Total']; … … 114 114 if($Language['Enabled'] == 1) 115 115 { 116 $Lang = ' <a href="?language='.$Language['Id'].'">'. $Language['Name'].'</a>';116 $Lang = ' <a href="?language='.$Language['Id'].'">'.T($Language['Name']).'</a>'; 117 117 if($Language['Id'] == $_SESSION['language']) $Output .= '<strong>'.$Lang.'</strong> '; 118 118 else $Output .= $Lang; … … 121 121 if(is_numeric($_SESSION['language'])) $LanguageName = $LanguageList[$_SESSION['language']]['Name']; 122 122 else $LanguageName = T('All'); 123 $Output .= '<br/><br /><h3>'.sprintf(T('Statistics of translation completion of language %s for version %s'), $LanguageName, $_SESSION['StatVersion']).'</h3><br/>';123 $Output .= '<br/><br /><h3>'.sprintf(T('Statistics of translation completion of language %s for version %s'), T($LanguageName), $_SESSION['StatVersion']).'</h3><br/>'; 124 124 $Output .= $this->ShowStatTable(); 125 125 -
trunk/Modules/Translation/Translation.php
r843 r846 19 19 $this->License = 'GNU/GPL'; 20 20 $this->Description = 'Translation of text items and groups from original language to other languages.'; 21 $this->Dependencies = array('News' );21 $this->Dependencies = array('News', 'Search'); 22 22 } 23 23 … … 49 49 'Icon' => '', 50 50 )); 51 /* 51 52 if(array_key_exists('Search', $this->System->ModuleManager->Modules)) 52 53 { … … 62 63 63 64 $this->System->ModuleManager->Modules['Search']->RegisterSearch('group'.$Group['Id'], 64 sprintf(T('Translation group "%s"'), $Group['Name']), $Columns, '`'.$Table.'`', $this->System->Link('/TranslationList.php?group='. 65 $Group['Id'].'&user=0&state=0&entry=&text=')); 65 sprintf(T('Translation group "%s"'), $Group['Name']), $Columns, '`'.$Table.'`', 66 $this->System->Link('/TranslationList.php?group='. 67 $Group['Id'].'&user=0&state=0&entry=&text=')); 66 68 } 67 69 } 70 */ 68 71 } 69 72 -
trunk/Modules/Translation/TranslationList.php
r845 r846 59 59 if($Filter['Group'] != 0) 60 60 { 61 if(isset($TranslationTree[$Filter['Group']]) == false) ErrorMessage('Překladová skupina dle zadaného Id neexistuje.'); 61 if(isset($TranslationTree[$Filter['Group']]) == false) 62 ErrorMessage('Překladová skupina dle zadaného Id neexistuje.'); 62 63 $Table = $TranslationTree[$Filter['Group']]['TablePrefix']; 63 64 } … … 77 78 if($Group['Id'] == $Filter['Group']) $Selected = ' selected="selected"'; 78 79 else $Selected = ''; 79 $Output .= '<option value="'.$Group['Id'].'"'.$Selected.'>'. $Group['Name'].'</option>';80 $Output .= '<option value="'.$Group['Id'].'"'.$Selected.'>'.T($Group['Name']).'</option>'; 80 81 } 81 82 $Output .= '</select></td>'; … … 414 415 while($Group = $DbResult->fetch_assoc()) 415 416 { 416 $Output .= '<tr><td><a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&action=filter').'">'. $Group['Name'].'</a></td>'.417 $Output .= '<tr><td><a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&action=filter').'">'.T($Group['Name']).'</a></td>'. 417 418 '<td>'.$Group['SourceType'].'</td><td>'; 418 419 if($Group['MangosTable'] != '') $Output .= $Group['MangosTable'].'.sql '; … … 503 504 if($this->System->User->Licence(LICENCE_ADMIN)) 504 505 { 505 $DbResult = $this->System->Database->select('Group', '*', ' Id='.$_GET['id']);506 $DbResult = $this->System->Database->select('Group', '*', '`Id`='.$_GET['id']); 506 507 if($DbResult->num_rows == 1) 507 508 {
Note:
See TracChangeset
for help on using the changeset viewer.