hi,

i tried Real Name module today. and my site use multi-language. my issue is, there can be just one definition for "Name Pattern", but in chinese the last name is always before the first name, what is quite different as in english or other language. is that any possible to show the real name in different ways in different language? thanks!

regards

Comments

Sk8erPeter’s picture

Version: 6.x-1.4 » 7.x-1.x-dev
Priority: Normal » Major

Bump? :)

I just tried Real Name 7.x-1.x-dev, and I still didn't find the opportunity to "translate" the pattern.
In Hungarian, the last name is always before the first name too.

Thanks in advance!

hass’s picture

The realname table itself is not multilingual. It could be done based on preferred user language or based on website language. But I'm not sure if this is a way to go as we would need to generate the realname in a worst case for all languages of a site and this could be N-languages of the website. Sound not very funny from performance side.

hass’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Have you guys reviewed the realname API?

I believe with below functions you can hook with a custom realname per language module into the realname module and customize the realname per user.

  • hook_realname_pattern_alter()
  • hook_realname_alter()

Looking forward to see your upcoming project on d.o. getting linked from the realname project home page.

hass’s picture

hass’s picture

Status: Closed (works as designed) » Closed (duplicate)