On 17.10.2011, at 07:25, Mike Seth wrote:

> On 10/17/2011 01:13 PM, Jark Tonnätt wrote:
>> Hello
>>  
>> I’m new to Agavi and I'm trying to use „AgaviGettextTranslator“.
>>  
>> This is a part of my php-test-file:
>> echo $this->tm->_('Tasse', 'default.test', 'en'); echo 
>> $this->tm->_(array('Ein Kamel', '%d Kamele', 3), 'default.test', 'en');
>>  
>> It’s simple to create a po-file:
>> xgettext filename.php
>>  
>> But my first problem is: Only singular translations are detected. The second 
>> line is ignored, because it’s not the php-standard syntax of (n)gettext. How 
>> is it possible to translate the second line?
> From a quick look at xgettext manual, and assuming I understand your question 
> correctly, what you want is
> 
> xgettext foo.php -o foo.po -karray:1,2

Also see https://github.com/dzuelke/grammatista for an alternative to xgettext.

FWIW, I'd recommend using English as a source language, but that's a matter of 
taste. Definitely keep in mind that only languages where "one" is the singular 
form work as gettext sources :)

David


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to