- Timestamp:
- Sep 12, 2013, 11:19:43 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Export.php
r573 r582 50 50 function BuildQuery($Group, $Columns = '', $Version = '') 51 51 { 52 global $TranslationTree , $Config;52 global $TranslationTree; 53 53 54 54 if ($Version <> '') … … 73 73 $Query = 'SELECT `T4`.*, '.$OriginalColumns.' FROM ('.$Query.') AS `T4` '. 74 74 ' LEFT JOIN `'.$Group['TablePrefix'].'` AS `T3` ON (`T3`.`Entry` = `T4`.`Entry`) '. 75 'AND (`T3`.`Language` = '.$ Config['OriginalLanguage'].') AND '.75 'AND (`T3`.`Language` = '.$this->System->Config['OriginalLanguage'].') AND '. 76 76 '(`T3`.`VersionStart` = `T4`.`VersionStart`) AND (`T3`.`VersionEnd` = `T4`.`VersionEnd`)'; 77 77 … … 81 81 function ExportToMangosSQL() 82 82 { 83 global $TranslationTree , $User, $Config;83 global $TranslationTree; 84 84 85 85 $this->LoadFilters(); … … 93 93 "-- Znaková sada: ".$this->Config['Database']['Charset']." / ".$this->Config['Web']['Charset']."\n". 94 94 "-- Diakritika: ".$this->AnoNe[$this->Export['WithDiacritic']]."\n". 95 "-- Vygeneroval uživatel: ".$ User->Name."\n".95 "-- Vygeneroval uživatel: ".$this->System->User->Name."\n". 96 96 "-- Vzato od uživatelů: ".$this->UserNames."\n". 97 97 "-- Generované tabulky: "; … … 149 149 function ExportToAoWoWSQL() 150 150 { 151 global $ Config, $TranslationTree, $AoWoWconf;151 global $TranslationTree, $AoWoWconf; 152 152 153 153 //require_once('../aowow/configs/config.php'); … … 175 175 $Ori_text = $Line['name']; 176 176 $DbResult2 = $Database2->query('SELECT `Text` AS `En`, 177 (SELECT `Text` FROM `'.$ Config['Database']['Database'].'`.`TextGlobalString` AS `TableTran`177 (SELECT `Text` FROM `'.$this->System->Config['Database']['Database'].'`.`TextGlobalString` AS `TableTran` 178 178 WHERE `TableEn`.`Entry` = `TableTran`.`Entry` AND (`Complete` = 1) AND '.$this->WhereLang.' AND '.$this->WhereUsers.$this->OrderByUserList.' LIMIT 1) AS `Tran` 179 FROM `'.$ Config['Database']['Database'].'`.`TextGlobalString` AS `TableEn` WHERE179 FROM `'.$this->System->Config['Database']['Database'].'`.`TextGlobalString` AS `TableEn` WHERE 180 180 `Text` = "'.addslashes($Ori_text).'" LIMIT 1'); 181 181 $Tran = $DbResult2->fetch_assoc(); … … 205 205 function ExportToXML() 206 206 { 207 global $TranslationTree , $User;207 global $TranslationTree; 208 208 209 209 $this->LoadFilters(); … … 215 215 " <time>".date('r')."</time>\n". 216 216 " <diacritics mode=".'"'.$this->Export['WithDiacritic'].'"'." />\n". 217 " <author>".$ User->Name."</author>\n".217 " <author>".$this->System->User->Name."</author>\n". 218 218 " <contributors>\n"; 219 219 foreach(explode(',', $this->UserNames) as $UserName) … … 258 258 function ExportToDBC() 259 259 { 260 global $TranslationTree , $Config;260 global $TranslationTree; 261 261 262 262 $this->LoadFilters(); -
trunk/Modules/Translation/Form.php
r578 r582 224 224 $this->Database->query('DELETE FROM `'.$Table.'` WHERE `ID` = '.$TextID.' AND `Language` <> '.$this->System->Config['OriginalLanguage']); 225 225 $Output = ShowMessage('Překlad byl smazán.'); 226 $this->System->ModuleManager->Modules['Log']->WriteLog('Překlad byl smazán! <a href=" form.php?group='.$GroupID.'&ID='.$TextID.'">'.$TextID.'</a>', LOG_TYPE_MODERATOR);226 $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); 227 227 } else $Output = ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL); 228 228 return($Output); -
trunk/Modules/Translation/Save.php
r579 r582 100 100 $this->Database->query('UPDATE `'.$Table.'` SET '.$Values.' WHERE `ID` = '.$ExistedText['ID']); 101 101 102 $Output .= 'Změny v překladu <a href=" form.php?group='.$GroupId.'&ID='.$ExistedText['ID'].'">'.$ExistedText['ID'].'</a> ('.$ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.<br />';103 $this->System->ModuleManager->Modules['Log']->WriteLog('Změny v překladu <a href=" form.php?group='.$GroupId.'&ID='.$ExistedText['ID'].'">'.$ExistedText['ID'].'</a> ('.$ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.', LOG_TYPE_TRANSLATION);102 $Output .= 'Změny v překladu <a href="'.$this->System->Link('/form.php?group='.$GroupId.'&ID='.$ExistedText['ID']).'">'.$ExistedText['ID'].'</a> ('.$ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.<br />'; 103 $this->System->ModuleManager->Modules['Log']->WriteLog('Změny v překladu <a href="'.$this->System->Link('/form.php?group='.$GroupId.'&ID='.$ExistedText['ID']).'">'.$ExistedText['ID'].'</a> ('.$ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.', LOG_TYPE_TRANSLATION); 104 104 } else 105 105 { … … 148 148 $LastID = $this->Database->insert_id; 149 149 150 $Output .= 'Text <a href=" form.php?group='.$GroupId.'&ID='.$LastID.'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='.$GroupId.'&user=0&action=filter">'.$TranslationTree[$GroupId]['Name'].'</a> uložen jako '.$CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.<br/>';151 $this->System->ModuleManager->Modules['Log']->WriteLog('Text <a href=" form.php?group='.$GroupId.'&ID='.$LastID.'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='.$GroupId.'&user=0&text=&entry=&action=filter">'.$TranslationTree[$GroupId]['Name'].'</a> uložen jako '.$CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.', LOG_TYPE_TRANSLATION);150 $Output .= 'Text <a href="'.$this->System->Link('/form.php?group='.$GroupId.'&ID='.$LastID).'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='.$GroupId.'&user=0&action=filter">'.$TranslationTree[$GroupId]['Name'].'</a> uložen jako '.$CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.<br/>'; 151 $this->System->ModuleManager->Modules['Log']->WriteLog('Text <a href="'.$this->System->Link('/form.php?group='.$GroupId.'&ID='.$LastID).'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='.$GroupId.'&user=0&text=&entry=&action=filter">'.$TranslationTree[$GroupId]['Name'].'</a> uložen jako '.$CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>.', LOG_TYPE_TRANSLATION); 152 152 } 153 153 } -
trunk/includes/Version.php
r581 r582 1 1 <?php 2 2 3 $Revision = 58 1; // Subversion revision3 $Revision = 582; // Subversion revision 4 4 $DatabaseRevision = 574; // Database structure revision 5 5 $ReleaseTime = '2013-09-12';
Note:
See TracChangeset
for help on using the changeset viewer.