WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Elan42.com
    Member
    Posted 5 years ago #

    Hi guys.

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

    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:
    apply_filters()
    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:
    http://poplarware.com/languageplugin.html#translate

  2. nick_nielsen
    Member
    Posted 5 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
    Member
    Posted 5 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
    Member
    Posted 5 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
    Member
    Posted 5 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

Tags

No tags yet.