[wp-trac] [WordPress Trac] #42241: MediaElement should use the correct locale string

WordPress Trac noreply at wordpress.org
Mon Oct 16 22:54:42 UTC 2017


#42241: MediaElement should use the correct locale string
-------------------------------------+-------------------------
 Reporter:  johnbillion              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.9
Component:  Media                    |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript
-------------------------------------+-------------------------

Comment (by westonruter):

 [attachment:42241.1.diff] uses `get_user_locale()` when `is_admin()`.

 This patch also replaces the locale underscore with a hyphen, so `es_MX`
 gets replaced with `es-MX`. However, I don't really see this working as
 expected. I changed my locale to Mexican Spanish but then the player still
 had a “Play” tooltip: [attachment:mejs-language-not-spanish.png].

 It seems like ME.js isn't loading the locale.

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


More information about the wp-trac mailing list