protected function getLanguagePath() { if (is_dir($langPath = $this->basePath() . '/resources/lang')) { return $langPath; } else { return __DIR__ . '/../resources/lang'; } }