Phrases and Block to NOT translate
-
I had the problem to NOT translate certain things like the company name or special phrases I’ve put into double brackets. Though I found a workaround in parser.php I’d be glad to have a portable solution in future releases if possible.
Here’s my workaround:
In the parser.php I’ve added the following excclusions:
` // Unicode – 2 Chars for the <<
elseif ($string[$pos] == ‘«’) {
$this->tag_phrase($string, $start, $pos-1);
while ($string[$pos] != ‘»’ && $pos < strlen($string))
$pos++;
$pos++;
$start = $pos;
}
elseif ($string[$pos] == ‘C’ && ($pos+10) < strlen($string) && substr($string, $pos, 11) == ‘Companyname’) {
$this->tag_phrase($string, $start, $pos);
$pos+=11;
$start = $pos;
}`http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/
- The topic ‘Phrases and Block to NOT translate’ is closed to new replies.