Zend Framework Forum

Go Back   Zend Framework Forum > Zend Framework Components > Internationalization (i18n) & Localization (l10n)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-2008, 09:57 AM
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-13-2008, 02:13 PM
Junior Member
 
Join Date: Sep 2007
Location: Stockholm, Sweden
Posts: 27
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 Search this Thread
Search this Thread:

Advanced Search
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

BB 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:05 AM.


Designed by: Miner Skinz Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0