- Posts: 7245
- Thank you received: 566
Kunena 6.1.0 Released
The Kunena team has announce the arrival of Kunena 6.1.0 [K 6.1.0] which is now available for download as a native Joomla extension for J! 4.3.x & J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0
Question Multilingual LTR and RTL sites. Load different kunena.forum.css files for each language
Yes, $this->language does not exist in Kunena 1.5 context.
I believe that you need to detect language because of RTL? This is how you do it.
Please Log in or Create an account to join the conversation.
Matias, I can't describe in words how much I thank you!Matias wrote: I didn't check the code, I just corrected the bugs in it.
Yes, $this->language does not exist in Kunena 1.5 context.
I believe that you need to detect language because of RTL? This is how you do it.
Code:$lang = JFactory::getLanguage(); if ($lang->isRTL()) { $document->addStyleSheet(KUNENA_DIRECTURL . '/template/default_ex/rtl.css'); } else { $document->addStyleSheet(KUNENA_DIRECTURL . '/template/default_ex/ltr.css'); }
Works perfectly!
Now hours of css tweaking

Please Log in or Create an account to join the conversation.
If someone provides us css file for RTL (preferably containing only changes to default css) I would be glad to add buildin support for RTL languages.
Please Log in or Create an account to join the conversation.
Matias, if I understood the code above will change the css depending on selected language (joomla), right? But, if I want to use the same css for both, but I just want to call a different forum structure (forum/posts/threads) for each language?
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.
- ahmedfouad
-
- Offline
- New Member
- Posts: 3
- Thank you received: 0

Please Log in or Create an account to join the conversation.
RTL = right to left
LTR and RTL = the direction you read the word in
Please Log in or Create an account to join the conversation.
- ahmedfouad
-
- Offline
- New Member
- Posts: 3
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Cerberus wrote: LTR = left to right
RTL = right to left
LTR and RTL = the direction you read the word in
Ah, it's better now. :0) Thanks Cerberus for the explanation.
Have a nice Sunday.
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.
JoomFish supports translating Kunena configuration. Luckily, one of these configurations is template name. I simply uploaded a localized template and named it "default-ar" went back to JoomFish, and translated the template name to my localized template. and Voila, it works like a charm.
Please Log in or Create an account to join the conversation.
is this code good for 1.6? and where to put this code in order to call the RTL in case of switching between RTL and LTR??
please advice,
Avi
Please Log in or Create an account to join the conversation.