Changeset 613 for trunk/Modules/Translation
- Timestamp:
- Nov 27, 2013, 10:48:31 AM (11 years ago)
- Location:
- trunk/Modules/Translation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Comparison.php
r579 r613 52 52 if((array_key_exists('ID1', $_GET)) and ($_GET['ID1'] <> -1)) //porovnání pouze 2 textů 53 53 { 54 $TextID1 = $_GET['ID1']; 54 $TextID1 = $_GET['ID1']; 55 55 $TextID2 = $_GET['ID2']; 56 $WhereID = ' AND ((`'.$Table.'`.`ID` = '.$TextID1.') OR (`'.$Table.'`.`ID` = '.$TextID2.') OR (`'.$Table.'`.`Language` = '.$this->System->Config['OriginalLanguage'].'))';56 $WhereID = ' AND ((`'.$Table.'`.`ID` = '.$TextID1.') OR (`'.$Table.'`.`ID` = '.$TextID2.'))'; 57 57 } else $WhereID = ''; 58 58 … … 92 92 foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem) 93 93 { 94 if($Line[0][$TextItem['Column']] <> '') 94 $writethis = false; 95 for($i = 0; $i < count($Line); $i++) 96 { 97 if($Line[$i][$TextItem['Column']] <> '') $writethis = true; 98 } 99 if($writethis) 95 100 { 96 101 $Output .= '<tr><th>'.$TextItem['Name'].'</th>'; … … 100 105 { 101 106 $Output .= '<td>'; 102 $Output .= str_replace("\n", '<br/>', $this->CompareString( $Line[$i][$TextItem['Column']],$Line[$i - 1][$TextItem['Column']]));107 $Output .= str_replace("\n", '<br/>', $this->CompareString(htmlspecialchars($Line[$i][$TextItem['Column']]),htmlspecialchars($Line[$i - 1][$TextItem['Column']]))); 103 108 $Output .= '</td>'; 104 } else $Output .= '<td>'. $Line[$i][$TextItem['Column']].'</td>';109 } else $Output .= '<td>'.htmlspecialchars($Line[$i][$TextItem['Column']]).'</td>'; 105 110 } 106 111 $Output .= '</tr>'; -
trunk/Modules/Translation/Form.php
r609 r613 101 101 102 102 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `'.$Table.'` WHERE '. 103 '(`Entry` = '.$Line['Entry'].') AND (`Language` <> '.$this->System->Config['OriginalLanguage'].') AND (`Complete` = 1)');103 '(`Entry` = '.$Line['Entry'].')'); 104 104 $Version = $DbResult->fetch_row(); 105 105 $Version = $Version[0];
Note:
See TracChangeset
for help on using the changeset viewer.