[wp-polyglots] Re: Plural forms
Peter Westwood
peter.westwood at ftwr.co.uk
Sat Mar 15 14:49:53 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Barmala wrote:
| Am 15.03.2008 14:31, Peter Westwood schrieb:
|> Christian Barmala wrote:
|>> Am I right, that the simplified WordPress gettext functions "__()"
|>> and "_e()" do *not* support plural forms?
|> correct.
|> 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.
|
Yes (some examples from 2.3.2)
./wp-includes/formatting.php:
$since = sprintf(__ngettext('%s min', '%s mins', $mins), $mins);
$since = sprintf(__ngettext('%s hour', '%s hours', $hours), $hours);
$since = sprintf(__ngettext('%s day', '%s days', $days), $days);
cheers
westi
- --
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
~ C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH2+IRVPRdzag0AcURAkqLAJwPJrwV7Yn7NQz+DH+SFRPRiQIxbgCglFJb
ikk4QMHQGFuDv0MZvmonAbc=
=KqzA
-----END PGP SIGNATURE-----
More information about the wp-polyglots
mailing list