[wp-polyglots] Re: Plural forms

S K skichu at gmail.com
Sat Mar 15 14:49:54 GMT 2008


On Sat, Mar 15, 2008 at 8:03 PM, Christian Barmala
<christian.barmala at gmx.net> wrote:

>  > For plural forms we use __ngettext
>
>  Yes, but is this function actually used? I didn't find an occurrence in
>  my installation of WP 2.3.
>===============

It is used in at least 8 files.

For instance, here:-

E:\sites\wp-latest\wordpress\wp-admin\index.php

Occurrences:

106: $post_str = sprintf(__ngettext('%1$s <a href="%2$s"
title="Posts">post</a>', '%1$s <a href="%2$s"
title="Posts">posts</a>', $numposts), number_format_i18n($numposts),
'edit.php');

107: $comm_str = sprintf(__ngettext('%1$s <a href="%2$s"
title="Comments">comment</a>', '%1$s <a href="%2$s"
title="Comments">comments</a>', $numcomms),
number_format_i18n($numcomms), 'edit-comments.php');

108: $cat_str = sprintf(__ngettext('%1$s <a href="%2$s"
title="Categories">category</a>', '%1$s <a href="%2$s"
title="Categories">categories</a>', $numcats),
number_format_i18n($numcats), 'categories.php');

109: $tag_str = sprintf(__ngettext('%1$s tag', '%1$s tags', $numtags),
number_format_i18n($numtags))

S.K


-- 
If you can learn from mistakes, Why ain't I a genius?

S.K
http://www.cyberbrahma.com/
http://www.cyberbrahma.com/weblog/ - My English Blog
http://kichu.cyberbrahma.com/ - My Tamil Blog


More information about the wp-polyglots mailing list