MOBILE-3213 scripts: Detect wrong 2.4 version on langs

main
Pau Ferrer Ocaña 2019-12-12 13:19:47 +01:00
parent 07b32226bd
commit 4727194f54
1 changed files with 4 additions and 0 deletions

View File

@ -232,6 +232,10 @@ function build_lang($lang, $keys) {
// Prevent double.
$text = str_replace(array('{{{', '}}}'), array('{{', '}}'), $text);
} else {
// @TODO: Remove that line when core.cannotconnect and core.login.invalidmoodleversion are completelly changed to use $a
if (($key == 'core.cannotconnect' || $key == 'core.login.invalidmoodleversion') && strpos($text, '2.4') != false) {
$text = str_replace('2.4', '{{$a}}', $text);
}
$local++;
}