public function isMultilang()
	{
		// Flag to avoid doing multiple database queries.
		static $tested = false;

		// Status of language filter plugin.
		static $enabled = false;

		// If being called from the front-end, we can avoid the database query.
		if (\App::isSite())
		{
			return \App::get('language.filter');
		}

		// If already tested, don't test again.
		if (!$tested)
		{
			// Determine status of language filter plug-in.
			$db = \App::get('db');
			$query = $db->getQuery()
				->select('enabled')
				->from('#__extensions')
				->whereEquals('type', 'plugin')
				->whereEquals('folder', 'system')
				->whereEquals('element', 'languagefilter');
			$db->setQuery($query->toString());

			$enabled = $db->loadResult();
			$tested  = true;
		}

		return $enabled;
	}
public function isMultilang()
	{
		// Flag to avoid doing multiple database queries.
		static $tested = false;

		// Status of language filter plugin.
		static $enabled = false;

		// If being called from the front-end, we can avoid the database query.
		if (\App::isSite())
		{
			return \App::get('language.filter');
		}

		// If already tested, don't test again.
		if (!$tested)
		{
			// Determine status of language filter plug-in.
			$db = \App::get('db');
			$query = $db->getQuery()
				->select('enabled')
				->from('#__extensions')
				->whereEquals('type', 'plugin')
				->whereEquals('folder', 'system')
				->whereEquals('element', 'languagefilter');
			$db->setQuery($query->toString());

			$enabled = $db->loadResult();
			$tested  = true;
		}

		return $enabled;
	}
public function isMultilang ( ) { // Flag to avoid doing multiple database queries. static $ tested = false ; // Status of language filter plugin. static $ enabled = false ; // If being called from the front-end, we can avoid the database query. if ( \ App :: isSite ( ) ) { return \ App :: get ( 'language.filter' ) ; } // If already tested, don't test again. if ( ! $ tested ) { // Determine status of language filter plug-in. $ db = \ App :: get ( 'db' ) ; $ query = $ db -> getQuery ( ) -> select ( 'enabled' ) -> from ( '#__extensions' ) -> whereEquals ( 'type' , 'plugin' ) -> whereEquals ( 'folder' , 'system' ) -> whereEquals ( 'element' , 'languagefilter' ) ; $ db -> setQuery ( $ query -> toString ( ) ) ; $ enabled = $ db -> loadResult ( ) ; $ tested = true ; } return $ enabled ; }
Method to determine if the language filter plugin is enabled.
This works for both site and administrator.

@return  boolean  True if site is supporting multiple languages; false otherwise.
Method to determine if the language filter plugin is enabled . This works for both site and administrator .