WordPress.org

Support

Support » Plugins and Hacks » help with creating a .pot file to a plugin i’ve created

help with creating a .pot file to a plugin i’ve created

  • i’ve built a plugin, with I18n translatable strings.
    now i needed to prase a ,pot file from the .php file. I thought it will be simple for me, but for some reason it is not.

    i’m working on ubuntu 8.10, and tried using xgettext to compile the pot file.

    my plugin directory is on the Desktop so it is: /home/kayma/Desktop/xxx
    i’ve opened a terminal and did:

    $ xgettext -L PHP -f /home/kayma/Desktop/xxx/xxx.php -o –keyword=_e –keyword=__ xxx.pot

    i got this message: xgettext: error while opening “<?php” for reading: No such file or directory

    I’ll appreciate any help.
    thanks, asaf.

  • The topic ‘help with creating a .pot file to a plugin i’ve created’ is closed to new replies.