Title: Multilanguage support
Last modified: November 30, 2017

---

# Multilanguage support

 *  Resolved [dingdang](https://wordpress.org/support/users/dingdang/)
 * (@dingdang)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilanguage-support-15/)
 * Usage with polyang, but applies to any method.
 * Could you please describe how are you collecting the image captions? It seems
   you do that at some time before the translation plugins – we need to fix that
   so image captions could be translated.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [dingdang](https://wordpress.org/support/users/dingdang/)
 * (@dingdang)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilanguage-support-15/#post-9739174)
 * 2. An update with a bug (lightbox doesn’t work t all). To reproduce:
    – install
   fresh WP (4.9.1), default 2017 theme – install Simple Lightbox plugin – install
   Polylang plugin – create a page in 2 languages – add a gallery to the page, links
   to media And now.. lightbox doesn’t work anymore. The interesting part is that
   if Polylang is totally removed, as well the uploaded images, reinstall the Simple
   Lightbox plugin (with just a single plugin – the Lightbox) it still doesn’t work(
   no JS errors), like it is “poisoned” by the other plugin 🙂
 *  Thread Starter [dingdang](https://wordpress.org/support/users/dingdang/)
 * (@dingdang)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilanguage-support-15/#post-9739340)
 * Regarding the issue 2 above – the mystery is solved and it is not related to 
   the other plugin but for some reason when a .htaccess or on a server level http-
   based password protection is activated, the plugin stops working. I’m curious
   to hear from the author why that happens, didn’t spend more time to debug myself.
 *  Thread Starter [dingdang](https://wordpress.org/support/users/dingdang/)
 * (@dingdang)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilanguage-support-15/#post-9739564)
 * Regarding the 1st issue – we managed the problem by using slb_media_item_properties
   filter hook:
 * add_filter( ‘slb_media_item_properties’, ‘blabla’ );
    function blabla ( $props){…
   pll_current_language() … is polylang’s current language … $props->{‘caption’}…
   is the image caption … based on the language do something with the caption … …
   we are setting ours to “TEXT_LANG1||TEXT_LANG2” so we don’t have to duplicate
   the media … }
 * You can close the ticket, but pay attention to the bug when there is .htaccess
   auth enabled.
    -  This reply was modified 8 years, 6 months ago by [dingdang](https://wordpress.org/support/users/dingdang/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multilanguage support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-lightbox.svg)
 * [Simple Lightbox](https://wordpress.org/plugins/simple-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-lightbox/reviews/)

## Tags

 * [captions](https://wordpress.org/support/topic-tag/captions/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [solved](https://wordpress.org/support/topic-tag/solved/)

 * 3 replies
 * 1 participant
 * Last reply from: [dingdang](https://wordpress.org/support/users/dingdang/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/multilanguage-support-15/#post-9739564)
 * Status: resolved