[wp-trac] [WordPress Trac] #19602: wptexturize() should have locale support

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 30 06:24:23 UTC 2012


#19602: wptexturize() should have locale support
----------------------------+------------------
 Reporter:  nacin           |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.4
Component:  I18N            |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------
Changes (by nacin):

 * keywords:   => has-patch


Comment:

 Here's a rough-cut approach that internationalizes most entities in
 #19602: the apostrophe, prime (and double prime), and single curly quotes
 (to add to the existing i18n'd double quotes).

 To disable curled quotes, a locale simply needs to translate each of these
 seven strings to either ' or ". A plugin can likewise hook into
 gettext_with_context and catch these six different $text values
 (apostrophe and closing single quote being the same entity for English).

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


More information about the wp-trac mailing list