3

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

Atadj
  • 7,050
  • 19
  • 69
  • 94

2 Answers2

12

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

Layke
  • 51,422
  • 11
  • 85
  • 111
-1

Keyword specification is exhaustively explained in the xgettext man page.

Václav Slavík
  • 6,445
  • 2
  • 28
  • 25