- Posts: 6
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Question Multilingual LTR and RTL sites. Load different kunena.forum.css files for each language
Thank you so much, the quote strings made the code work, and now it uses the "he-il.css" file, but for both languages.. it doesn't use the "en-gb.css" for english for some reason.Matias wrote: Kunena 1.6 supports this in the templates.
You just need to add above if's to the initialize.php in your template.
BTW: always quote strings in PHP: "he-IL" or 'he-IL'. Otherwise your error log will grow fast.
I tried looking for a initialize.php but there is no such file in my components\com_kunena folder.
Any suggestions?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Now it uses for both English and Hebrew the "en-gb.css" file. Any idea what's wrong?Matias wrote: Try this:
Code:if ($this->language=='he-IL')
Edit: I also know that it's the "en-gb.css" because i made a special tweak for it so i'll notice, so just to clarify, it's not loading the "kunena.forum.css".
Please Log in or Create an account to join the conversation.
With this code (I double checked) the kunena system loads the file "en-gb.css" on both Hebrew and English.
As far as I understand, this can only mean, that this line is somewhat corrupted:
Any suggestions?
Please Log in or Create an account to join the conversation.
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.