- Posts: 7
- Thank you received: 0
Kunena 6.3.8 Released
The Kunena team has announce the arrival of Kunena 6.3.8 [K 6.3.8] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.
Question Multilingual LTR and RTL sites. Load different kunena.forum.css files for each language
it will be great if the admin can determine a different css file per language,
for ex:
kunena.forum_en.css for englsih
kunena.forum_ar.css for arabic
instead of hard coding the css file name to always be kunena.forum.css
this will be a great feature for languages that are right to left, and will increase Kunena penetration into more communities.
how can i do that trick ?
thanks,
hopewise
Please Log in or Create an account to join the conversation.
how you think to load this diferent files?
With option in the configuration or..??
Please Log in or Create an account to join the conversation.
but, where to tell Kunena about the desired css file ??
Please Log in or Create an account to join the conversation.
If someone can try and guide me which files i need to edit I'd be so greatful!
I have a multilingual website with English and Hebrew, and I can't seem to find any solution for the css.
Thanks in advance..!
Please Log in or Create an account to join the conversation.
kunena.php lines 267-275 original:
I changed it to this:
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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.