2
votes

I've got this set in source keywords of POEdit:

_
__
_e
_ex
_n
esc_attr_e
_x
_nc

It works but I gets only first string when I use _n() function (Twenty Eleven theme):

<?php printf(_n('One Comment', '%s Comments', get_comments_number(), 'twentyeleven'), number_format_i18n(get_comments_number())); ?>

Any ideas how to make it recognize _n()? That's exactly what I'm having problem with but there is no solution: http://www.poedit.net/trac/ticket/307

2

2 Answers

9
votes

You should set up a keyword in poedit so that you have

Keywords

n
_n:1,2

For example, here is my source keywords

plural form poedit

-1
votes

Keyword specification is exhaustively explained in the xgettext man page.