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
Noel De Martin 2022-03-09 11:21:00 +01:00
parent b69e2ac8b7
commit 2103ad0c66
1 changed files with 1 additions and 0 deletions

View File

@ -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 {