[wp-meta] [Making WordPress.org] #665: Missing plural forms in Rosetta Forums project

Making WordPress.org noreply at wordpress.org
Wed Oct 22 01:33:21 UTC 2014


#665: Missing plural forms in Rosetta Forums project
-----------------------------+-------------------------------------
  Reporter:  SergeyBiryukov  |      Owner:
      Type:  defect          |     Status:  new
  Priority:  normal          |  Component:  translate.wordpress.org
Resolution:                  |   Keywords:
-----------------------------+-------------------------------------

Comment (by SergeyBiryukov):

 On a related note,
 [https://translate.wordpress.org/projects/rosetta/forums/ru/default?filters%5Boriginal_id%5D=149601
 this] is not a correct usage of plural forms:
 {{{
 Singular: 1 plugin found
 Plural: Showing %s-%s of %s plugins
 }}}

 In some languages, the first form is used not just for 1, but also for 21,
 31, 41, etc. `1 plugin found` only makes sense for 1. For 21, 31, etc.,
 the number should be included in the string, but it's still the first
 form.

 Currently we can't use the single form and are forced to use the `Showing
 %s-%s of %s plugins` form in all cases.

 It could be fixed with something like this:
 {{{
 if ( $plugin_count > 1 ) {
         $message = sprintf( _n( 'Showing %s-%s of %s plugins', 'Showing
 %s-%s of %s plugins', $plugin_count ), ... );
 } else {
         $message = __( '1 plugin found' );
 }
 }}}
 See also https://core.trac.wordpress.org/ticket/28502#comment:5 in Core
 Trac.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/665#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list