As of 5 mins ago I'm thinking the best solution might be to write my own
script to extract the strings (that way I can write whatever regexs I need
to extract the strings from my code) and put them in a file in the following
format.
_('some extracted string');
_('some other extracted string');
from there I get poedit to scan this one large file to create the strings
from it, or alternatively I could convert to a php array, csv or whatever.
It just seems like a lot of work for something poedit should have solved.
Markus Hausammann wrote:
>
> That is exactly the reasion why I changed adapter.
> Now I use csv or even php language files so I can edit them manually.
> It's strange that poEdit doesn't even let you add fields manually...
>
> So, I would be very interested in an answer to this question too!
>
> -----Ursprüngliche Nachricht-----
> Von: whisperstream [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 11. Dezember 2008 01:06
> An: [email protected]
> Betreff: [fw-general] Zend_Form internationalization using gettext
>
>
> I'm using Zend_Form in a project which I want to internationalize.
>
> I understand that by setting a translator for the form object, it will
> automatically translate labels for me without me having to explicitly call
> $this->_translator->_('something to translate') for each element label.
>
> All that is fine, but how do I generate my gettext files. If I explicitly
> translate each label then poedit will scan my code folder and
> automatically
> build up a language file with all the strings. If I just set my
> translation
> object in the registry under the key 'Zend_Translate' all forms and
> validators will do the translation automatically, but because I'm not
> doing
> explicit translation, the poedit scanner can't build up the gettext
> language
> file automatically.
>
> How does anyone else overcome this problem?
> --
> View this message in context:
> http://www.nabble.com/Zend_Form-internationalization-using-gettext-tp2094609
> 8p20946098.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>
>
--
View this message in context:
http://www.nabble.com/Zend_Form-internationalization-using-gettext-tp20946098p20946335.html
Sent from the Zend Framework mailing list archive at Nabble.com.