Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.10
Component:
page displays
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2008 at 23:57 UTC
Updated:
13 Jul 2011 at 10:47 UTC
Hi there,
I have views with AJAXed mini pager. I also use i18n (Internationalization) module.
All work fine except using non-default language (when links become prefixed with it).
Then ajax_path also gets prefixed and looks like: "ajax_path": [ "/de/views/ajax", "/de/views/ajax", "/de/views/ajax" ] which leads to empty block when I click pager links.
When I remove the language prefix it works fine again, of course it works fine without AJAX.
I've changed 'ajax_path' => url('views/ajax') to
'ajax_path' => url('views/ajax', array('language' => array('prefix' => ''))) in views/theme/theme.inc, can it break anything?
Regards
Comments
Comment #1
serg.remote commentedUPD: Another problem I've run in is that if you click on Previous-Next links directly it doesn't consider your current language, however if you copy the link, paste it to browser URL and open manually it does.
Any idea where to dig it?
Comment #2
merlinofchaos commentedUnfortunately,I don't understand what i18n does to links to make all of this stuff happen, so I am going to need someone really familiar with that code to advise me as to why this stuff isn't working automatically.
Comment #3
serg.remote commentedSeem to be fixed with i18n-6.x-1.0-beta6
Comment #4
daniel wentsch commentedI guess I'm experiencing the exact same problem right now, although using the most recent version 6.x-1.2 of i18n.
Can somebody reproduce this?
First I thought the problem was this: http://drupal.org/node/659510#comment-2562832
But today I found out that AJAX paging without language path prefixes does work, with path prefixes it doesn't and views_args aren't set properly.
Comment #5
digidoo commentedI can confirm #4, having the same problem here since updating.
With language path prefix the ajax paging won't work (eg. glossary), without in default language everything is fine.
Comment #6
udig commentedsubscribe
Comment #7
serg.remote commentedCould you tell versions of i18n and Views modules you experience this issue with?
Comment #8
digidoo commentedYes, these are the versions:
Internationalization 6.x-1.2
Views 6.x-2.8
Comment #9
serg.remote commentedComment #10
edrauta commentedI can confirm the problem.
the versions of modules are:
views 6.x.2.10
I18n 6.x.14
Comment #11
eloivaqueSubscribe de problem.
The views glossary with ajax on, do work. But if install i18n and active "Path prefix only" or "Path prefix with language fallback" do not work.
I try change the path of ajax_path, but no work.
Comment #12
merlinofchaos commentedI'm afraid I can't support i18n module; if the error happens only with i18n enabled, then the issue needs to go there. If indeed it is a problem with Views, someone with familiarity with i18n can tell me what's wrong, which is precisely what the submission guidelines say to do.
Comment #13
fmjrey commentedI'm also having this issue on glossary.
This may be the related i18n bug:
http://drupal.org/node/721300
Comment #14
edrauta commentedI worked my way:
file -> views.module
file ->/js/base.js
I delete prefix of language negotiation in the path.
Comment #15
Marko B commented#14 didnt worked for me on.
Comment #16
manos_ws commentedThe patch in #14 works but it doesn't take in consideration the languages that doesn't have a prefix set.
Usually in a multilingual site we have the default language without prefix and the others with prefixes.
so the above code in #14 should be changed to
file -> views.module
And the
file ->/js/base.js
as in #14
Thanks.
Comment #17
corbacho commentedsubscribing
Comment #18
manos_ws commentedI found another problem with the above solution. It only works when the Language negotiation is set to "Path prefix with language fallback."
I wanted to use boost so I had to use "Path prefix only"
So the above code becomes:
file -> views.module
and the
file ->/js/base.js
Probably it should be fixed for Language negotiation set to "None" and "Domain name only"
Could someone with better knowledge than me in Language negotiation give a complete solution ?
Thanks