language rtl switch problem

Use this forum for all general talks about how to manage and run multilingual websites.

language rtl switch problem

Postby jazzbird on Sun Dec 02, 2007 10:17 am

hello,

I am trying to build an English/Hebrew site using joomfish for the Hebrew translaton. To switch between rtl and ltr templates I have set up a dummy template index.php file with the following code:

<?php
global $mosConfig_lang;
if ($mosConfig_lang=="hebrew") include_once ("index_he.php");
else include_once ("index_en.php");
?>

This works fine in some cases but not in others. Could someone have a look at this problem:

1) Go to the site http://www.israelcatholic.com
2) Click on the little Israel flag to change to Hebrew site. The site correctly switches to the rtl template.
3) Click on the second item from the right on the top menu (?? ?????). The page correctly opens at http://www.israelcatholic.com/content/v ... 4/lang,iw/ - still on the rtl template.
3) Click on the fourth item from the right on the top menu (???????). The page correctly opens at the component http://www.israelcatholic.com/component/option,com_weblinks/Itemid,23/lang,iw/ - still on the rtl template.
4) Now click on the first item on the right of the top menu (?? ????) to return to the home page. Now the site goes to http://www.israelcatholic.com/content/view/20/103/ - but using the ltr english template because /lang,iw/ has disappeared from the link.

In summary: anytime I go to a component page on the Hebrew site, the next page I go to omits the language specification in the url (/lang,iw) and the site switches back to the ltr template. I then have to reclick the Israel flag to return to the rtl template.

Anyone know why it does that?
Many thanks,
Last edited by jazzbird on Tue Dec 25, 2007 6:27 pm, edited 1 time in total.
jazzbird
Newbee
 
Posts: 40
Joined: Sun Dec 02, 2007 9:33 am

Re: language rtl switch problem

Postby jazzbird on Tue Dec 04, 2007 8:56 am

can anyone help with this one? Why is joomfish omitting the /lang,iw/ part of the url when on a component page?
jazzbird
Newbee
 
Posts: 40
Joined: Sun Dec 02, 2007 9:33 am

Re: language rtl switch problem

Postby jazzbird on Thu Dec 06, 2007 11:31 am

hello anyone? where are the joomfish experts and developers? I would be very grateful for some help.
jazzbird
Newbee
 
Posts: 40
Joined: Sun Dec 02, 2007 9:33 am

Re: language rtl switch problem

Postby ivo.apostolov on Fri Dec 07, 2007 1:47 pm

I am looking at it at the moment.

Could you please tell me how exactly you did this link? i.e. Link to Article, Link to Static Content, Link to URL?
User avatar
ivo.apostolov
Contributor
 
Posts: 3248
Joined: Sat Oct 20, 2007 10:39 am
Location: Sofia

Re: language rtl switch problem

Postby ivo.apostolov on Fri Dec 07, 2007 1:52 pm

Could you please try with:

<?php
global $mosConfig_lang;
if ($mosConfig_lang=="hebrew")
{
include_once ("index_he.php");
}
elseif {
include_once ("index_en.php");
}
?>
User avatar
ivo.apostolov
Contributor
 
Posts: 3248
Joined: Sat Oct 20, 2007 10:39 am
Location: Sofia

Re: language rtl switch problem

Postby jazzbird on Fri Dec 07, 2007 2:39 pm

hi ivo,
Thanks for your reply.

If I try the code you suggested, the whole site no longer opens. I get the msg:
Parse error: syntax error, unexpected '{', expecting '(' in /home/.../israelcatholic.com/templates/sample_blackblue_heb/index.php on line 7

Regarding your question, I'm not sure what you mean by 'this link.'
If you mean the menu link to the home page that no longer insert the joomfish /land,iw/ code, then it is a link to content item. But all other links (also to static items) do the same thing. The /lang,iw/ code disappears from all links after I go to a component page. Anytime I go to a component page, whatever page I go to next will not have a /lang,iw/ code and the site will return to the ltr english template. Frustrating!

Any other suggestions?
Thanks for your help!
jazzbird
Newbee
 
Posts: 40
Joined: Sun Dec 02, 2007 9:33 am

Re: language rtl switch problem

Postby ivo.apostolov on Fri Dec 07, 2007 2:47 pm

Will need to test that on my local machine
User avatar
ivo.apostolov
Contributor
 
Posts: 3248
Joined: Sat Oct 20, 2007 10:39 am
Location: Sofia

Re: language rtl switch problem

Postby Geraint on Fri Dec 07, 2007 4:09 pm

Sorry to be rude but can I jump in here.

Can you try the builtin solar flare template just to test if its the template that's causing the problem? You only need to change the template long enough to test the result.

Geraint
Joomfish club members can get priority forum support at the Support Forum. As well as access to a variety of custom Joomfish addons and benefits.

Join the Joomfish club today!
Geraint
Contributor
 
Posts: 2920
Joined: Sat Oct 20, 2007 9:13 am

Re: language rtl switch problem

Postby jazzbird on Sun Dec 09, 2007 3:44 pm

thanks for your replies ivo and geraint.
I have tried another template and though I can't fully see the results (I would have to set up another rtl template), I can see that the same thing happens: whenever I select a component from the menu (e.g. contact us, or links page), the url for the following page will be missing the /lang,iw/ and so the site will switch back to the undesired ltr template.
Any solution?
jazzbird
Newbee
 
Posts: 40
Joined: Sun Dec 02, 2007 9:33 am

Re: language rtl switch problem

Postby jazzbird on Sat Dec 15, 2007 6:25 pm

any suggestion anyone? has no one run into this problem before?
jazzbird
Newbee
 
Posts: 40
Joined: Sun Dec 02, 2007 9:33 am

Next

Return to General discussions

Who is online

Users browsing this forum: No registered users and 1 guest