picked over by the worms

(pi-kəd ō-vər bī thə wərmz)

blogging continuously since 1893

picked over by the worms header image 2

i18n-izing Wordpress Plugins

December 21st, 2008 · No Comments

I’m trying to go through the steps needed to internationalize (i18n) my wordpress plugins. So far I’ve hit alot of stumbling blocks:

  • the __() PHP function keeps giving me the error "[error] PHP Fatal error:  Call to undefined function __()" even though I have called load_plugin_textdomain(). From looking at other plugins, I don’t see any require_onces/includes that I am missing. Better looker harder I guess.
  • the makepot.php on the wordpress.org site says generates an error because it tries to do “require_once ‘not-gettexted.php’;” . But, not-gettexted.php does not exist. If I comment that out it fails with another strange error:

Warning: fopen(./wordpress/wp-content/plugins/popupper-v10/popupper-v10.php): failed to open stream: No such file or directory in ./makepot.php on line 136
xgettext: unrecognized option `--package-name='
Try `xgettext --help' for more information.
Couldn't generate POT file!

Guess I’ll keep on plodding…

Tags: ones and zeroes

No comments so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.