MOBILE-3153 lang: Remove placeholders from strings
This is necessary because we started using strings with placeholders that the app doesn't interpret, in particular the ones in user tours: 7ff6b2daef/admin%2Ftool%2Fusertours%2Flang%2Fen%2Ftool_usertours.php (L274)
main
parent
b69e2ac8b7
commit
2103ad0c66
|
@ -257,6 +257,7 @@ function build_lang($lang, $keys) {
|
|||
$text = str_replace('$a->', '$a.', $text);
|
||||
$text = str_replace('{$a', '{{$a', $text);
|
||||
$text = str_replace('}', '}}', $text);
|
||||
$text = preg_replace('/@@.+?@@(<br>)?\\s*/', '', $text);
|
||||
// Prevent double.
|
||||
$text = str_replace(array('{{{', '}}}'), array('{{', '}}'), $text);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue