Skip to content

Commit

Permalink
Skipped taggLess feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostico committed Sep 5, 2018
1 parent 8f30d41 commit 55e4f0f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/Features/Microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,28 @@ public function afterTMAnalysisCloseProject( $project_id , $_analyzed_report) {
$this->requestProjectQuote( $project_id, $_analyzed_report );
}

/**
* Decide whether remove initial tags or not
*
* @param $boolean
* @param $segment
*
* @return bool
*/
public function skipTagLessFeature( $boolean, $segment ) {
/**
* Ugly tag recognition, it's the easy way to decide whether a tag is a normal tag or a paypal xml <ph> tag
*
* Filters do not use <ph> tags, so it comes directly from a not converted xliff.
* In the PayPal feature ALL the Xliff are NOT converted
*
*/
if( preg_match('|^<ph [^>]+>|', $segment ) ){
return true;
}
return false;
}

/**
* @param $iceLockArray array
*
Expand Down

0 comments on commit 55e4f0f

Please sign in to comment.