Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Overriding languagefilter plugin to support multidomain site
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Qson  
View profile  
 More options Aug 30 2012, 8:31 am
From: Qson <and...@qson.se>
Date: Thu, 30 Aug 2012 05:31:27 -0700 (PDT)
Local: Thurs, Aug 30 2012 8:31 am
Subject: Overriding languagefilter plugin to support multidomain site

Hi!
My customer wants a multi language site (single Joomla installation) with
one domain (tld) per language.
Example:
www.abc.se - Swedish
www.abc.no - Norwegian
www.abc.de - German

They do not want the language code appended to the url path but select
language using the TLD. One solution that works  is www.abc.se/se/ and
www.abc.no/no/, this with the default languagefilter plugin since it
appends the language code, and then using htaccess to redirect
www.abc.no/de to www.abc.de/de/ to avoid duplicate content.

Now I figured I could write a new plugin to replicate the behaviour of
plg_system_languagefilter but it seems not to be working. I tried a plugin
which extended plgSystemLanguageFilter but this did not work either.
It seems like Joomla's application core is tied strictly to the
languagefilter plugin (plg_system_languagefilter). The languagefilter
plugin redirects if the language code is missing in the url, and since my
goal is to get rid just that it seems like a catch 22.

Any ideas?

Modifying the plg_system_languagefilter is one way to go, but that would
break updating and I don't feel comfortable hacking the core.

Thanks!
// Qson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JM Simonet  
View profile  
 More options Aug 30 2012, 10:53 am
From: JM Simonet <infograf...@gmail.com>
Date: Thu, 30 Aug 2012 16:53:28 +0200
Local: Thurs, Aug 30 2012 10:53 am
Subject: Re: [jgen] Overriding languagefilter plugin to support multidomain site

In fact, what would be great is to introduce in the plugin a
parameter per existing Content Language that redirects to mysite.no/
mysite.com/, etc.. without any lang code and htaccess
I guess it is too late for 2.5.x, but any patch is welcome for 3.x

JM

--
>Please keep the Subject wording in your answers

This e-mail and any attachments may be confidential. You must not
disclose or use the information contained in this e-mail if you are
not the
intended recipient. If you have received this e-mail in error, please
notify us immediately and delete the e-mail and all copies.
-----------------------------------------------------------
Jean-Marie Simonet  /  infograf768
Joomla Production Working group
Joomla! Translation Coordination Team

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ove  
View profile  
 More options Aug 30 2012, 11:12 am
From: Ove <tobby.eriks...@gmail.com>
Date: Thu, 30 Aug 2012 17:11:53 +0200
Local: Thurs, Aug 30 2012 11:11 am
Subject: Re: [jgen] Overriding languagefilter plugin to support multidomain site
Hi,
interesting.

You have another problem as you mention EU countries. The EU cookie
regulation.
On what version are you? 2.5 latest?
I made some tests to get rid of the language cookie a while ago and only
by hacking the platform core it was possible. I think all is now in the
plug-in but I'm not sure. i.e a fork of the languagefilter should work
(as long as you don't use the language switcher module) Since there is
now at least one woking solution available to block all cookies
(including the session cookie), this problem is solved. To my surprise
the language switcher worked without the language cookie. I suppose
because of the language code in the uri!

If a "mylanguagefilter" is not possible and your customer do not care
about this EU regulation it might work if you set this cookie with a
plug in before the languagefilter is loaded  I'm really not sure!

Ove

Qson skrev 30.08.2012 14:31:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ove  
View profile  
 More options Aug 30 2012, 12:04 pm
From: Ove <tobby.eriks...@gmail.com>
Date: Thu, 30 Aug 2012 18:03:36 +0200
Local: Thurs, Aug 30 2012 12:03 pm
Subject: Re: [jgen] Overriding languagefilter plugin to support multidomain site
I just found that without an activated languagefilter it will not work.
Now to be found in the Cms class JLanguageMultilang. i.e. a fork with
another name is not possible.

The idea from JM is nice!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »