plugin-icon

Localize js

제작자: kamiel79·
Provide translation function _e("") in javascript files.
버전
1.0
최근 업데이트일
Dec 11, 2014

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.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.01
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.