[wp-meta] [Making WordPress.org] #3929: Plugin Directory: Plugin title includes a translation of another string

Making WordPress.org noreply at wordpress.org
Tue Nov 20 06:50:50 UTC 2018


#3929: Plugin Directory: Plugin title includes a translation of another string
-------------------------------------+---------------------
 Reporter:  SergeyBiryukov           |       Owner:  (none)
     Type:  defect                   |      Status:  new
 Priority:  normal                   |   Milestone:
Component:  Plugin Directory         |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------
Changes (by dd32):

 * keywords:   => has-patch needs-testing


Comment:

 The main problem occurring here is that we're applying translations to
 translations, but that we're also running into the fact that we're
 translating text which isn't defined succinctly.

 [attachment:"3929.diff"] is a rough tested variant of the current
 translation functions which does it slightly different
  - For each translation, ordered by longest first
    - Replace the string with a placeholder (Hopefully the placeholder
 value never exists within an original)
  - For each placeholder marker
    - Replace the placeholder with either the translation (if it exists) or
 otherwise, with the original (which better still exist..)

 It seems like it works without problem, but it needs more testing than I
 have time for right now.

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


More information about the wp-meta mailing list