0

This is hard to explain, but still I will try my best to do so.

I want to set up a multilingual Joomla website, with 2 languages. For each language I want to have checkboxes in the menu.

Let's say, that I have an article in English, and when I press the check box, it should show the article in the second language in the same page. In other words, toggling the check box should load the content of the 2 languages, in the same page (without reloading).

Is it possible to achieve this?

Are there any extensions for it in Joomla or any in other CMS which can do this?

  • something like this when you press translation: quran.com/1 – Peter Sep 14 '15 at 21:20
  • why is it people change the grammar errors but not helping with the problem? ? – Peter Sep 16 '15 at 15:53
  • Try using Google Translate module for joomla, I hope it helps you. – Nehal Sep 17 '15 at 10:19
1

I am not aware of any extension to suggest that would do this. You would need to AJAX-ify the whole website/process.

Not sure why you would need to do this and what would be the advantages.

There could be some workarounds though, and here is a brief description of possible implementation. But keep in mind, that it might not be applicable or the right solution, as this depends on many things.

For example, you could create a small content plugin. Then in the same article you could write the content for the 2 languages, each one inside certain tags for being recognizable by your plugin, e.g.

{english}english text here...{/english}

{italian}italianos text here...{/italian}

You could instruct the plugin to wrap each language's content with a div that will have a special id.

Then you would also need to inject your checkboxes in each article page, and with some javascript you would be toggling the display of each language's div.

Furthermore, you could use a javascript cookie, to save user's selection for other articles.

Well, here are the downsides of the above suggestion: You actually don't have a fully multilingual website, as : - Metadata of the page will still be in one of the 2 languages. - Both languages content will be in the same page. - Modules and anything else system wise will still be under the main language. - Not the best for SEO. - Maybe not that easy to manage content for 2 different languages. - and maybe more....

But the above solution could work in a scenario, where you simply want to present the same content to users in both languages with a button click, you don't care about SEO and any of the other downsides. e.g. maybe you are creating a page where you want teach italians and want registered users to easily see text from english to italian and vice versa.

Ok... the above approach was a quick idea I had considering your question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.