function qtrans_join($texts) { // qtranxf_join_c doesn't handle non-array values to // maintain compatibility with qtrans_join we must handle it here if (is_array($texts) === false) { $texts = qtranxf_split($texts, false); } return qtranxf_join_c($texts); }
function qtranxf_convert_to_c($text) { $blocks = qtranxf_get_language_blocks($text); if (count($blocks) > 1) { foreach ($blocks as $key => $b) { if (empty($b)) { unset($blocks[$key]); } } } if (count($blocks) > 1) { $texts = qtranxf_split_blocks($blocks); $text = qtranxf_join_c($texts); } return $text; }