• Resolved Simone Rescio

    (@srescio)


    as per subject, with polylang, having translated images with caption, on the default language the caption are displayed within the lightbox, while on english they’re not despite having them available when hovering the gallery images, links:
    def: https://sresc.io/tLE
    eng: https://sresc.io/tLG
    any clue what I’m missing?

    happens only with wordpress galleries, not with grouped attached images

    • This topic was modified 7 years, 8 months ago by Simone Rescio.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, please add your vote for the multilingual plugin you would like to see supported in SLB at this existing topic: Add-on: Multilingual Support.

    Thanks.

    Thread Starter Simone Rescio

    (@srescio)

    Hi,
    I’ve debugged the issue further, the bug happens on standard wordpress gallery (4.8.2) with twenty-fourteen theme using wp standard gallery (no fancy plugins, the default one),

    in the fallback branch in lib.view.js#L3069 it looks for the alt tag of the image which the gallery items do not have if not set explicitly (the description is not copied into it),

    also this assumes that the description/caption will coincide which may not be the case,

    in my case I have the description set for images but not the alt, this still doesn’t sort why it should be able to fetch it in default lang and not in other if HTML is identical for both languages,
    after some time I was still unable to figure out how the ._attributes object is populated,

    still by looking first for an on page rendered description I got the captions to be displayed in the other language, made a PR for it:
    https://github.com/archetyped/simple-lightbox/pull/622

    • This reply was modified 7 years, 5 months ago by Simone Rescio.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘caption not shown in lightbox for multilanguage site (polylang)’ is closed to new replies.