mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-26804 core_string_manager::get_list_of_translations() can use a cache again
This patch reimplements the internal cache that was used to store the list of available translations in Moodle 1.x. By default, the method get_list_of_translations() still uses the file moodledata/cache/languages to store the list of available translations. The location of that file can be redefined in config.php. The internal format of the cache file is JSON now (used to be a plain text list). The patch also fixes a usage of the global $CFG in translation_exists() methods where the internal property should be used instead.
This commit is contained in:
parent
92a387b467
commit
a9cbd19bff
7 changed files with 67 additions and 17 deletions
|
@ -61,7 +61,6 @@ $string['cannotdeletecourse'] = 'You do not have the permission to delete this c
|
|||
$string['cannotdeletecustomfield'] = 'Error deleting custom field data';
|
||||
$string['cannotdeletedir'] = 'Cannot delete ({$a})';
|
||||
$string['cannotdeletefile'] = 'Cannot delete this file';
|
||||
$string['cannotdeletelangcache'] = 'Language cache cannot be deleted, please fix permissions in dataroot/cache/languages!';
|
||||
$string['cannotdeleterole'] = 'It cannot be deleted, because {$a}';
|
||||
$string['cannotdeleterolewithid'] = 'Could not delete role with ID {$a}';
|
||||
$string['cannotdeletethisrole'] = 'You cannot delete this role because it is used by the system, or because it is the last role with administrator capabilities.';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue