>
Download This Plugin | |
Download Elegant Themes | |
Name | Localize js |
Version | 1.0 |
Author | Kamiel Choi |
Rating | 0 |
Last updated | 2014-12-11 05:33:00 |
Downloads |
28
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Localize js plugin added 166 bytes of resources to the Home page and 153 bytes of resources to the sample Post page.
Localize js plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Localize js plugin ads no tables to your Wordpress blog database.Wordpress has the function wp_localize_scripts for translation, but the strings passed to it have to be hard-coded. Until you parse the .js-files and scan for occurrences of _e() with a fast regexp, and localize them with the data using the Wordpress _e-function to localize from a .po file. *Note*. Your po-file has to include strings from javascript files. To do this in Poedit, see http://stackoverflow.com/questions/16557327/how-to-generate-po-file-from-js-file-using-poedit.