Changeset 846 for trunk/Modules
- Timestamp:
- Jan 15, 2016, 10:24:05 PM (9 years ago)
- Location:
- trunk/Modules
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Dictionary/Dictionary.php
r843 r846 92 92 { 93 93 $Output .= '<form action="?action=save" method="post">'. 94 '<fieldset><legend> Vložení nového slova</legend>'.94 '<fieldset><legend>'.T('New word insertion').'</legend>'. 95 95 '<table><tr><td>'. 96 'Původní anglické slovo:</td><td><input type="text" name="Original" /></td></tr>'.96 T('Original word').':</td><td><input type="text" name="Original" /></td></tr>'. 97 97 '<tr><td>'.T('Translated').':</td><td><input type="text" name="Translated" /></td></tr>'. 98 98 '<tr><td>'.T('Language').':</td><td>'.WriteLanguages($_SESSION['language']).'</td></tr>'. … … 238 238 if($Language['Enabled'] == 1) 239 239 { 240 $Lang = ' <a href="?language='.$Language['Id'].'">'. $Language['Name'].'</a>';240 $Lang = ' <a href="?language='.$Language['Id'].'">'.T($Language['Name']).'</a>'; 241 241 if($Language['Id'] == $_SESSION['language']) $Output .= '<strong>'.$Lang.'</strong> '; 242 242 else $Output .= $Lang; … … 290 290 '<td>'.$Line['Original'].'</td>'. 291 291 '<td><strong>'.$Line['Translated'].'</strong></td>'; 292 if(!is_numeric($_SESSION['language'])) $Output .= '<td>'. $Line['LangName'].'</td>';292 if(!is_numeric($_SESSION['language'])) $Output .= '<td>'.T($Line['LangName']).'</td>'; 293 293 $Output .= '<td>'.$Line['Description'].'</td>'. 294 294 '<td><a href="'.$this->System->Link('/user/?user='.$Line['UserId']).'">'. -
trunk/Modules/Export/Page.php
r843 r846 380 380 { 381 381 $Output .= '<input type="submit" value="'.T('Save').'" '.$DisabledInput[$Editable].'/>'. 382 383 384 385 382 '<input type="hidden" name="Operation" value="Save"/>'. 383 '<br />'. 384 T('Select languades from list witch you want to export from. And edit theirs order.').'<br />'. 385 T('Order is done by numeric value which is can be edit to desirable order. Lines with same number will be renumbered in ascending order.'); 386 386 } 387 387 … … 399 399 $Sequence = '<input type="text" name="seq'.$Langugage['Id'].'" style="text-align: center; width: 40px;" value="'.$Langugage['Sequence2'].'"'.$DisabledInput[$Editable].'/>'; 400 400 $Output .= '<tr> 401 <td>'. $Langugage['Name'].'</td>401 <td>'.T($Langugage['Name']).'</td> 402 402 <td>'.$Selection.'</td><td>'.$Sequence.'</td></tr>'; 403 403 } … … 448 448 foreach($TranslationTree as $Group) 449 449 { 450 // echo $Group['Id'].' ';451 450 foreach($TranslationTree[$Group['Id']]['Items'] as $Column) { 452 451 if(array_key_exists('item'.$Column['Id'], $_POST)) $Selected = true; … … 486 485 $Order = GetOrderTableHeader($TableColumns, 'Name'); 487 486 $Output .= '<form action="?Action=View&ExportId='.$_GET['ExportId'].'" method="post">'. 488 '<h3> Překladové skupiny</h3>';487 '<h3>'.T('Translation groups').'</h3>'; 489 488 if($Editable) 490 489 { … … 518 517 $Output .= '<tr>'. 519 518 '<td>'.$Selection.'<input type="hidden" name="seq'.$Group['Id'].'"/></td>'. 520 '<td>'. $Group['Name'].'</td><td>';519 '<td>'.T($Group['Name']).'</td><td>'; 521 520 if ($Group['MangosTable'] <> '') 522 521 $Output .= $Group['MangosTable'].'.sql '; … … 526 525 $Output .= $Group['DBCFileName'].'.dbc '; 527 526 528 $Output .= 529 $Output .= 530 $Output .= 527 $Output .= '</td><td>'; 528 $Output .= $Columns. '</td>'; 529 $Output .= '</tr>'; 531 530 } 532 531 $Output .= '</table>'. 533 534 532 '</form>'. 533 $PageList['Output']; 535 534 return($Output); 536 535 } … … 726 725 while($Group = $ID->fetch_assoc()) 727 726 { 728 $Output .= '<tr><td>'. $Group['Name'].'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';727 $Output .= '<tr><td>'.T($Group['Name']).'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>'; 729 728 $Translated += $Group['Translated']; 730 729 $Total += $Group['Total']; -
trunk/Modules/Forum/Forum.php
r838 r846 199 199 $Output .= '<form action="?Thread='.$_GET['Thread'].'" method="post">'. 200 200 '<fieldset><legend>'.T('New Forum Message').'</legend>'. 201 'Uživatel: ';201 T('User').': '; 202 202 if($this->System->User->Licence(LICENCE_USER)) $Output .= '<b>'.$this->System->User->Name.'</b><br />'; 203 203 else $Output .= '<input type="text" name="user" /><br />'; … … 218 218 $Output .= '<form action="?" method="post">'. 219 219 '<fieldset><legend>'.T('New thread').'</legend>'. 220 'Uživatel: ';220 T('User').': '; 221 221 if($this->System->User->Licence(LICENCE_USER)) $Output .= '<b>'.$this->System->User->Name.'</b><br />'; 222 222 else $Output .= '<input type="text" name="user" /><br />'; -
trunk/Modules/FrontPage/FrontPage.php
r843 r846 123 123 '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&ID='.$DbRow['ID']).'">'.$DbRow['ID'].'</a></td>'. 124 124 '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&ID='.$DbRow['Take']).'">'.$DbRow['Take'].'</a></td>'. 125 '<td><a href="'.$this->System->Link('/TranslationList.php?group='.$DbRow['Group'].'&action=filter').'">'. $DbRow['GroupName'].'</a></td></tr>';125 '<td><a href="'.$this->System->Link('/TranslationList.php?group='.$DbRow['Group'].'&action=filter').'">'.T($DbRow['GroupName']).'</a></td></tr>'; 126 126 } 127 127 $Output .= '</table>'; -
trunk/Modules/Import/Manage.php
r842 r846 71 71 while($Group = $DbResult->fetch_assoc()) 72 72 { 73 $Output .= '<tr><td>'. $Group['Name'].'</td>'.73 $Output .= '<tr><td>'.T($Group['Name']).'</td>'. 74 74 '<td>'.$Group['SourceType'].'</td><td>'; 75 75 if($Group['MangosTable'] != '') $Output .= $Group['MangosTable'].'.sql '; -
trunk/Modules/Search/Search.php
r838 r846 17 17 } 18 18 19 function doStart()19 function DoStart() 20 20 { 21 21 $this->System->RegisterPage('search', 'PageSearch'); -
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 } -
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 { -
trunk/Modules/User/Profile.php
r844 r846 109 109 { 110 110 $Output .= '<tr><td>'.HumanDate($DbRow['ModifyTime']).'</td>'. 111 '<td><a href=" form.php?group='.$DbRow['Group'].'&ID='.$DbRow['ID'].'">'.$DbRow['ID'].'</a></td>'.112 '<td><a href=" form.php?group='.$DbRow['Group'].'&ID='.$DbRow['Take'].'">'.$DbRow['Take'].'</a></td>'.113 '<td><a href=" TranslationList.php?group='.$DbRow['Group'].'&action=filter">'.$DbRow['GroupName'].'</a></td></tr>';111 '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&ID='.$DbRow['ID']).'">'.$DbRow['ID'].'</a></td>'. 112 '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&ID='.$DbRow['Take']).'">'.$DbRow['Take'].'</a></td>'. 113 '<td><a href="'.$this->System->Link('/TranslationList.php?group='.$DbRow['Group'].'&action=filter').'">'.T($DbRow['GroupName']).'</a></td></tr>'; 114 114 } 115 115 $Output .= '</table>'; … … 153 153 $Output .= 154 154 '<h3>'.T('Translator').' '.$UserLine['Name'].'</h3>'. 155 T('Default language:').' <strong>'. $UserLine['LanguageName'].'</strong><br />'.155 T('Default language:').' <strong>'.T($UserLine['LanguageName']).'</strong><br />'. 156 156 T('Default client version:').' <a href="'.$this->System->Link('/client-version/?action=item&id='.$UserLine['PreferredVersion']).'"><strong>'.$UserLine['Version'].'</strong></a><br />'. 157 157 T('Last logged in:').' <strong>'.HumanDateTime($UserLine['LastLogin']).'</strong><br />'.
Note:
See TracChangeset
for help on using the changeset viewer.