• Hi,

    I am trying to work with Next Gen on a website-project that will have 5-7 different languages once finished.

    Now I don’t care about the translations of the text within NextGen as I can do that all with the multi-language plugin WPML (https://wpml.org) I am using.

    What I am looking for is a solution to the following:
    With WPML you can make content available in any other language you want. It uses the ID (mostly) of the default language and groups all translations together with that particular content.
    That all works brilliantly and I guess that is why so many people are so enthusiastic about WPML ??

    Showing galleries on pages/posts in different languages doesn’t cause any problems. The trouble however starts when I want to show an album that contains a number of galleries. These galleries are linked to the page/post of the default language.

    Now of course there are some solutions to this, but they are far from easy to explain to a client. Ideally there would be some kind of hook that can make the links to the galleries go to the current language, no matter if that is the default language or any other.

    Anyone else has dealt with this before?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Senlin,

    I’m currently trying to integrates some NextGen Galleries on a multilingual site also translated with WPML. You seem to have no problems doing that, this is not my case :

    On the default language version of a page, when I insert the nggallery tag, everything works fine.

    https://www.domaine.com/wp-content/gallery/gal1/thumbs/thumbs_00.jpg

    But on the translated version of the page, WPML adds the language tag in the URL, and so NextGen is looking for a wrong directory for the gallery. For example :

    https://www.domaine.com/LANGUAGE_TAG/wp-content/gallery/gal1/thumbs/thumbs_00.jpg

    How do I get rid of the language tag in the URL of every images ?

    Thanks in advance if you can help me on this (and sorry, I don’t have any solutions for your problem).

    Thread Starter Pieter Bos

    (@senlin)

    Hi malletfils,

    The gallery tags I use to show a gallery on a translated page are the exact same as on a default language page: [nggallery id=n]

    I also don’t understand why that should be a problem as you are calling a gallery that you made in NextGen. That has nothing to do with translations, right?

    You are using the same WPML set-up as I do it seems, languages in different directories.

    For your information, this is what NextGen outputs on a language other than the default one:

    <div class="ngg-gallery-thumbnail" >
    <a href="https://domain.com/wp-content/gallery/galname/imgfile.jpg" title=""  >
    <img title="" alt="" src="https://domain.com/wp-content/gallery/galname/thumbs/thumbs_imgfile.jpg" width="60" height="56" />
    </a>
    </div>

    Is your gallery linked to a Page? Mine are.

    Other than that I don’t really know how I can further help you.

    Hi Senlin,

    Thanks for your answer. It seems that my config does not behave as yours.

    I’ve tried to link pages on every gallery, but it doesn’t change anything. NextGen keeps searching for the gallery in /en/wp-content/gallery/galname.

    I’ve tried to change the path in the gallery settings. By default, it is wp-content/gallery/galname (without starting slash). If I add a starting slash to force NextGen to look for the directory from the root, instead, it looks for the gallery in /en//wp-content/gallery/galname.

    So the language tag keeps being added at the beginning :-(.

    What I believe is that I have a problem in my .htaccess probably. Can you send me a copy of your .htaccess file ?

    Thanks for your help.

    Thread Starter Pieter Bos

    (@senlin)

    Hi malletfils,

    my .htaccess is the standard one:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    In options of NextGen I have the path as wp-content/gallery/

    Activate permalinks is on and then you have to save your permalinks settings one more time

    In gallery settings the box “The album will not link to a gallery subpage. The gallery is shown on the same page” is UNticked

    Big thanks for your help Senlin.

    I’ve tried the exact same settings as you, and keep getting the language tag added to the gallery name :(.

    Probably a bug due to the fact that I’m developping the site under the brand new WP 3.0 RC1 ?

    Something strange is that I added the plugin Nextgen Gallery Smooth, and that this one is working fine, and get the images from the right directory.

    I’ll keep searching because I do want the default gallery of Nextgen to work. I’ve tried to open a topic on WPML forum also, but was unable to (keeps telling me ‘Topic not found’ when I try to open a new topic ?? ).

    Anyway, again, big thanks for your time and help.

    Thread Starter Pieter Bos

    (@senlin)

    Don’t know whether it helps, but I have not any effect with NextGen, instead I use “FancyBox for WordPress” (https://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/) to show the images.

    It could very well be a problem with WP 3.0

    I am using WP 2.9.2 and WPML 1.7.7 as I found that 1.7.8 and 1.7.8.1 had a few bugs here and there.

    I have tried to revert to WPML 1.7.7, but then lost access to all my posts and pages. I should probably start from a brand new wordpress install with 1.7.7 but as far as I have already about 200 posts and pages, I’m not very keen on doing the job again ;). So I hope I will find a way to have the 1.7.8.1 working.

    I also deactivate Lightbox plus and installed Fancybox for WordPress like you, but it doesn’t changed anything at all (except the fact that I love Fancybox – thanks for pointing me to it!).

    Finally I succeed in creating a post on WPML forum (I think my registration was too fresh before). So I’ll go on with my research there. Sorry for polluting your topic with my problem, and hope you’ll find a solution to your problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: NextGEN Gallery] how to use NextGen on multi-lingual websites?’ is closed to new replies.