Changeset 848 for trunk/Modules/Translation
- Timestamp:
- Jan 17, 2016, 12:10:35 PM (9 years ago)
- Location:
- trunk/Modules/Translation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Form.php
r847 r848 65 65 { 66 66 $Line[$TextItem['Column']] = $LineSearch[$TextItem['Column']]; 67 // echo $Line[$TextItem['Column']].'<br />';68 67 } 69 68 } … … 96 95 $DbResult = $this->Database->query('SELECT `Language`,`VersionStart`,`VersionEnd` FROM `'.$Table.'` WHERE `ID` = '.$Line['Take']); 97 96 $Language = $DbResult->fetch_assoc(); 98 // echo $Language['Language'].' '.$Line['Take'];99 97 100 98 $DbResult = $this->Database->query('SELECT `Name` FROM `Language` WHERE `Id` ='.$Language['Language']); … … 224 222 if(($TextItem['Name'] == 'Text') and (($Table == 'global_strings') or ($Table == 'glue_strings'))) 225 223 $Output .= '<tr><th>'.$LineAJ['ShortCut'].'</th>'; 226 else $Output .= '<tr><th>'. $TextItem['Name'].'</th>';224 else $Output .= '<tr><th>'.T($TextItem['Name']).'</th>'; 227 225 $Output .= '<td id="'.$TextItem['Column'].'">'.str_replace("\n", '<br/>', htmlspecialchars($LineAJ[$TextItem['Column']])).'</td> 228 226 <td>'; -
trunk/Modules/Translation/Save.php
r835 r848 7 7 $Output = ''; 8 8 $Table = $Group['TablePrefix']; 9 $CompleteText = array( 'nedokončený', 'dokončený');9 $CompleteText = array(T('unfinished'), T('finished')); 10 10 11 11 // Get source text record from database by ID … … 93 93 $this->Database->query('UPDATE `'.$Table.'` SET '.$Values.' WHERE `ID` = '.$ExistedText['ID']); 94 94 95 $Output .= 'Změny v překladu <a href="'.$this->System->Link('/form.php?group='. 95 $Output .= sprintf(T('Modifications in translation %s stored as %s'), 96 '<a href="'.$this->System->Link('/form.php?group='. 96 97 $Group['Id'].'&ID='.$ExistedText['ID']).'">'.$ExistedText['ID'].'</a> ('. 97 $ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.<br />'; 98 $this->System->ModuleManager->Modules['Log']->WriteLog('Změny v překladu <a href="'. 99 $this->System->Link('/form.php?group='.$Group['Id'].'&ID='.$ExistedText['ID']).'">'. 100 $ExistedText['ID'].'</a> ('.$ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.', LOG_TYPE_TRANSLATION); 98 $ExistedText['Entry'].')', $CompleteText[$NewComplete]).'<br/>'; 99 $this->System->ModuleManager->Modules['Log']->WriteLog( 100 sprintf(T('Modifications in translation %s stored as %s'), 101 '<a href="'.$this->System->Link('/form.php?group='. 102 $Group['Id'].'&ID='.$ExistedText['ID']).'">'.$ExistedText['ID'].'</a> ('. 103 $ExistedText['Entry'].')', $CompleteText[$NewComplete]), 104 LOG_TYPE_TRANSLATION); 101 105 } 102 106 } else … … 149 153 $LastID = $this->Database->insert_id; 150 154 151 $Output .= 'Text <a href="'.$this->System->Link('/form.php?group='. 152 $Group['Id'].'&ID='.$LastID).'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='. 153 $Group['Id'].'&user=0&action=filter">'.$Group['Name'].'</a> uložen jako '. 154 $CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$Group['Id'].'&ID='.$TakeID.'">'.$TakeID.'</a>.<br/>'; 155 $this->System->ModuleManager->Modules['Log']->WriteLog('Text <a href="'. 156 $this->System->Link('/form.php?group='.$Group['Id'].'&ID='.$LastID).'">'. 157 $LastID.'</a> ze skupiny <a href="TranslationList.php?group='. 158 $Group['Id'].'&user=0&text=&entry=&action=filter">'. 159 $Group['Name'].'</a> uložen jako '.$CompleteText[$NewComplete]. 160 '. Převzat z <a href="form.php?group='.$Group['Id'].'&ID='.$TakeID.'">'.$TakeID.'</a>.', LOG_TYPE_TRANSLATION); 155 $Output .= sprintf(T('Text %s from group %s saved as %s. Handed over from %s.'), 156 '<a href="'.$this->System->Link('/form.php?group='. 157 $Group['Id'].'&ID='.$LastID).'">'.$LastID.'</a>', 158 '<a href="'.$this->System->Link('/TranslationList.php?group='. 159 $Group['Id'].'&user=0&action=filter').'">'.$Group['Name'].'</a>', 160 $CompleteText[$NewComplete], '<a href="'.$this->System->Link('/form.php?group='.$Group['Id'].'&ID='.$TakeID).'">'.$TakeID.'</a>'). 161 '<br/>'; 162 $this->System->ModuleManager->Modules['Log']->WriteLog(sprintf(T('Text %s from group %s saved as %s. Handed over from %s.'), 163 '<a href="'.$this->System->Link('/form.php?group='. 164 $Group['Id'].'&ID='.$LastID).'">'.$LastID.'</a>', 165 '<a href="'.$this->System->Link('/TranslationList.php?group='. 166 $Group['Id'].'&user=0&action=filter').'">'.$Group['Name'].'</a>', 167 $CompleteText[$NewComplete], '<a href="'.$this->System->Link('/form.php?group='.$Group['Id'].'&ID='.$TakeID).'">'.$TakeID.'</a>'), 168 LOG_TYPE_TRANSLATION); 161 169 } 162 170 } … … 214 222 $Output .= '<table>'. 215 223 '<tr>'. 216 '<td> Jméno: <input type="text" name="LoginUser" size="13" /></td>'.224 '<td>'.T('Name').': <input type="text" name="LoginUser" size="13" /></td>'. 217 225 '</tr><tr>'. 218 '<td> Heslo: <input type="password" name="LoginPass" size="13" /></td>'.226 '<td>'.T('Password').': <input type="password" name="LoginPass" size="13" /></td>'. 219 227 '</tr><tr>'. 220 '<th><input type="submit" value=" Přihlásit a uložit překlad" /></th>'.228 '<th><input type="submit" value="'.T('Login and save translation').'" /></th>'. 221 229 '</tr>'. 222 230 '</table>'; … … 229 237 { 230 238 // Address and redirecting 231 $Output = '<br /> Překládat: <a href="TranslationList.php?group='.$GroupId.'&state=1&user=0&entry=">Nepřeložené</a> ';239 $Output = '<br />'.T('Translate').': <a href="'.$this->System->Link('/TranslationList.php?group='.$GroupId.'&state=1&user=0&entry=').'">'.T('Not translated').'</a> '; 232 240 233 241 $prev = FollowingTran($TextID, $Table, $GroupId, True); … … 258 266 } 259 267 260 $Output .= 'Z této stránky můžete být automaticky přesměrování. Nastavit kam chcete být přesměrování si můžete v<a href="'.261 $this->System->Link('/ Options.php').'" title="Nastavení uživatele">Nastavení</a>';268 $Output .= sprintf(T('You can be redirected automatically from this page. You can set where you want to be transfered here: %s'), '<a href="'. 269 $this->System->Link('/options/').'" title="'.T('User settings').'">'.T('Options').'</a>'); 262 270 return($Output); 263 271 }
Note:
See TracChangeset
for help on using the changeset viewer.