Elxis CMS Forum

Support => General => Topic started by: pachinko on June 28, 2007, 10:20:47

Title: change in language selection forces recursion to home page
Post by: pachinko on June 28, 2007, 10:20:47
Hello and good morning (for everybody located in Europe)!

I just noticed this: whenever I change my selected language, I am directed to the front page and have to go all the way back to the page I looked at before. I know this makes sense, as most people have just one languagage of choice and they should start with the home page giving them all necessary information and orientation for the site, but isn't there a way to change that? 

Maybe someone like me who is familiar with the English language to some extent only, at some point just doesn't understand anymore :'( and wants to read things in his native language. Or if there is a page that displays the "contacts" page only in different languages: Whenever you click on your language, you will be redirected to the main page automatically and have to walk back to the contacts page you came from! Does anybody if or how that could be changed, i.e. how to make the language manager change languages "on the spot"?

Looking at joomfish.html.php for some clues at the moment, but in case this is already planned for the 2007 ed. or anybody knew how to "fix" it, I'd appreciate your help. :-*
Title: Re: change in language selection forces recursion to home page
Post by: eliasan on June 28, 2007, 10:56:50
Hi pachinko,

What you describe is the native way Elxis works.

Why is that?

Because, unlike other solutions, you have to translate to other languages only the parts of the site that you think that are valuable to visitors speaking that languages.

In other words, your language1 content can be totally different and unrelated to the contents of language2.

So, when you switch language, there is no guarantee that the content you were looking will be available in the new language. The safest way to treat this is to return visitors back to home page.

Also language1 content and language2 contents are bind to different Itemid values. So currently, there is no way to say that content items with, for example Itemids 125 and 267, actually are the same thing in different languages. Again, the safest way to treat this is to return visitors to home page.

This mechanism, has also a great advantage. You can change the look and feel of your site, even the modules used, based on the selected language, making your language1 site look very different from your language2 version.
Title: Re: change in language selection forces recursion to home page
Post by: pachinko on June 28, 2007, 11:50:50
Hi eliasan, and thanks again for "shooting straight back"! Although the Joomla forum I stayed with until recently had about 1800 users active all day, my answers have never been answered. It seems that you don't let people stay in the rain over here :D
I understand that there is no easy solution to my "problem" and maybe I just have to get used to another way to handle things. Obviously, there are more reasons for the way the language manager works...
Title: Re: change in language selection forces recursion to home page
Post by: datahell on June 28, 2007, 13:24:06
An addition to eliasan: Elxis language system is NOT a simple content translation as joomlafish does for example. In Elxis language is dom element of the site structure. Language influences everything. If the differences between languages are too many, then switching language is like visiting an other site! Do experiment with it and you will see that we are not talking about a simple translation. The only safe place to redirect you after switching language is the site's live url (not even component frontpage).


A tip to 3rd party developers: Elxis has included auto translation capabilities. You can make an application that with a simple click will translate your content in any language you wish just like the pdf icon-button. It requires less than 10 lines of code, Elxis has all the mechanism ready. We may add this feature (ajax powered) in Elxis 2007...
Title: Re: change in language selection forces recursion to home page
Post by: blitzkrieg on October 13, 2007, 15:36:45
Hi pachinko,

What you describe is the native way Elxis works.

Why is that?

Because, unlike other solutions, you have to translate to other languages only the parts of the site that you think that are valuable to visitors speaking that languages.

In other words, your language1 content can be totally different and unrelated to the contents of language2.

So, when you switch language, there is no guarantee that the content you were looking will be available in the new language. The safest way to treat this is to return visitors back to home page.

Also language1 content and language2 contents are bind to different Itemid values. So currently, there is no way to say that content items with, for example Itemids 125 and 267, actually are the same thing in different languages. Again, the safest way to treat this is to return visitors to home page.

This mechanism, has also a great advantage. You can change the look and feel of your site, even the modules used, based on the selected language, making your language1 site look very different from your language2 version.


But there is another problem.......when i click to article link to read it in for example in rusian language,it jumping to english language and writing

You are not authorized to view this resource.
This resource requires a higher access level than yours.


because i set the article in russian language only for russian users....

So my question is why its always jumping to English language,no matter what content i viewing or which link i clicked???
Thanks for help!
Title: Re: change in language selection forces recursion to home page
Post by: eliasan on October 13, 2007, 16:03:22
Hi,

Please make sure that:
The menu item is in Russian language (That is true. You are seeing it.)
Section, category and content item belongs is in Russian language or All.
Category is in Russian language or All.
Content Item is in Russian language or All.
Title: Re: change in language selection forces recursion to home page
Post by: blitzkrieg on October 13, 2007, 16:16:56
Hi,

Please make sure that:
The menu item is in Russian language (That is true. You are seeing it.)
Section, category and content item belongs is in Russian language or All.
Category is in Russian language or All.
Content Item is in Russian language or All.

The menu item is in Russian language (That is true. You are seeing it.) Russian language selected
Section, category and content item belongs is in Russian language or All. OK
Category is in Russian language or All.  OK
Content Item is in Russian language or All. OK


And its still jumping to english.......you can check it by yoyr self  http://www.avshalumov.ws
Title: Re: change in language selection forces recursion to home page
Post by: Ivan Trebješanin on October 13, 2007, 18:28:44
But, is your module "main menu" published to russian too?
Title: Re: change in language selection forces recursion to home page
Post by: blitzkrieg on October 13, 2007, 19:40:00
But, is your module "main menu" published to russian too?

I created a copy of "main menu" module and called it in russian language "Главное меню" ,set it only for russian language....the "main menu" module is set to english,why to publish "main menu" ("Главное меню") to russian, i dont want russian users to see menu options in english and english speaking users to see russian menu.

I even created new menu in russian language with menu manager and its own russian module,but its also didnt help......

Please help!!

Title: Re: change in language selection forces recursion to home page
Post by: Ivan Trebješanin on October 13, 2007, 20:00:12
I remember having almost the same "problem"... then I opened my site with different browser and the problem disapeared... Try, and tell me if the problem is present in all browsers.
Title: Re: change in language selection forces recursion to home page
Post by: blitzkrieg on October 13, 2007, 21:54:20
I remember having almost the same "problem"... then I opened my site with different browser and the problem disapeared... Try, and tell me if the problem is present in all browsers.

Maybe, but why in anower Elxis sites there is no such problem appear,here and in many other sites???????
Title: Re: change in language selection forces recursion to home page
Post by: Ivan Trebješanin on October 13, 2007, 22:22:30
Are you using FF?
Title: Re: change in language selection forces recursion to home page
Post by: blitzkrieg on October 13, 2007, 22:40:47
Are you using FF?

No i'm using MS IE 7....but,in FF it work OK,i checked. But why is anower sites work normally with MS IE 7...when my is not?? ??? ??? ???
Title: Re: change in language selection forces recursion to home page
Post by: Ivan Trebješanin on October 13, 2007, 23:07:40
Delete cache and cookies, and you'll be OK.
Title: Re: change in language selection forces recursion to home page
Post by: blitzkrieg on October 14, 2007, 21:09:10
Delete cache and cookies, and you'll be OK.

I did,but i'm still not OK...... :-[
Title: Re: change in language selection forces recursion to home page
Post by: georgep on October 28, 2007, 10:40:37
What you describe is the native way Elxis works.
[...]
Also language1 content and language2 contents are bind to different Itemid values. So currently, there is no way to say that content items with, for example Itemids 125 and 267, actually are the same thing in different languages. Again, the safest way to treat this is to return visitors to home page.
[...]
This mechanism, has also a great advantage.
Advantage... yes an no, IMHO. Yes, due to your argumets above. No, since that not seems realy usabilty OK - could be confusing and frustrating; and it realys is, in fact, believe me.

I would prefere a kind of compromise: let the editor (administrator) indicate and "internal link" between language1.itemX and language2.itemY. If no link indicated, the navigation sistem use your soltion above as default.
Title: Smart language switch
Post by: datahell on October 28, 2007, 21:49:31
Since my last post on this subject more than 4 months passed. So, here are the latest news: Elxis 2008 language module has a language switch which allows you (under certain circumstances) to change language and stay in the same page. So you just enable the switch in parameters and module does all the hard work automaticaly!