BUG 7646 Solved the problem escaping the character "'"
This commit is contained in:
committed by
Julio Cesar Laura
parent
60a8af93cb
commit
a4929e08ec
@@ -2211,6 +2211,9 @@ $output = $outputHeader.$output;
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( isset ( $translation[$msgID] ) ){
|
if ( isset ( $translation[$msgID] ) ){
|
||||||
|
$arraySearch = array("'");
|
||||||
|
$arrayReplace = array("\\'");
|
||||||
|
|
||||||
$translationString = preg_replace("[\n|\r|\n\r]", ' ', $translation[$msgID]);
|
$translationString = preg_replace("[\n|\r|\n\r]", ' ', $translation[$msgID]);
|
||||||
|
|
||||||
if( isset($data) && is_array($data) ) {
|
if( isset($data) && is_array($data) ) {
|
||||||
@@ -2219,6 +2222,8 @@ $output = $outputHeader.$output;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$translationString = str_replace($arraySearch, $arrayReplace, $translationString);
|
||||||
|
|
||||||
return $translationString;
|
return $translationString;
|
||||||
} else {
|
} else {
|
||||||
if( defined("UNTRANSLATED_MARK") ) {
|
if( defined("UNTRANSLATED_MARK") ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user