Back to LanguageHelper class

Method getLanguagePath

public static string
getLanguagePath
(mixed $basePath = JPATH_BASE, mixed $language = null)
Get the path to a language
Parameters
  • string $basePath The basepath to use.
  • string $language The language tag.
Returns
  • string language related path or null.
Since
  • 3.7.0

Method getLanguagePath - Source code

/**
 * Get the path to a language
 *
 * @param   string  $basePath  The basepath to use.
 * @param   string  $language  The language tag.
 *
 * @return  string  language related path or null.
 *
 * @since   3.7.0
 */
public static function getLanguagePath($basePath = JPATH_BASE, $language = null)
{
    return $basePath . '/language' . (!empty($language) ? '/' . $language : '');
}