[wp-trac] [WordPress Trac] #31736: Add locale to get_body_class to enable local WordPress themes/plugins to enable different design for locales

WordPress Trac noreply at wordpress.org
Mon Mar 23 06:49:54 UTC 2015


#31736: Add locale to get_body_class to enable local WordPress themes/plugins to
enable different design for locales
-------------------------+-----------------------------
 Reporter:  ShinichiN    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 I want to suggest that get_body_class adds locales to the body tag.

 Would be very nice if WordPress supports locale-en_US, locale-sv_SE or
 locale-ja as body classes because non-English speakers can submit themes
 both for English writers and local languages bloggers.
 For users who use child themes to optimize a theme to their languages, it
 would be easier to send pull requests and patches to the original themes.

 For example, this blog post by @nao shows us how to optimize English based
 themes for Japanese blogs.
 http://en.naoko.cc/2015/01/29/optimizing-english-based-wordpress-theme-
 for-japanese-blog/

 One of the basic ideas of this theme "Nu2013" by @nukaga in the WordPress
 theme repository is that the author wanted to offer Japanese optimized
 version of TwentyThirteen theme.
 https://wordpress.org/themes/nu2013/

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31736>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list