Changeset 664 for trunk/Modules/Export/Export.php
- Timestamp:
- Dec 23, 2013, 10:52:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Export.php
r663 r664 232 232 //Export only if translate have same varible % 233 233 234 if (strpos($String1,$StartChar)) { 235 while (strpos($String1,$StartChar)) { 236 $String1 = substr($String1,strpos($String1,$StartChar)); 234 if (strpos($String1,$StartChar) !== false) { 235 236 while ( strpos($String1,$StartChar) !== false) { 237 $pos = strpos($String1,$StartChar); 238 $String1 = substr($String1,$pos+1); 237 239 $varible = $String1; 238 240 if (strpos($varible,' ')) $varible = substr($varible,0,strpos($varible,' ')); … … 241 243 if (strpos($varible,'%')) $varible = substr($varible,0,strpos($varible,'%')); 242 244 if (strpos($varible,chr(10))) $varible = substr($varible,0,strpos($varible,chr(10))); 245 // echo $pos.'-'.$varible.'-'.$String1.'-' .$String2.' 246 // '; 243 247 244 if (false == strpos($String2,$varible)) {248 if (false === strpos($String2,$varible)) { 245 249 // echo $varible; 246 250 return(false); … … 382 386 $CanExport = true; 383 387 foreach($TranslationTree[$Group['Id']]['Items'] as $Column) { 384 $DbRow[$Column['Column']] = str_replace ( '$ ','$',$DbRow[$Column['Column']]); 388 // if (strpos($DbRow[$Column['Column']],'\\')) 389 // $CanExport = false; 390 // $DbRow[$Column['Column']] = str_replace ( '$ ','$',$DbRow[$Column['Column']]); 385 391 // echo $DbRow[$Column['Column']].' - '.$DbRow['En'.$Column['Column']].' 386 392 //'; 387 393 if (!$this->HaveVarible($DbRow['En'.$Column['Column']],$DbRow[$Column['Column']])) { 388 $CanExport = false;389 $ Output .= ', NE='.$DbRow['ID'];394 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 395 $CanExport = false; 390 396 } 391 397 if (!$this->HaveVarible($DbRow[$Column['Column']],$DbRow['En'.$Column['Column']])) { 392 $CanExport = false;393 $ Output .= ', NE='.$DbRow['ID'];398 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 399 $CanExport = false; 394 400 } 395 401 if (!$this->HaveVarible($DbRow['En'.$Column['Column']],$DbRow[$Column['Column']],'%')) { 396 $CanExport = false;397 $ Output .= ', NE='.$DbRow['ID'];402 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 403 $CanExport = false; 398 404 } 399 405 if (!$this->HaveVarible($DbRow[$Column['Column']],$DbRow['En'.$Column['Column']],'%')) { 400 $CanExport = false;401 $ Output .= ', NE='.$DbRow['ID'];406 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 407 $CanExport = false; 402 408 } 403 409 if (!$this->HaveVarible($DbRow[$Column['Column']],$DbRow['En'.$Column['Column']],'\\')) { 404 $CanExport = false;405 $ Output .= ', NE='.$DbRow['ID'];406 } 407 if (!$this->HaveVarible($DbRow[ $Column['Column']],$DbRow['En'.$Column['Column']],'\\')) {408 $CanExport = false;409 $ Output .= ', NE='.$DbRow['ID'];410 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 411 $CanExport = false; 412 } 413 if (!$this->HaveVarible($DbRow['En'.$Column['Column']],$DbRow[$Column['Column']],'\\')) { 414 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 415 $CanExport = false; 410 416 } 417 if (!$this->HaveVarible($DbRow[$Column['Column']],$DbRow['En'.$Column['Column']],'|')) { 418 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 419 $CanExport = false; 420 } 421 if (!$this->HaveVarible($DbRow['En'.$Column['Column']],$DbRow[$Column['Column']],'|')) { 422 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 423 $CanExport = false; 424 } 425 if (!$this->HaveVarible($DbRow[$Column['Column']],$DbRow['En'.$Column['Column']],chr(10))) { 426 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 427 $CanExport = false; 428 } 429 if (!$this->HaveVarible($DbRow['En'.$Column['Column']],$DbRow[$Column['Column']],chr(10))) { 430 if ($CanExport) $Output .= ', NE='.$DbRow['ID']; 431 $CanExport = false; 432 } 411 433 } 412 434 413 414 435 if ($CanExport) 415 436 $LookupTable[$DbRow['ShortCut']] = $DbRow;
Note:
See TracChangeset
for help on using the changeset viewer.