Changeset 846 for trunk/Modules/Team
- Timestamp:
- Jan 15, 2016, 10:24:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Team/Team.php
r843 r846 230 230 } else $Leader = array('Name' => '', 'Id' => 0); 231 231 232 $Output .='<h3> Překladatelský tým'.$Team['Name'].'</h3><br />'.233 'Webové stránky: <a href="http://'.$Team['URL'].'">'.$Team['URL'].'</a><br/>'.234 'Vedoucí: <a href="'.$this->System->Link('/user/?user='.$Leader['Id']).'">'.$Leader['Name'].'</a><br/>';232 $Output .='<h3>'.T('Translation team').' '.$Team['Name'].'</h3><br />'. 233 T('Web pages').': <a href="http://'.$Team['URL'].'">'.$Team['URL'].'</a><br/>'. 234 T('Leader').': <a href="'.$this->System->Link('/user/?user='.$Leader['Id']).'">'.$Leader['Name'].'</a><br/>'; 235 235 if($Team['Description'] != '') 236 $Output .= 'Popis: '.$Team['Description'].'<br />';236 $Output .= T('Description').': '.$Team['Description'].'<br />'; 237 237 $Output .= '<br />'; 238 238 //$Output .= '<a href="export/?team='.$Team['Id'].'">Exportovat překlad týmu</a> '; 239 239 if($this->System->User->Licence(LICENCE_USER)) 240 $Output .='<a href="?action=gointeam&id='.$Team['Id'].'"> Vstoupit do týmu</a><br /><br />';240 $Output .='<a href="?action=gointeam&id='.$Team['Id'].'">'.T('Enter to team').'</a><br /><br />'; 241 241 $XP = GetLevelMinMax($Team['AverageXP']); 242 $Output .='<fieldset><legend> Statistika</legend>'.243 'Počet členů týmu: <a href="'.$this->System->Link('/userlist.php?team='.$Team['Id']).'" title="Zobrazit členy týmu">'.$Team['NumberUser'].'</a><br />'.244 'Počet přeložených textů týmu: <strong>'.$Team['NumberTranslate'].'</strong><br />'.245 'Průměrná úroveň překladatelů v týmu: <strong>'.$XP['Level'].'</strong> zkušenost: '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br />'.242 $Output .='<fieldset><legend>'.T('Statistics').'</legend>'. 243 T('Team member count').': <a href="'.$this->System->Link('/userlist/?team='.$Team['Id']).'" title="Zobrazit členy týmu">'.$Team['NumberUser'].'</a><br />'. 244 T('Team number of translated texts').': <strong>'.$Team['NumberTranslate'].'</strong><br />'. 245 T('Average level of team members').': <strong>'.$XP['Level'].'</strong> '.T('experience').': '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br />'. 246 246 '<br />'. 247 '<strong> Stav dokončení týmu pro verzi'.$this->System->Config['Web']['GameVersion'].'</strong><br />';247 '<strong>'.T('Team completion state for version').' '.$this->System->Config['Web']['GameVersion'].'</strong><br />'; 248 248 249 249 $BuildNumber = GetBuildNumber($this->System->Config['Web']['GameVersion']); … … 277 277 $Output .='<table class="BaseTable">'; 278 278 $TableColumns = array( 279 array('Name' => 'Name', 'Title' => 'Jméno'),280 array('Name' => 'Translated', 'Title' => 'Přeložených'),281 array('Name' => 'Total', 'Title' => 'Anglických'),282 array('Name' => 'Percent', 'Title' => 'Procenta'),279 array('Name' => 'Name', 'Title' => T('Name')), 280 array('Name' => 'Translated', 'Title' => T('Translated')), 281 array('Name' => 'Total', 'Title' => T('Original')), 282 array('Name' => 'Percent', 'Title' => T('Percent')), 283 283 ); 284 284 … … 291 291 while($Group = $DbResult->fetch_assoc()) 292 292 { 293 $Output .='<tr><td>'.$Group['Name'].'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>'; 293 $Output .='<tr><td>'.T($Group['Name']).'</td><td>'.$Group['Translated']. 294 '</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>'; 294 295 $Translated += $Group['Translated']; 295 296 $Total += $Group['Total']; … … 297 298 if($Total > 0) $Progress = round($Translated / $Total * 100, 2); 298 299 else $Progress = 0; 299 $Output .='<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, $Progress).'</strong></td></tr>'; 300 $Output .='<tr><td><strong>'.T('Total').'</strong></td><td><strong>'. 301 $Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'. 302 ProgressBar(150, $Progress).'</strong></td></tr>'; 300 303 $Output .='</table>'; 301 304 }
Note:
See TracChangeset
for help on using the changeset viewer.