[glotpress-updates] [GlotPress] #369: A warning when using different placeholders in single and plural form

GlotPress noreply at wordpress.org
Fri Nov 21 04:21:51 UTC 2014


#369: A warning when using different placeholders in single and plural form
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  gettext         |    Version:
 Keywords:                  |
----------------------------+-----------------------------
 I'm translating a [https://translate.wordpress.org/projects/wp-
 plugins/akismet/dev/ru/default?filters%5Boriginal_id%5D=195646 string] in
 Akismet:
 {{{
 Singular: Spam in the <a href="%s">spam folder</a> older than 1 day is
 deleted automatically.

 Plural: Spam in the <a href="%1$s">spam folder</a> older than %2$d days is
 deleted automatically.
 }}}

 Note that it has `%s` in the singular form and `%1$s` in the plural form.

 If I use `%s` in the singular form, I get a warning:
 {{{
 Warning: Expected <a href="%1$s">, got <a href="%s">.
 }}}

 If I use `%1$s`, I still get a warning:
 {{{
 Warning: Expected <a href="%s">, got <a href="%1$s">.
 }}}

 Maybe the string is incorrect and should use a consistent placeholder. Or
 maybe !GlotPress should make up its mind on what it expects :)

--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/369>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'


More information about the glotpress-updates mailing list