[wp-trac] [WordPress Trac] #47511: Add specific "default settings" for different locales
WordPress Trac
noreply at wordpress.org
Mon Jun 10 17:48:02 UTC 2019
#47511: Add specific "default settings" for different locales
-------------------------+-----------------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------+-----------------------------
Comment (by Takahashi_Fumiki):
I'm really interested in this ticket!
As mentioned above, name fields in `profile.php` should be able to swap.
But there are still things to be considered.
1. Name parts are not always 2 in some locale(e.g. Phlip.K.Dick, Pyotr
Ilyich Tchaikovsky).
2. API for name parts is also preferred for plugin API like
`document_title_parts` hook.
3. Name formats vary very much. So, if you are not a linguist, it's hard
to make whitelist.
4. The `gettext` approach is a good start point(e.g. `$name_order = _x(
'fist_name,last_name', 'name_parts' )`, but translators are not always
good developer. In terms of separation of concerns, the changeable
settings should be free from `.po` files. JSON file `wp-setting.json` is a
good recommendation, but it may give a broad effect.
This W3C document will make sense.
https://www.w3.org/International/questions/qa-personal-names
Anyway, I will make a patch for UI matters in `profile.php`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47511#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list