Changeset 900 for trunk/Modules/Translation/Form.php
- Timestamp:
- Apr 10, 2024, 11:49:39 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Form.php
r893 r900 28 28 $Table = $TranslationTree[$GroupId]['TablePrefix']; 29 29 if (array_key_exists('action', $_GET)) $Action = $_GET['action']; 30 else $Action = '';30 else $Action = ''; 31 31 32 32 if (array_key_exists('ID', $_GET)) … … 50 50 foreach ($TranslationTree[$GroupId]['Items'] as $Index => $TextItem) 51 51 $Columns .= ' `Orig`.`'.$TextItem['Column'].'` as `Orig_'.$TextItem['Column'].'`, `Tran`.`'.$TextItem['Column'].'` as `'.$TextItem['Column'].'`,'; 52 53 52 54 53 $sql = 'SELECT '.$Columns.' Tran.`Entry` FROM `'.$Table.'` as Tran'; … … 175 174 176 175 if ($TranslationTree[$GroupId]['WowheadName'] != '') 177 $WowheadLink = '<a href="http ://www.wowhead.com/?'.$TranslationTree[$GroupId]['WowheadName'].176 $WowheadLink = '<a href="https://www.wowhead.com/?'.$TranslationTree[$GroupId]['WowheadName']. 178 177 '='.$LineAJ['Entry'].'">'.$LineAJ['Entry'].'</a>'; 179 178 else $WowheadLink = $LineAJ['Entry']; 180 179 181 $Output .= '<input type="hidden" name="entry" value="'.$LineAJ['Entry'].'" /> 182 <input type="hidden" name="user" value="'.$User->Id.'" />183 <input type="hidden" name="ID" value="'.$TextID.'" />184 <table class="BaseTable">185 <tr>186 <th>'.T('Text number').': '.$WowheadLink.'</th>187 <th>'.T('Not translated').'</th>188 <th>'.T('Translated').'</th>189 </tr>190 <tr>191 <th>'.T('Language').'</th>192 <td>'.T('Original').'</td>193 <td>';180 $Output .= '<input type="hidden" name="entry" value="'.$LineAJ['Entry'].'" />'. 181 '<input type="hidden" name="user" value="'.$User->Id.'" />'. 182 '<input type="hidden" name="ID" value="'.$TextID.'" />'. 183 '<table class="BaseTable">'. 184 '<tr>'. 185 '<th>'.T('Text number').': '.$WowheadLink.'</th>'. 186 '<th>'.T('Not translated').'</th>'. 187 '<th>'.T('Translated').'</th>'. 188 '</tr>'. 189 '<tr>'. 190 '<th>'.T('Language').'</th>'. 191 '<td>'.T('Original').'</td>'. 192 '<td>'; 194 193 if ($Line['Language'] <> 0) $Language = $Line['Language']; 195 194 else if ($User->Id != 0) … … 239 238 if ($User->Licence(LICENCE_USER)) 240 239 $Output .= '<textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="'.$TextItem['Column'].'" name="'.$TextItem['Column'].'">'; 241 $Output .= 240 $Output .= htmlspecialchars($Line[$TextItem['Column']]); 242 241 if ($User->Licence(LICENCE_USER)) $Output .= '</textarea></td></tr>'; 243 242 }
Note:
See TracChangeset
for help on using the changeset viewer.