mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-22084 new API - making a clear distinction between list of our translations and list of all languages defined in ISO 639-3
This commit is contained in:
parent
1f96e907ea
commit
36f069fd6b
1 changed files with 25 additions and 0 deletions
|
@ -5721,6 +5721,12 @@ interface string_manager {
|
|||
*/
|
||||
public function get_list_of_countries();
|
||||
|
||||
/**
|
||||
* Returns a localised list of languages defined by ISO 639-3
|
||||
* @return array three-letter language code => translated name.
|
||||
*/
|
||||
public function get_list_of_languages();
|
||||
|
||||
/**
|
||||
* Returns localised list of installed translations
|
||||
* @param bool $returnall return all or just enabled
|
||||
|
@ -5995,6 +6001,15 @@ class core_string_manager implements string_manager {
|
|||
return $this->load_component_strings('countries', $lang);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a localised list of languages defined by ISO 639-3
|
||||
* @return array three-letter language code => translated name.
|
||||
*/
|
||||
public function get_list_of_languages() {
|
||||
//TODO: import ISO 639-3 lang codes to en lang pack and return it here
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns localised list of installed translations
|
||||
* @param bool $returnall return all or just enabled
|
||||
|
@ -6186,6 +6201,16 @@ class install_string_manager implements string_manager {
|
|||
* @return array two-letter country code => translated name.
|
||||
*/
|
||||
public function get_list_of_countries() {
|
||||
//not used in installer
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a localised list of languages defined by ISO 639-3
|
||||
* @return array three-letter language code => translated name.
|
||||
*/
|
||||
public function get_list_of_languages() {
|
||||
//not used in installer
|
||||
return array();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue