Changeset 743 for trunk/Modules/Translation
- Timestamp:
- Jan 9, 2014, 2:44:51 PM (11 years ago)
- Location:
- trunk/Modules/Translation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Form.php
r736 r743 49 49 foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem) 50 50 $Columns .= ' `Orig`.`'.$TextItem['Column'].'` as `Orig_'.$TextItem['Column'].'`, `Tran`.`'.$TextItem['Column'].'` as `'.$TextItem['Column'].'`,'; 51 52 53 //search for same text with other entry 54 foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem) 55 if($TextItem['Visible'] == 1) 56 if (($LineAJ[$TextItem['Column']] <> '') and 57 ($LineAJ[$TextItem['Column']] == $Line[$TextItem['Column']]) and 58 (strlen($LineAJ[$TextItem['Column']]) < 20) 59 ) 60 { 61 $sql = 'SELECT '.$Columns.' Tran.`Entry` FROM `'.$Table.'` as Tran'; 62 $join = ' JOIN `'.$Table.'` as `Orig` ON `Orig`.`Language` = 0 AND `Tran`.`Entry` = `Orig`.`Entry` AND `Tran`.`VersionEnd` = `Orig`.`VersionEnd` '; 63 $where = ' WHERE '.'( `Tran`.'.$Language.' ) AND '.' `Orig`.`'.$TextItem['Column'].'` = "'.$LineAJ[$TextItem['Column']].'" ORDER BY `Tran`.`ModifyTime` DESC LIMIT 1'; 64 $DbResult = $this->Database->query($sql.$join.$where); 65 while ($LineSearch = $DbResult->fetch_assoc()) { 66 $Line[$TextItem['Column']] = $LineSearch[$TextItem['Column']]; 67 } 68 } 51 69 52 70 $sql = 'SELECT '.$Columns.' Tran.`Entry` FROM `'.$Table.'` as Tran'; … … 68 86 } 69 87 88 70 89 } else { 71 90 $DbResult = $this->Database->query('SELECT * FROM `'.$Table.'` WHERE '. -
trunk/Modules/Translation/LoadNames.php
r739 r743 58 58 59 59 60 //todo:haveto load61 60 $Text = ''; 62 61 function LoadNames() { … … 78 77 } else { 79 78 if(($GroupId == 13)) { 80 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text', 'TextGlobalString' => 'Text', 'TextArea' => 'Name', 'Text CharacterClass' => 'Name','TextCharacterRace' => 'Name1',),false);79 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text', 'TextGlobalString' => 'Text', 'TextArea' => 'Name', 'TextItemSublass' => 'Name', 'TextCharacterRace' => 'Name1',),false); 81 80 } else { 82 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text'));81 $names = GetTranslatNames($Text, 0, GetTranslatNamesArray()); 83 82 } 84 83 } -
trunk/Modules/Translation/Progress.php
r636 r743 112 112 $Output .= $this->ShowStatTable(); 113 113 114 $Output .= '<div>Počet stáhnutí přeložených textů v SQL souboru: <strong>';115 $ID = $this->Database->query('SELECT count(distinct(`IP`)) FROM `Log` WHERE `Type` = 2');116 $Line = $ID->fetch_row();117 $Output .= $Line[0];118 $Output .= '</strong></div>';119 120 $Output .= '<div>Počet stáhnutí: <strong>';121 $ID = $this->Database->query('SELECT count(distinct(`IP`)) FROM `Log` WHERE `Type` = 0');122 $Line = $ID->fetch_row();123 $Output .= $Line[0];124 $Output .= '</strong></div>';125 114 return($Output); 126 115 }
Note:
See TracChangeset
for help on using the changeset viewer.