Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chouby

    (@chouby)

    Currently no specific work has been done with Polylang to support NextGen gallery. It does not even support the translation of media (titles, desciptions) as included in WordPress. Support of media is planned for Polylang 0.9 (to be released at the end of the summer). I don’t know if it will help for NextGen.

    Thread Starter Simon

    (@simonwe)

    Thanks for your reply Chouby!

    Chouby, any news for the NextGen support ?

    Plugin Author Chouby

    (@chouby)

    I just looked at Nextgen gallery code. It seems that this plugin already includes some multilingual support (WPML, qTranslate…). It also seems that it should be not difficult to add Polylang in the list.

    I would test that in a personnal plugin:

    if (function_exists('pll_register_string')) {
    	add_filter('localization', 'pll__');
    	add_action('ngg_image_updated', 'ngg_pll_register_string');
    	function ngg_pll_register_string($image) {
    		pll_register_string('pic_' . $image->pid . '_description', $image->description);
    		pll_register_string('pic_' . $image->pid . '_alttext', $image->alttext);
    	}
    }

    Strings are then translated in ‘settings->languages->strings translations’

    I have tried to create a plugin with your code. I am not sure what it should do but anyway, I could notice no difference.
    Do you have any tip to use polylang to translate nextgen names, descriptions, tags… ?
    I use the last versions of WordPress and plugins.

    Plugin Author Chouby

    (@chouby)

    You should have descriptions and alternative texts in settings->languages->strings translations. I believe it is not very convenient but it seems that it is how wpml and nextgen are currently working together. https://wpml.org/2011/03/multilingual-nextgen-gallery/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Polylang] NextGen Gallery Plugin’ is closed to new replies.