Title: ajax localization issue
Last modified: September 7, 2016

---

# ajax localization issue

 *  Resolved [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/ajax-localization-issue/)
 * Hello,
 * I just started to translate this plugin and realized that ajax localization is
   not working. Because `wp_localize_script` gets messages directly database and
   this is not proper way for localization.
 * Hope you fix in next version.
 * Cheers,

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

 *  Plugin Author [Hassan Akhtar](https://wordpress.org/support/users/khaxan/)
 * (@khaxan)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/ajax-localization-issue/#post-8181675)
 * Hi. Messages are saved in the DB at the time of first activation. If you translate
   the plugin and then activate it for the first time, the messages should get inserted
   in the correct language. Shouldn’t they?
 *  Thread Starter [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/ajax-localization-issue/#post-8181761)
 * Hi [@khaxan](https://wordpress.org/support/users/khaxan/),
 * Nope, it doesn’t work, probably plugin activation hook fires too early before
   language load also users should know to add language pack before activation.
 * IMHO, languages should be available when they located correct file and storing
   translated strings in DB isn’t best practice.
 * Please consider this.
 * Thanks,
 *  Plugin Author [Hassan Akhtar](https://wordpress.org/support/users/khaxan/)
 * (@khaxan)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/ajax-localization-issue/#post-8218461)
 * Hi Mustafa. I have released a new version. Let me know if the issue is fixed.
   Thanks.
 *  Thread Starter [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/ajax-localization-issue/#post-8218530)
 * Hi [@khaxan](https://wordpress.org/support/users/khaxan/),
 * >  Let me know if the issue is fixed.
 * Yes, fixed.
 * Thanks.

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

The topic ‘ajax localization issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/front-end-publishing_343434.svg)
 * [Frontend Publishing](https://wordpress.org/plugins/front-end-publishing/)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-publishing/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-publishing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-publishing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-publishing/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/ajax-localization-issue/#post-8218530)
 * Status: resolved