+ Reply to Thread
Results 1 to 2 of 2

Thread: using poEdit

  1. #1
    danield is offline Junior Member
    Join Date
    Aug 2007
    Posts
    8

    Default using poEdit

    Hello,

    for translation I would like to use poEdit.

    In the documentation of Zend, I found this to use it:

    [PHP]
    print $translate->_("Example")."\n";
    print "=======\n";
    print $translate->_("Here is line one")."\n";
    [/PHP]

    But poEdit doesn't find anything in the code.
    I told it to search for _

    How can I resolve this problen?

    Thanks for help.

  2. #2
    mgordon is offline Junior Member
    Join Date
    Sep 2007
    Location
    Stockholm, Sweden
    Posts
    29

    Default Adding -L php to xgettext in poEdit

    This problem is due to xgettext not recognizing *.phtml files. Change php-settings in tab for code interpreters

    1. Add to files: *.php;*.phtml
    2. Add -L php to xgettext: "xgettext --force-po -o %o %C %K %F -L php"

    Works like a charm (should be set by default by poEdit but no-one's perfect)

+ Reply to Thread

Similar Threads

  1. Translating with Poedit
    By kuzi in forum General Q&A on Zend Framework
    Replies: 2
    Last Post: 06-11-2010, 02:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts