Mosets Tree 2.0.x + Joom! Fish. Synchronization languages

This article will try to describe in detail how you can synchronize your language site for Mosets Tree and 2.0.x Joom! Fish. And so, at this time we have Mosets Tree 2.0.4 and Joom! Fish 1.8.2. It works on my Joomla 1.0.12 (but proposed option should work not only on this version of Joomla, Mosets Tree main thing that was 2 versions).

In order to synchronize the languages ??it is sufficient to make some changes to the file init.phpWhich can be found by clicking the folder / Components / com_mtree /.

Open this file and find the line 12-13:

 
if(!isset($ Database)) { global $ Database; }
if(!isset($ MosConfig_absolute_path)) { global mosConfig_absolute_path; }

After him, we write:

globals $ MosConfig_lang;

Below (17-18 bar), we find:

 
 require_once( $ MosConfig_absolute_path . '/ Components / com_mtree / language /' . $ Mtconf->get('Language') . '. Php');

That is the line we need to change, so we replace it $ Mtconf-> get (‘language’) on $ MosConfig_lang.

The idea is to use Mosets current language of the site and so we substitute a variable language component of the global variables language site.

Comments are closed.