MOBILE-3213 scripts: Detect wrong 2.4 version on langs
parent
07b32226bd
commit
4727194f54
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue