[Plugin: NextGEN Gallery] NGG Translation with "language switcher" plugin (5 posts)

  1. ELAN42.com
    Posted 7 years ago #

    Hi guys.

    I'm trying to make galleries names, pictures title/description, translable using the "language switcher plugin" tags:

    But it doesn't work.
    In the plugin page there is a note to make plugins translable, and it worked for me with the "dagon design sitemap generator" plugin.

    The trick is using this:
    Before using a variable taken from a WP admin form.

    Do you think that this could work for Nextgen Gallery?
    That is the plugin page/help:

  2. nick_nielsen
    Posted 7 years ago #

    I'm looking for a solution too - there is someone who's done work to get Qtranslate working with NextGEN

    but if its that simple with language switcher whoopee !!

    Where do you put "apply_filters" in your plugins ?

  3. nick_nielsen
    Posted 7 years ago #

    It is as simple as that !!

    "apply_filters" does work !!

    In your template you wrap the text you want translating thus

    apply_filters('the_title', $image->descriptionor $image->alttext etc.)

    got the solution from here http://wordpress.org/support/topic/182817

  4. nick_nielsen
    Posted 7 years ago #

    Update It works on my local, test site but when I try to save descriptions with lang tags in them they are stripped out when I save the new information.
    Something strips out the [lang_xx]tags AND the second language text...

    What the hell is going on ?!

  5. ELAN42.com
    Posted 7 years ago #

    Is the new version of NGGallery lang_switch compatible?

    Can someone insert the "apply_filters" in the code?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.