[wp-trac] [WordPress Trac] #28303: How to handle default/formal translations for automatic upgrades?

WordPress Trac noreply at wordpress.org
Mon Jun 29 10:22:14 UTC 2015


#28303: How to handle default/formal translations for automatic upgrades?
-------------------------+------------------
 Reporter:  zodiac1978   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.3
Component:  I18N         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by ocean90):

 In [attachment:28303.3.patch] I have renamed the function to
 `wp_get_html_language_code()` and removed all the `sanitize_html_class()`
 calls because it's already handled by `wp_get_html_language_code()`.
 Reverts also the change to `remove_accents()`. Includes tests for
 `wp_get_html_language_code()`.

 [attachment:28303.4.patch] is an approach without
 `wp_get_html_language_code()`. The code has been moved to `get_bloginfo()`
 directly since this is the only place where the locale is used as a
 language code for the `lang` attribute. Includes tests for `get_bloginfo(
 'language' )`.

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


More information about the wp-trac mailing list