[wp-trac] [WordPress Trac] #47522: Make name fields in profile page swappable and modifiable by locales

WordPress Trac noreply at wordpress.org
Tue Jun 11 03:20:37 UTC 2019


#47522: Make name fields in profile page swappable and modifiable by locales
--------------------------------+-----------------------------
 Reporter:  Takahashi_Fumiki    |      Owner:  (none)
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  I18N                |    Version:  trunk
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 On the user profile page, the first name field precedes the last name
 field. In some locales, an order of name parts is different. For example,
 in some Asian locales(Chinese, Japanese, Korean, and Vietnamese), some
 part of Europe(Hungarian). And in some locales, name parts can be more
 than 2.

 == Examples

 Below is the list of name patterns par locales. I'm not a linguist, so
 they may have incorrect information or a shortage.

 == e.g. English

 ||= Philip =||= Roth =||
 || First Name || Last Name ||

 This style is very common in many locales and default of WordPress.

 == e.g. Japanese

 ||= Murakami =||= Haruki =||
 || Family Name || First Name ||

 Family name(last name) comes first. CJKV, some part of Europe, and so on.

 == e.g. Russian:

 ||= Fyodor =||= Mikhailovich =||= Dostoevsky =||
 || First Name || Patronym || Last Name ||

 Having multiple name parts. Some of the parts may be omitted with some
 reason.

 == Plans

 1. Change `profile.php` to adopt a filter hook for name fields.
 2. Name order is swappable with `.po` file like `wp_trim_words is.
 https://developer.wordpress.org/reference/functions/wp_trim_words/
 3. Options API is also modifiable for extra name parts.


 Related tickets: #47511

 Helpful resources: https://www.w3.org/International/questions/qa-personal-
 names

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


More information about the wp-trac mailing list