Changeset 609 for trunk/Modules
- Timestamp:
- Nov 26, 2013, 10:45:01 PM (11 years ago)
- Location:
- trunk/Modules
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Modules/Dictionary/Dictionary.php ¶
r602 r609 96 96 '</fieldset>'. 97 97 '</form>'; 98 } else $Output .= ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);98 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 99 99 return($Output); 100 100 } … … 135 135 $Output = ShowMessage('Záznam byl uložen!'); 136 136 } else $Output = ShowMessage('Nebyly zaslány všechny položky formuláře.', MESSAGE_CRITICAL); 137 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);137 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 138 138 return($Output); 139 139 } … … 145 145 $this->Database->query('DELETE FROM `Dictionary` WHERE (`User`='.$this->System->User->Id.') AND (`Id`='.($_GET['id'] * 1).')'); 146 146 $Output = ShowMessage('Záznam odstraněn.'); 147 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);147 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 148 148 return($Output); 149 149 } … … 173 173 '</form>'; 174 174 } else $Output = ShowMessage('Položka nenalezena', MESSAGE_CRITICAL); 175 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);175 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 176 176 return($Output); 177 177 } -
TabularUnified trunk/Modules/Export/Page.php ¶
r578 r609 91 91 '</table></fieldset></form>'; 92 92 } else $Output = ShowMessage('Nemůžete vytvářet další export. Max. počet na uživatele je '.$this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL); 93 } else $Output = ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);93 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 94 94 return($Output); 95 95 } … … 113 113 } else $Output = ShowMessage('Nemůžete vytvářet další export. Max. počet na uživatele je '.$this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL); 114 114 } else $Output = ShowMessage('Chybí údaje formuláře.', MESSAGE_CRITICAL); 115 } else $Output = ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);115 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 116 116 return($Output); 117 117 } … … 135 135 $Output .= $this->ExportList(); 136 136 } else $Output = ShowMessage('Export nenalezen.', MESSAGE_CRITICAL); 137 } else $Output = ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);137 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 138 138 return($Output); 139 139 } … … 722 722 $this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL); 723 723 } else $Output = ShowMessage('Export nenalezen.', MESSAGE_CRITICAL); 724 } else $Output = ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);724 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 725 725 return($Output); 726 726 } -
TabularUnified trunk/Modules/FrontPage/FrontPage.php ¶
r608 r609 39 39 if($this->System->User->Role == LICENCE_ANONYMOUS) 40 40 { 41 $Message = 'Jméno nebo heslo bylo zadáno špatně.';41 $Message = T('Incorrect name or password'); 42 42 $MessageType = MESSAGE_CRITICAL; 43 43 } else 44 44 { 45 $Message = 'Přihlášení proběhlo úspěšně. Vítej <strong>'.$this->System->User->Name.'</strong>!';45 $Message = sprintf(T('Login successful. Welcome <strong>%s</strong>!'), $this->System->User->Name); 46 46 $MessageType = MESSAGE_INFORMATION; 47 47 } 48 48 } else 49 49 { 50 $Message = 'Nebylo zadáno jméno a heslo.';50 $Message = T('User name or password was not entered'); 51 51 $MessageType = MESSAGE_CRITICAL; 52 52 } … … 58 58 $this->System->ModuleManager->Modules['Log']->WriteLog('Odhlášení', LOG_TYPE_USER); 59 59 $this->System->User->Logout(); 60 $Message = 'Byl jsi odhlášen.';60 $Message = T('You were logged out'); 61 61 $MessageType = MESSAGE_INFORMATION; 62 62 } -
TabularUnified trunk/Modules/Import/Manage.php ¶
r578 r609 105 105 else $Output .= $this->ShowMenu(); 106 106 } else $Output .= $this->ShowMenu(); 107 } else $Output .= ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);107 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 108 108 return($Output); 109 109 } -
TabularUnified trunk/Modules/Import/cmd.php ¶
r553 r609 12 12 if(!Licence(LICENCE_ADMIN)) 13 13 { 14 $Output = 'Nemáte oprávnění';14 $Output = T('Access denied'); 15 15 } 16 16 -
TabularUnified trunk/Modules/Log/Log.php ¶
r600 r609 198 198 '<a href="'.$this->System->Link('/log.php?a=delerrlog&type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>'; 199 199 } 200 } else $Output .= ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);200 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 201 201 202 202 return($Output); … … 217 217 $Output .= $this->ShowList(); 218 218 return($Output); 219 } else $Output .= ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);219 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 220 220 } 221 221 } -
TabularUnified trunk/Modules/News/RSS.php ¶
r585 r609 50 50 $Output = $Class->$Channel['Callback'][1](); 51 51 } else $Output = call_user_func($Channel['Callback']); 52 } else $Output = 'Nemáte oprávnění';52 } else $Output = T('Access denied'); 53 53 } else $Output = 'Nezadán žádný kanál'; 54 54 return($Output); -
TabularUnified trunk/Modules/Referrer/Referrer.php ¶
r577 r609 174 174 } else $Output = ShowMessage('Položka nenalezena', MESSAGE_CRITICAL); 175 175 } else $Output = ShowMessage('Položka nezadána', MESSAGE_CRITICAL); 176 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);176 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 177 177 return($Output); 178 178 } … … 190 190 $Output = ShowMessage('Nastavení uloženo'); 191 191 $Output .= $this->ShowList(); 192 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);192 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 193 193 return($Output); 194 194 } -
TabularUnified trunk/Modules/Server/Server.php ¶
r569 r609 18 18 $this->System->RegisterPage('server', 'PageServerList'); 19 19 $this->System->RegisterMenuItem(array( 20 'Title' => 'Servery',20 'Title' => T('Servers'), 21 21 'Hint' => 'Seznam serverů, kde je nasazena čeština v praxi', 22 22 'Link' => $this->System->Link('/server/'), -
TabularUnified trunk/Modules/Translation/Form.php ¶
r593 r609 229 229 $Output = ShowMessage('Překlad byl smazán.'); 230 230 $this->System->ModuleManager->Modules['Log']->WriteLog('Překlad byl smazán! <a href="'.$this->System->Link('/form.php?group='.$GroupID.'&ID='.$TextID).'">'.$TextID.'</a>', LOG_TYPE_MODERATOR); 231 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);231 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 232 232 return($Output); 233 233 } -
TabularUnified trunk/Modules/Translation/TranslationList.php ¶
r602 r609 362 362 '<tr><td colspan="2"><input type="submit" name="add" value="Přidat"/></td></tr>'. 363 363 '</table></form>'; 364 } else $Output = ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);364 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 365 365 return($Output); 366 366 } … … 410 410 } else $Output = ShowMessage('Překladová skupina '.$TableName.' již existuje', MESSAGE_CRITICAL); 411 411 $Output .= $this->ShowGroupTypeList(); 412 } else $Output = ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);412 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 413 413 return($Output); 414 414 } … … 427 427 $Output = ShowMessage('Překladová skupina '.$Group['Name'].' smazána', MESSAGE_INFORMATION); 428 428 } else $Output = ShowMessage('Překladová skupina nenalezena', MESSAGE_CRITICAL); 429 } else $Output = ShowMessage( 'Nemáte oprávnění.', MESSAGE_CRITICAL);429 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 430 430 $Output .= $this->ShowGroupTypeList(); 431 431 return($Output); -
TabularUnified trunk/Modules/User/Profile.php ¶
r608 r609 18 18 if(@mail($Email, $Subject, $Text, 'From: '.$this->System->Config['Web']['AdminEmail'].'\nReply-To: '.$this->System->Config['Web']['AdminEmail'].'\nX-Mailer: PHP/')) 19 19 { 20 $Output .= ShowMessage(T('Message was sent .'));20 $Output .= ShowMessage(T('Message was sent')); 21 21 } 22 22 else $Output .= ShowMessage('Nepodařilo se odesat E-mail.', MESSAGE_CRITICAL); 23 } else $Output .= ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);23 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 24 24 return($Output); 25 25 } -
TabularUnified trunk/Modules/User/User.php ¶
r585 r609 37 37 function ShowOnlineList() 38 38 { 39 $Output = 'Online překladatelé:<br />';39 $Output = T('Online translators').':<br />'; 40 40 $DbResult = $this->System->Database->query('SELECT `Name`, `GM`, `User`.`ID` AS `ID` FROM `User` '. 41 41 'LEFT JOIN `UserTrace` ON `UserTrace`.`User` = `User`.`Id` '. -
TabularUnified trunk/Modules/Wiki/Wiki.php ¶
r576 r609 121 121 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 122 122 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 123 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);123 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 124 124 return($Output); 125 125 } … … 142 142 $Output .= $this->ShowContent(); 143 143 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 144 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);144 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 145 145 return($Output); 146 146 } … … 188 188 $PageList['Output']; 189 189 } else $Output = ShowMessage('Wiki stránka nenalezena', MESSAGE_CRITICAL); 190 } else $Output = ShowMessage( 'Nemáte oprávnění', MESSAGE_CRITICAL);190 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 191 191 return($Output); 192 192 }
Note:
See TracChangeset
for help on using the changeset viewer.