[wp-trac] [WordPress Trac] #46683: Site Health: audit the translation functions

WordPress Trac noreply at wordpress.org
Tue Apr 2 21:31:50 UTC 2019


#46683: Site Health: audit the translation functions
-------------------------------------+-------------------------------
 Reporter:  afercia                  |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  5.2
Component:  Administration           |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch site-health  |     Focuses:  coding-standards
-------------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"45099" 45099]:
 {{{
 #!CommitTicketReference repository="" revision="45099"
 Site Health: i18n audit, take 1.

 * Split plural strings with multiple sentences to avoid duplicating
 translations.
 * Decouple strings where the singular and plural form are not just the
 same string with different numbers, but essentially two different strings.
 * Use an established pattern for numbered placeholders in translator
 comments.
 * Replace constants in translatable strings with placeholders, mark them
 as code.
 * Make sure sentences are translated as a whole, not as separate string
 parts.
 * Remove unnecessary context and escaping.

 Props ocean90, SergeyBiryukov.
 See #46683.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46683#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list