Translate t2 strings

Permalink
This tutorial describes how to translate t()-strings:http://www.concrete5.org/documentation/how-tos/developers/how-to-tr...

I did some googling but couldn't find documentation on how to translate the plural forms (t2). Does anyone knows how to extract those with xgettext?

This is the command I use for t-strings:
-exec xgettext --default-domain=catalog --from-code=utf-8 --keyword=t --language=PHP -p ./ -j {} \;

A3020
 
ManChicken replied on at Permalink Best Answer Reply
ManChicken
Try using
--keyword=t2:1,2

instead to pull out plurals.
A3020 replied on at Permalink Reply
A3020
Works like a charm, thanks!

-exec xgettext --default-domain=catalog --from-code=utf-8 --keyword=t2:1,2 --language=PHP -p ./ -j {} \;