• Resolved juliewaterhouse

    (@juliewaterhouse)


    I’m using NextGen 2.0.66.37 and WPML 3.1.8.4.

    I have created an album that contains a few galleries. Each gallery is attached to a page. I want a different page title and URL for each language (eng & fr), so I have translated each gallery page. Both the original and the translation contain the same gallery (same shortcode), but have different page titles and URLs. I’ve also created a French translation for the album page. Using the WPML switcher to switch between English and French on the pages is fine. The problem is at the album level.

    How do I get the French version of the album page to list the French versions of the galleries? Right now, it lists the English.

    Here’s the code that gets inserted on the alum page: <img class="ngg_displayed_gallery mceItem" src="https://photoart.org/nextgen-attach_to_post/preview/id--2119" alt="" />

    If I need to do it by creating a separate album, how do I get it to link to the French pages (since there’s only one instance of the actual gallery)?

    Link to the English album: https://photoart.org/individual-backgrounds/

    Thanks for any pointers!

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter juliewaterhouse

    (@juliewaterhouse)

    Okay, I did figure out that I can use WPML string translation to translate the gallery name. That means that the album page looks okay, with a list of galleries with French names However, when I click on the gallery, it’s still a link to the English gallery page/URL. Is there any way to correct that?

    Plugin Contributor photocrati

    (@photocrati)

    @juliewaterhouse – I see what you are referring to but we are not able to reproduce similar effects within our test servers … you may need to look at using our current public beta version (or wait until the stable release of it next week).

    Here is a link if you want to look at it now: https://nextgen-gallery.com/nextgen-gallery-latest-beta/

    Thanks!

    – Cais.

    Thread Starter juliewaterhouse

    (@juliewaterhouse)

    Thanks for the reply, Cais. Does this mean that it should actually work the way I want, and that there’s just something causing a problem with my particular configuration (rather than it being an actual limitation of the plugin)?

    I see that album-compact.php has this code to generate the link to each gallery:
    <a class="Link" href="<?php echo nextgen_esc_url($gallery->pagelink) ?>">
    Should that actually substitute the link to the French gallery when the album is rendered under the French site?

    Thanks,

    ~Julie

    Plugin Contributor photocrati

    (@photocrati)

    @juliewaterhouse – Are you specifically setting that NextGEN Legacy template for a reason?

    – Cais.

    Thread Starter juliewaterhouse

    (@juliewaterhouse)

    Yes, I wanted to use the alt text for the image caption instead of the title. I also want to add in a link back to the album from the gallery (haven’t made that change yet).

    Plugin Contributor photocrati

    (@photocrati)

    @juliewaterhouse – Hmm, well therein lies the problem. Our WPML compatibility is based in the default (read: blank) templates of NextGEN Gallery.

    The NextGEN Legacy templates (the one you are working from) was not specifically coded to be compatible with WPML. The legacy templates were included as a backwards compatibility measure more than anything else.

    – Cais.

    Thread Starter juliewaterhouse

    (@juliewaterhouse)

    Okay, understood.

    Is there any other way to customise the galleries that would fit with the NextGen model of the future? I’d rather not be using anything considered “legacy.” Am I then restricted to the out of the box gallery templates?

    Thanks for taking the time to explain all this. Much appreciated.

    Plugin Contributor photocrati

    (@photocrati)

    @juliewaterhouse – We recognize some may see the current options as “restrictive” and are looking at various ways to “open” up our current templates so they can be more easily customized. Unfortunately this may be a few releases away as we work through everything that is involved with “creating” NextGEN Gallery (read: current version) templates.

    Thanks!

    – Cais.

    PS: Feel free to share your thoughts and ideas on current custom templates as a Feature Request here: https://nextgen-gallery.com/feature-voting/

    Thread Starter juliewaterhouse

    (@juliewaterhouse)

    Thanks, Cais! I understand where you guys are coming from. We always want to push the boundaries on what we can get. If you give us X, we want X+1. Human nature ??

    Plugin Contributor photocrati

    (@photocrati)

    @juliewaterhouse – Thanks for your understanding! It really is truly appreciated.

    – Cais.

    Thread Starter juliewaterhouse

    (@juliewaterhouse)

    Sorry, I’m back…

    I just tried switching my gallery template to “blank”/none/default. This didn’t fix the issue.

    The problem is still at the album level. When I go to the French album page:
    https://photoart.org/fr/toiles-individuels/

    the galleries of the album are listed there. The names are French because I used WMPL to translate those strings. However, the embedded gallery is still English. i.e., the link goes to the English page.

    This is happening as a result of the link that is generated by (I assume?) compact.php.

    I have deleted the original album, and recreated it, after changing the thumbnail gallery to use the default (blank) template.

    Should this be working? Do I need to recreate the galleries as well? I would have through that just changing the display template from custom to blank should be enough.

    Thanks,

    ~Julie

    Plugin Contributor photocrati

    (@photocrati)

    @juliewaterhouse – I’m going to have to get one of our developers to review this as to the best of my knowledge what you are describing should be working correctly.

    – Cais.

    Thread Starter juliewaterhouse

    (@juliewaterhouse)

    Thank you!

    Plugin Contributor photocrati

    (@photocrati)

    @juliewaterhouse – Please update to the current version of NextGEN Gallery, our developer believes that should correct this issue.

    Thanks!

    – Cais.

    Thread Starter juliewaterhouse

    (@juliewaterhouse)

    I’m now at version 2.0.7.1.

    I attempted to delete and recreate the album. FYI, when I try to add it to my page to test, I get a blank popup window when I click the green “Attach NextGEN Gallery to Post” button. I tried with Safari, Chrome and Firefox browsers. This seems to be a new and unrelated problem.

    Instead, I used the shortcode [album id=”3″] to add the album to the page (both English and French pages), and still have the same problem. The galleries within the French are linked to the English versions.

    Is there a different way I should be adding the album to the French version of the page? Right now, I am just using the identical shortcode.

    Thanks,

    ~Julie

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘NextGen and WPML’ is closed to new replies.