Add supprot for Joomla 2.x

Add supprot for Joomla 2.x.
Fix bug in xml after which languages and assets was inaccessible.