Changeset 628 for trunk/Modules/Translation
- Timestamp:
- Dec 6, 2013, 7:07:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Form.php
r615 r628 6 6 $tran_replace = str_replace(' ',' ',$tran); 7 7 $orig_replace = str_replace(' ',' ',$orig); 8 $Text = str_replace(' '.$orig,' <span Title="Přelož jako: '.$tran_replace.'" class="edit"><a class="edit" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Group.'&ID='.$ID).'">'.$orig_replace.'</a></span>',$Text); 8 9 if (strlen($orig) < strlen($Text)-1) 10 $Text = str_replace(' '.$orig,' <span Title="Přelož jako: '.$tran_replace.'" class="edit"><a class="edit" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Group.'&ID='.$ID).'">'.$orig_replace.'</a></span>',$Text); 9 11 return ($Text); 10 12 } 11 13 function ReplaceNotTranslated($orig,$tran,$Text,$ID,$Group) { 12 14 $orig_replace = str_replace(' ',' ',$orig); 13 $Text = str_replace($orig,' <span title="Kliknutím přeložíš" class="needtran"><a class="needtran" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Group.'&ID='.$ID).'">'.$orig_replace.'</a></span>',$Text); 15 16 // echo $orig.'-'.$Text.'<br>'; 17 if (strlen($orig) < strlen($Text)-1) 18 $Text = str_replace($orig,' <span title="Kliknutím přeložíš" class="needtran"><a class="needtran" target="_NEW2" href="'.$this->System->Link('/form.php?group='.$Group.'&ID='.$ID).'">'.$orig_replace.'</a></span>',$Text); 14 19 return ($Text); 15 20 } … … 194 199 $Text = $Text.' '.$LineAJ[$TextItem['Column']]; 195 200 196 if(($GroupId < 4) or ($GroupId == 10) or ($GroupId == 11)) {201 // if(($GroupId < 4) or ($GroupId == 10) or ($GroupId == 11)) { 197 202 //<span class="edit">barvou.</span> 198 203 $names = GetTranslatNames($Text, 0, GetTranslatNamesArray()); 199 } else {200 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text'));201 }204 // } else { 205 // $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text')); 206 // } 202 207 203 208 foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem)
Note:
See TracChangeset
for help on using the changeset viewer.