BUG 7646 Solved the problem escaping the character "'"

This commit is contained in:
Victor Saisa Lopez
2012-03-06 15:39:05 -04:00
committed by Julio Cesar Laura
parent 60a8af93cb
commit a4929e08ec

View File

@@ -2211,6 +2211,9 @@ $output = $outputHeader.$output;
}
if ( isset ( $translation[$msgID] ) ){
$arraySearch = array("'");
$arrayReplace = array("\\'");
$translationString = preg_replace("[\n|\r|\n\r]", ' ', $translation[$msgID]);
if( isset($data) && is_array($data) ) {
@@ -2219,6 +2222,8 @@ $output = $outputHeader.$output;
}
}
$translationString = str_replace($arraySearch, $arrayReplace, $translationString);
return $translationString;
} else {
if( defined("UNTRANSLATED_MARK") ) {