Changeset 834 for trunk/Modules/Translation/Save.php
- Timestamp:
- Aug 24, 2015, 11:33:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Save.php
r833 r834 70 70 else $NewComplete = 0; 71 71 72 // Update completion status for saved translation item72 // Update completion status for edited translation item 73 73 if($SourceText['ID'] == $ExistedText['ID']) 74 74 { … … 100 100 { 101 101 // Insert new user translation 102 $TakeID = $EnglishFound['ID']; 102 103 $Columns = '`Entry`, `VersionStart`, `VersionEnd`, `Language`, `User`, `Take`, `ModifyTime`'; 103 104 $Values = $EnglishFound['Entry'].', '.$EnglishFound['VersionStart'].', '. 104 $EnglishFound['VersionEnd'].', '.$Language.', '.$this->System->User->Id.', '.$ EnglishFound['ID'].', NOW()';105 $EnglishFound['VersionEnd'].', '.$Language.', '.$this->System->User->Id.', '.$TakeID.', NOW()'; 105 106 106 107 $CompleteParts = 0; … … 128 129 } 129 130 if($Completable) $NewComplete = 1; // All parts of text are completed. Make entire text as completed 130 else $NewComplete = 0; 131 else $NewComplete = 0; 132 // Update completion status for edited translation item 131 133 if($SourceText['ID'] == $EnglishFound['ID']) 132 134 { 135 $TakeID = $TextID; 133 136 $NewComplete = $Complete; // Our original user text, set complete according user choice 134 137 if($Complete == 1) … … 146 149 $Group['Id'].'&ID='.$LastID).'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='. 147 150 $Group['Id'].'&user=0&action=filter">'.$Group['Name'].'</a> uložen jako '. 148 $CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$Group['Id'].'&ID='.$T extID.'">'.$TextID.'</a>.<br/>';151 $CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$Group['Id'].'&ID='.$TakeID.'">'.$TakeID.'</a>.<br/>'; 149 152 $this->System->ModuleManager->Modules['Log']->WriteLog('Text <a href="'. 150 153 $this->System->Link('/form.php?group='.$Group['Id'].'&ID='.$LastID).'">'. … … 152 155 $Group['Id'].'&user=0&text=&entry=&action=filter">'. 153 156 $Group['Name'].'</a> uložen jako '.$CompleteText[$NewComplete]. 154 '. Převzat z <a href="form.php?group='.$Group['Id'].'&ID='.$T extID.'">'.$TextID.'</a>.', LOG_TYPE_TRANSLATION);157 '. Převzat z <a href="form.php?group='.$Group['Id'].'&ID='.$TakeID.'">'.$TakeID.'</a>.', LOG_TYPE_TRANSLATION); 155 158 } 156 159 }
Note:
See TracChangeset
for help on using the changeset viewer.