Re: URL function with i18n localization

Karen Stevenson <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CAAjM37GhCPrD72f5n4OcDr3ObE0s1F67v_LY5v7xa__v42EZYw@mail.gmail.com>
If you're having a problem with a specific module, the obvious place to
start is on that module's issue queue. A quick search of that issue queue
turned up this: http://drupal.org/node/1354464. You can try that patch and
respond on that issue about whether it worked.

This list is already abused. I personally disagree that only core issues
should be discussed here, but it definitely should not be a place to post
questions that could be answered by looking at the issue queues of the
modules in question. There are 14,000 modules on Drupal.org. If this list
becomes a substitute issue queue for all 14,000 modules, it will become so
noisy that everyone that might be able to help solve more difficult
problems will quickly quit using it.

I am trying to say this kindly, assuming you didn't know any better, but
please use the issue queues :)

Karen

On Tue, Mar 13, 2012 at 6:51 AM, Mukesh Agarwal
<[email protected]>wrote:

> Hi Guys,
>
> I'm using rate module for voting. When an anonymous user clicks on the
> voting widget, the user is redirected to a url "user/login-to-rate". I'm
> also using i18n for localization. The issue with both of these together is
> that when I'm on a page with the URL "en/my-url" and I click on the voting
> widget, I'm redirected to "de/user/login-to-rate" where "de" is my default
> language. Ideally the user should be going to "en/user/login-to-rate" i.e.
> user selected language should be respected.
>
> Going into details, I find that the rate module calls url function:
>
> print url('user/login-to-rate', array('query' => $query, 'absolute' =>
> TRUE));
> and here there is no language paramater that is passed which means the
> default site language gets selected.
>
> Am I missing something here in the configuration? Has anyone faced a
> similar problem and can help?
>
> --
> Cheers,
> Mukesh Agarwal
> ________________________________
> Innoraft Solutions <http://www.innoraft.com>  || +91 8017220799
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.