Ubuntu 11.10 – Configure POEdit for Zend Framework
In this post I’ll desribe how to configure POEdit for Zend Framework in Ubuntu. However POEdit is cross platform compatible and has the same GUI on Windows and Mac, so for these platforms you can also follow several steps below.
If you don’t have POEdit installed yet, open a terminal and execute:
apt-get install poedit
Now start the application with “Alt + F2″ and type “poeditor” and double click the icon.
If you start POEdit for the first time, you’ll see the preferences dialog.
Append ” -L php” to the end of the “Parser command:” text field.
Click OK and you’re done with the preference dialog. Now create a catalog with by clicking on “File -> New catalog”. And fill in your project information, for example see the image below.
Click on the “Paths” tab and set the absolute or relative path to your project root directory. Add several sub directories that contain strings to translate.
Click on the “Keywords” tab and make sure you have the following keywords to extract also strings from forms etc.
Now save it to a .po file and all translatable strings will be extracted nicely!
Make sure you also read PiKe multi translate with Zend_Translate and application.ini to easily add multiple translation sources, just by defining them in your application.ini.
This entry was posted by Pieter Vogelaar on September 15, 2011 at 19:22, and is filed under PHP, Ubuntu, Zend Framework. Follow any responses to this post through RSS 2.0.You can leave a response or trackback from your own site.
- Ubuntu 12.04 – Install Gearman and GearmanManager
- Ubuntu 14.04 – Install Selenium as service (headless)
- ZF Apigility + Doctrine + UniqueObject Validator
- Ubuntu 12.04 – Install Postfix, Dovecot and Vimbadmin
- Ubuntu 12.04 – Install Solr 4 with Jetty 9
- Ubuntu 12.04 – Install Jetty 9
- Ubuntu 12.04 + Nginx 1.2.6 + PHP-FPM server block / vhost example
- Varnish 3 – Block ip addresses
- Ubuntu 12.04 – Install Varnish 3 in front of Apache 2
- Command “df” in linux shows incorrect free space after file removal
About Pieter Vogelaar (60 posts)
Hi, my name is Pieter Vogelaar. I’m a web developer / DevOps engineer / IT consultant and specialized in high traffic and high profile websites. I love open source and have a great passion for automating and developing things!