Title: Script localisation issue
Last modified: February 25, 2024

---

# Script localisation issue

 *  Resolved [artyfarty](https://wordpress.org/support/users/artyfarty/)
 * (@artyfarty)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/script-localisation-issue/)
 * Hi!
 * I ran into a problem mentioned on two earlier threads concerning sgdgShortcodeLocalize
   not defined.
 * I noticed that in some occasions (uncertain why) the calls to `wp_enqueue_script('
   sgdg_gallery_init' );` and `Script_And_Style_Helpers::add_script_configuration()`
   in class-shortcode.php get called **before** `Script_And_Style_Helpers::register_script('
   sgdg_gallery_init',[...])`
 * In that case the call to `wp_add_inline_script()` inside the `add_script_configuration()`
   method doesn’t do anything, leading to the localisation of the script not making
   it into the output. And that leads to the undefined sgdgShortcodeLocalize.
 * I hope you can solve this somehow?

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

 *  Thread Starter [artyfarty](https://wordpress.org/support/users/artyfarty/)
 * (@artyfarty)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/script-localisation-issue/#post-17451492)
 * (This problem was mentioned in [https://wordpress.org/support/topic/images-not-showing-272/](https://wordpress.org/support/topic/images-not-showing-272/))
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/script-localisation-issue/#post-17712964)
 * Hi,
   thanks, there are multiple people reporting an issue with the localization
   but I have never been able to replicate this – this is the most accurate report
   so far, I will take a look into this.
 * Thanks,
   Marek
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/script-localisation-issue/#post-17717428)
 * Hi,
   thanks again, after months of seeing occasional reports of this issue, your
   comment helped me fix it (hopefully :D)! Version 2.13.10 with the fix incoming.

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

The topic ‘Script localisation issue’ is closed to new replies.

 * ![](https://ps.w.org/skaut-google-drive-gallery/assets/icon.svg?rev=3264618)
 * [Image and video gallery from Google Drive](https://wordpress.org/plugins/skaut-google-drive-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/skaut-google-drive-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/skaut-google-drive-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/skaut-google-drive-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/script-localisation-issue/#post-17717428)
 * Status: resolved