Here is my case: I use gettext via Poedit to translate a PHP application. And I have a custom function for plurals:
function ListOutput($result,$column_names,$singular='.',$plural='.',$link=false,$group=array(),$options=array())
Which is referenced in Poedit with this keyword: ListOutput:3,4
.
Now, my problem is that when I have a string to translate, I use _('example_string')
, but then if I translate it later via ListOutput($result,$column_names,'example_string', 'example_string_plural')
, only example_string will appear in Poedit.
And furthermore, I should say that this problem appears at time, other times, I will have the plural form AND the singular form (so, the singular string 2 times...).
Note 1: that if the strings are only referenced in ListOutput(), the plural form will correctly appear in Poedit.
Note2: ListOutput() function calls ngettext() with the number of elements of the list as the 3rd argument.