Commit 22911eac authored by Sean Madsen's avatar Sean Madsen

Fix typo in function name

parent 10f4e30a
......@@ -144,7 +144,7 @@ class Language {
* @return string
*/
public function englishName() {
return LocaleTools::getLaguageNameInLocale($this->code, 'en');
return LocaleTools::getLanguageNameInLocale($this->code, 'en');
}
/**
......@@ -153,7 +153,7 @@ class Language {
* @return string
*/
public function nativeName() {
return LocaleTools::getLaguageNameInLocale($this->code, $this->code);
return LocaleTools::getLanguageNameInLocale($this->code, $this->code);
}
public function descriptiveName() {
......
......@@ -22,7 +22,7 @@ class LocaleTools {
*
* @return string
*/
public static function getLaguageNameInLocale($languageCode, $localeCode) {
public static function getLanguageNameInLocale($languageCode, $localeCode) {
$localeFile = self::LOCALES_DIR . "/$localeCode.json";
$locales = json_decode(file_get_contents($localeFile), TRUE);
return $locales['Names'][$languageCode];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment