[wp-trac] [WordPress Trac] #8759: Word count function doesn't work in several languages

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 19 19:49:06 UTC 2011


#8759: Word count function doesn't work in several languages
----------------------------+-----------------------
 Reporter:  jim912          |       Owner:  westi
     Type:  task (blessed)  |      Status:  assigned
 Priority:  low             |   Milestone:  3.4
Component:  I18N            |     Version:  2.7
 Severity:  normal          |  Resolution:
 Keywords:  has-patch gci   |
----------------------------+-----------------------

Comment (by azaozz):

 Perhaps best would be to have several sets of regex there and choose the
 right one by looking at the `lang` setting (or body class/JS var).
 Thinking we can ask the localization teams to come up with the best regex
 for their language.

 Another option would be to make the regex "pluggable". That would give a
 bit more flexibility to localizations but would require outputting a JS
 object with the replacement regex. As of 3.3 this can be done by using
 localize_script() for word-count.js.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/8759#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list