[wp-meta] [Making WordPress.org] #1934: Prevent difference in number of placeholders in original text and translation

Making WordPress.org noreply at wordpress.org
Fri Aug 26 13:12:11 UTC 2016


#1934: Prevent difference in number of placeholders in original text and
translation
--------------------------------------+-----------------
 Reporter:  johnbillion               |      Owner:
     Type:  enhancement               |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Translate Site & Plugins  |   Keywords:
--------------------------------------+-----------------
 Ref: #WP37807

 A translation for the following text in core was provided and approved,
 but the translation contained two placeholders instead of just one, which
 results in a PHP error.

 > Plugins extend and expand the functionality of WordPress. You may
 automatically install plugins from the <a href="%1$s">WordPress Plugin
 Directory</a> or upload a plugin in .zip format by clicking the button at
 the top of this page.

 GlotPress should:

 1. Detect translations that use a greater number of placeholders than the
 original string, and prevent the translation from being approved by
 anyone.
 2. Detect translations that use a fewer number of placeholders than the
 original string, and raise a warning to alert the translators in case of
 an error.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1934>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list