Westernized names are displayed in order of

[prefix][given][middle][family][suffix][credential]

However, Eastern names are displayed in reverse order

i.e.
Chinese names are displayed in

[Family][Given] [Prefix]
With no middle name option

The Eastern name order is for mainland China, Japan, Korea, Malaysian Chinese, Singapore, Taiwan, and Vietnam, etc.

More information on name order are found at:
http://en.wikipedia.org/wiki/Personal_name

It's possible to create a different field formatter to re-arrange the names in the order of display for displaying eastern names?

Comments

alan d.’s picture

Version: 7.x-1.4 » 7.x-1.x-dev

It may be possible to do this fairly easily using a theming function on the name_field_widget_form and a new setting to toggle between display settings. More interesting would be a way to do this on the fly depending on locale...

xcf33’s picture

Makes sense,

Locale and language preference based setting for the name widget and formatter view woud be perfect but right now we can probably just create formatter and widget form that allows Eastern language order.

I'll be more than happy to lend a hand in helping this out. (As soon as I figure out all the code :) )

Let me know how you would like to proceed

Cheers!

alan d.’s picture

OK. Applying at a simple weight toggle to the instance settings should provide a simple workaround.

Internally, we would treat 泽 (Ze) like a middle name? IE: It is a generational component in 毛泽民 (Mao Ze Min). And title prefix is a suffix and the generational suffix (Jr, Sn, I, II, III) is redundant and would be removed from the field settings for asian names / set to '' & hidden in the widget?

This is an all or nothing approach: Either the format is western or asian (for lack of better names and to provide potential support for others latter)

Here is the patch.

theflowimmemorial’s picture

Hmm, I'm not so sure I'm convinced of the all or nothing approach. I can definitely think of a number of scenarios in my mind where the name representations will be mixed. Maybe a good approach here would be similar to that of addressfield (country is selected, then address form is displayed). Select the name representation first, and then display the corresponding field (with a default setting).

alan d.’s picture

Have a look at #1328840: Advanced name field and let me know your thoughts

alan d.’s picture

Status: Active » Closed (duplicate)

See #1328840: Advanced name field, but atm any timeline on this is unknown. It would be good to get feedback before starting.

The existing patch has been committed to dev.