Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2008, 08:57 AM
Junior Member
 
Join Date: Aug 2007
Posts: 6
Default using poEdit

Hello,

for translation I would like to use poEdit.

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

PHP Code:
print $translate->_("Example")."\n";
print 
"=======\n";
print 
$translate->_("Here is line one")."\n"
But poEdit doesn't find anything in the code.
I told it to search for _

How can I resolve this problen?

Thanks for help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-13-2008, 01:13 PM
mgordon's Avatar
Junior Member
 
Join Date: Sep 2007
Location: Stockholm, Sweden
Posts: 16
Send a message via Skype™ to mgordon
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:32 PM.