[glotpress-updates] [GlotPress] #511: Add `class="notranslate"` to original output

GlotPress noreply at wordpress.org
Tue Nov 10 05:01:59 UTC 2015


#511: Add `class="notranslate"` to original output
-----------------------+-----------------
 Reporter:  dd32       |      Owner:
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  1.0
Component:  interface  |    Version:
 Keywords:             |
-----------------------+-----------------
 In-browser translation services often damage placeholders and HTML, this
 is experienced in several ways:
 * Sometimes the HTML tag names or attribute names are translated
 * Sometimes the class names are translated
 * Sometimes extra whitespace is introduced into the HTML tag (ie. `</
 a>`)
 * Sometimes the placeholders are split up (ie. `% 1 $ s`)
 * Sometimes the HTML is re-ordered incorrectly

 We can fix most of that by using a `<span class="notranslate">` around the
 untranslatable text, which solves it at least for Google Translate. The
 HTML5 spec also contains `translate="no"` but I can't find anything that
 supports that (yet).

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


More information about the glotpress-updates mailing list