Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is probably not the correct project to file this bug against but maybe someone in this thread knows where this should be placed.
When creating a view with a pager the next link can be translated through translate interface and has the location
views:view-name:display-name:pager:tags:next
.
But in views_object::unpack_options()
this becomes views:view-name:display-name:pager:next
. So the tags part is lost somewhere. Anyone knows how this is possible and how to fix this?
Comment | File | Size | Author |
---|---|---|---|
#3 | views-2112281.patch | 599 bytes | Jax |
Comments
Comment #1
Jax CreditAttribution: Jax commentedIt seems this is a views issue:
This
overwrites the correct localization_keys which were built when unpacking the options.
So when first entering unpack_options the $options are
And then at each iteration the $translation_keys are overwritten.
Shouldn't it be:
Comment #2
Jax CreditAttribution: Jax commentedStill present in dev.
Comment #3
Jax CreditAttribution: Jax commentedThis solves my problem and doesn't seem to have other side effects.
Comment #4
dnlt CreditAttribution: dnlt commentedPatch from #3 worked fine for me, too.
Comment #5
vegardjo CreditAttribution: vegardjo commentedPatch tested with success (views 3.6)
Comment #6
Peacog CreditAttribution: Peacog commentedPatch works for me too. Thanks.
Comment #7
schifazl CreditAttribution: schifazl commentedGreat work, thanks! Works for me too!
Comment #8
dawehnerIt would be really more soothing if this would be backed with a test.
I wonder whether the actual fix would be to set $this->localization_keys on plugins as well?
Comment #9
Jax CreditAttribution: Jax commentedI'm not sure what you mean by that. !empty($this->is_plugin) means it's a plugin...
Comment #10
Yazzbe CreditAttribution: Yazzbe commented#3 worked for me too. after clearing the cache. D7.26 + Views 3.7
Comment #11
pslcbs CreditAttribution: pslcbs commented#3 works fine here!!. Also Drupal 7.26 & Views 3.7
Thank you so much!!
Comment #12
graker CreditAttribution: graker commented#3 works for me as well
Comment #13
Fernly CreditAttribution: Fernly commentedViews 7.x-3.7, #3 works fine.
Comment #14
dongtian CreditAttribution: dongtian commentedThanks a lot for patch #3, it works great for Views 7.x-3.7.
Comment #15
Rhodungeon CreditAttribution: Rhodungeon commentedPatch #3 worked for me too, but I'm experiencing some problems regarding the header and footer content. Can anyone replicate this problem? You only need to edit a header and after that you should see a page with some code (ajax?).
Thanks everybody!
Comment #16
Rhodungeon CreditAttribution: Rhodungeon commentedAn update, it's not a problem related to the patch itself...
Comment #17
sinasalek CreditAttribution: sinasalek commentedViews 7.x-3.x-dev, #3 works fine.
Comment #18
dawehnerThank you!
Comment #20
dawehnerCommitted and pushed to 7.x-3.x