OK so - you can do that also by vBET file:
1. Open vbenterprisetranslator_seo.php
2. Find:
Code:
$vbet_custom_char_replacement = array(
'"' => '',
'[langtitle=' => '',
'[/langtitle]' => '',
']' => '-'
);
3. Add there pairs similarly to vBSEO
You will have to add it again after each update, since your changes will be overwritten. So keeping it in vBSEO custom replacements seems to be better idea.
About your 2nd proposition. Such condition would look like this:
Code:
if ($_REQUEST['language'])
{
Keep Non-English Characters in URLS for other languages
} else {
Replace Non-English Characters in URLs?
}
We didn't test such solution so we advice to do this on some test instance not on real forum and check how it behaves. I do not believe it will work - I suppose that from config it taken simply value and attached to variable, so variable would treat this just as string value. I suppose - not tested. So such change should be tone in other place in place where variable takes value you could do:
Code:
$theVariable = $_REQUEST['language'] ? value for Keep Non-English : value for Replace Non-English
If variable is global (and if it is variable not constant) then you can overwrite it in /includes/vbenterprisetranslator_functions_seo.php file. There are 2 places where you have code like this:
Code:
if ($language) {
$text = vbet_filter_replace_text($text, VBSEO_SPACER, VBSEO_APPEND_CHAR);
} else {
$text = vbseo_filter_text($text, $allowcharsl, $filter_stop_words, $reversablee, $keep_tailspaces);
}
So you can change global variable value in else statement, before text is evaluated.