- Posts: 7
- 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
15 years 11 months ago - 15 years 8 months ago #48817
by hopewise
Multilingual LTR and RTL sites. Load different kunena.forum.css files for each language was created by hopewise
hello,
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
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
Last edit: 15 years 8 months ago by sozzled. Reason: Changed subject to improve search relevance
Please Log in or Create an account to join the conversation.
15 years 11 months ago #48822
by @quila
Replied by @quila on topic Re: kunena.forum.css ?
Hi,
how you think to load this diferent files?
With option in the configuration or..??
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.
15 years 11 months ago #48890
by hopewise
Replied by hopewise on topic Re: kunena.forum.css ?
i shall load the css depending on the selected language at JoomFish,
but, where to tell Kunena about the desired css file ??
but, where to tell Kunena about the desired css file ??
Please Log in or Create an account to join the conversation.
15 years 8 months ago - 15 years 8 months ago #56223
by OfekA
Replied by OfekA on topic Re: kunena.forum.css ?
Anything new with topic? I really need this feature.
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..!
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..!
Last edit: 15 years 8 months ago by OfekA.
Please Log in or Create an account to join the conversation.
15 years 8 months ago - 15 years 8 months ago #56229
by OfekA
Replied by OfekA on topic Re: kunena.forum.css ?
Maybe if I'll try something like this, will it work?
kunena.php lines 267-275 original:
I changed it to this:
kunena.php lines 267-275 original:
Code:
if ($fbConfig->joomlastyle < 1) {
if (file_exists(KUNENA_JTEMPLATEPATH.'/css/kunena.forum.css'))
{
$document->addStyleSheet(KUNENA_JTEMPLATEURL . '/css/kunena.forum.css');
}
else
{
$document->addStyleSheet(KUNENA_TMPLTCSSURL);
}
I changed it to this:
Code:
if ($fbConfig->joomlastyle < 1) {
if ($this->language=he-IL)
{
$document->addStyleSheet(KUNENA_JTEMPLATEURL . '/css/he-il.css');
}
else
{
$document->addStyleSheet(KUNENA_JTEMPLATEURL . '/css/en-gb.css');
}
Last edit: 15 years 8 months ago by OfekA.
Please Log in or Create an account to join the conversation.
15 years 8 months ago #56232
by Matias
Replied by Matias on topic Re: kunena.forum.css ?
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.
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.
The following user(s) said Thank You: OfekA
Please Log in or Create an account to join the conversation.
Time to create page: 0.260 seconds