- Сообщений: 2
- Спасибо получено: 0
Multi-language
- Не в сети
- New Member
COM_KUNENA_USER_PROFILE_BUTTON_LABEL_SHOW_LESS
Больше
6 года 3 мес. назад #8417
от
создал тему: Multi-language
To whom it may concern:
I uploaded JLSitemap extension for my joomla 4alpha12 based site, it is fixed for English and Russian Language.
So easily you may extend this remarkable extension to any language as for my site French language .
In models/sitemap.php line:No 470 I added
$lang = Factory::getLanguage();
$l = $lang->getTag();
if(pregmatch('/fr-FR/'), $l)
$defaultLanguage =ComponentHelper::getParams('com_language')->get('site', 'fr-FR');
else
if(pregmatch('/en-GB/'), $l)
$defaultLanguage =ComponentHelper::getParams('com_language')->get('site', 'en-GB');
else
...
//any language your developers would like to add or all in a switch case.
Then in layout so easily based on the language tag or code you may print only links belong to related active language
I used a layout override so that in the next update of your extension changes remain .
Thanks again and good luck
K W Nowrouzian
Senior Manager
kwproductions121.com
I uploaded JLSitemap extension for my joomla 4alpha12 based site, it is fixed for English and Russian Language.
So easily you may extend this remarkable extension to any language as for my site French language .
In models/sitemap.php line:No 470 I added
$lang = Factory::getLanguage();
$l = $lang->getTag();
if(pregmatch('/fr-FR/'), $l)
$defaultLanguage =ComponentHelper::getParams('com_language')->get('site', 'fr-FR');
else
if(pregmatch('/en-GB/'), $l)
$defaultLanguage =ComponentHelper::getParams('com_language')->get('site', 'en-GB');
else
...
//any language your developers would like to add or all in a switch case.
Then in layout so easily based on the language tag or code you may print only links belong to related active language
I used a layout override so that in the next update of your extension changes remain .
Thanks again and good luck
K W Nowrouzian
Senior Manager
kwproductions121.com
Пожалуйста Войти , чтобы присоединиться к беседе.
- Не в сети
- Администратор
COM_KUNENA_USER_PROFILE_BUTTON_LABEL_SHOW_LESS
Больше
- Сообщений: 2227
- Спасибо получено: 188
6 года 3 мес. назад #8421
от
ответил в теме Multi-language
Hello. Joomla 4 is still in beta. It will be possible to judge exactly the performance of the functions of the components for it and the system itself, only after the RC release. Prior to the release of the stable version, you can not use joomla 4 to create sites.
Пожалуйста Войти , чтобы присоединиться к беседе.
- Не в сети
- New Member
COM_KUNENA_USER_PROFILE_BUTTON_LABEL_SHOW_LESS
Больше
- Сообщений: 2
- Спасибо получено: 0
6 года 3 мес. назад - 6 года 3 мес. назад #8426
от
ответил в теме Multi-language
I did not judge, quite the contrary I admire your extension that is why I used it in most sites of mine. The reason I am employing Joomla 4 alpha is the fact that in JED I observed many extensions have been fixed for this version of Joomla. Yet you are completely right, Joomla 4 both alpha and beta are in process of being developed, Next to my site in J4 I have already developed in J3 the same site, just wanted to have more experience. By the way, would you like to exchange link with my site?
Kian W Nowrouzian
S. Manager
kwproductions121.com
Kian W Nowrouzian
S. Manager
kwproductions121.com
Последнее редактирование: 6 года 3 мес. назад пользователем .
Пожалуйста Войти , чтобы присоединиться к беседе.
Время создания страницы: 0.243 секунд