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:
Petr Skoda 2010-04-14 10:02:05 +00:00
parent 1f96e907ea
commit 36f069fd6b

View file

@ -5721,6 +5721,12 @@ interface string_manager {
*/ */
public function get_list_of_countries(); 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 * Returns localised list of installed translations
* @param bool $returnall return all or just enabled * @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); 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 * Returns localised list of installed translations
* @param bool $returnall return all or just enabled * @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. * @return array two-letter country code => translated name.
*/ */
public function get_list_of_countries() { 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(); return array();
} }