Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6586

Re: Possible to 'backwards' restore from Moodle 2.7 to 1.9?

$
0
0
by Dan Marsden.  

few different options - one would be putting them in an array like this:


$strings = array();
$strings['colour'] = 'color';
$strings['centre'] = 'center';

foreach ($strings as $string1 => $string2) {
     $text = str_replace($string1, $string2, $text);
}

Or you could be "clever" and read the lang/en_us/moodle.php file to load in all your US strings and the lang/en/moodle.php to load in the "proper" strings and then replace all of them.

Of course - because all your text is being parsed by filters this may affect the performance of your server so it's probably worth doing some testing to see how well it performs.


Viewing all articles
Browse latest Browse all 6586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>