Load additional locallang.xml

This method will load additional lanaguage files. Simple change the language filename and path.

	/**
	 * Load common frontend plugin lagnuage file.
	*/
	final public function pi_loadLL() {
	        parent::pi_loadLL();

		$basePath = t3lib_extMgm::extPath($this->extKey).'res/lang/extensions.xml';
		$tempLOCAL_LANG = t3lib_div::readLLfile($basePath, $this->LLkey);
		$this->LOCAL_LANG = array_merge_recursive($tempLOCAL_LANG, is_array($this->LOCAL_LANG) ? $this->LOCAL_LANG : array());
		if ($this->altLLkey) {
			$tempLOCAL_LANG = t3lib_div::readLLfile($basePath, $this->altLLkey);
			$this->LOCAL_LANG = array_merge_recursive($tempLOCAL_LANG, is_array($this->LOCAL_LANG) ? $this->LOCAL_LANG : array());
		}
	}
  • Digg
  • del.icio.us
  • Facebook
  • Technorati
  • Twitthis
  • FriendFeed

POST A COMMENT

  • You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>