« Back

Setting up users' screen name and friendly URLs in your own languages

General Blogs December 8, 2010 By Jonas Yuan

In Liferay portal, you can use your own language. Multilingual organizations get out-of-the-box support for up to 36 languages. Users can toggle among different language settings with just one click and produce/publish multilingual documents and web content. You can also easily add other languages in your public, private pages, or other organizations.

locales=ar_SA,eu_ES,bg_BG,ca_AD,ca_ES,zh_CN,zh_TW,cs_CZ,nl_NL,en_US,en_GB,et_EE,fi_FI,fr_FR,gl_ES,de_DE,el_GR,iw_IL,hi_IN,hu_HU,in_ID,it_IT,ja_JP,ko_KR,nb_NO,fa_IR,pl_PL,pt_BR,pt_PT,ru_RU,sk_SK,es_ES,sv_SE,tr_TR,uk_UA,vi_VN

As shown in above locale settings, multi-languages get supported as well in Web Content. That is, web content can be entered in as many languages as desired. As you can see, only content got localized. In addition, the name (article title) and the summary, that is, abstract description of web content, should be localizable, too. (Abstracted from the book: Liferay Portal 6 Enterprise Intranets).

Fortunately, knowledge base articles have fields: title, content, summary (description), etc. Multi-languages should get supported as well in knowledge base articles. That is, knowledge base articles (title, content and summary) can be entered in as many languages as desired. For more details, you can refer to the blogs post: Multiple-language support for Knowledge Base articles.

Currently (at revision 68460), users’ screen name and friendly URL must be characters between a-z and A-Z or digital number 0-9 plus special characters e.g.”-“,”.”,”_”.   That is, users’ screen name and friendly URL cannot be specified by multiple languages like Chinese, Japanese. 

For example, Asia-based users would like to have native user names and friendly URL like Chinese, Japanese, etc.

Use case A: set up native user screen name like “underwaterworld” as “海底世界” in Chinese, “アンダーウォーターワールド” in Japanese. Of course, it could be any locale as mentioned above.

Use case B: set up native friendly URLs like “liferay” as “生命之光” in Chinese, “生命の光” in Japanese. Sure, it could be any locale as mentioned above.

Use case C: set up native user email address like “underwaterworld@abc.com” as “海底世界@abc.com” in Chinese, “アンダーウォーターワールド@abc.com” in Japanese. Of course, it could be any locale as mentioned above.

This article will address how to add new feature (use case A, B and C) - support users’ screen name, email address and friendly URLs with 36 languages in liferay 5.2 and 6.

Solution Overview

In general, you should be able to create native user names and friendly URL with your own languages. As shown in following screen-shot, you should be able to see samples.

Setting up a group in Japanese, frienly URL as “生命の光”

Setting up a group in Chinese, friendly URL as “生命之光”

Creating a new user in Japanese, screen name as “アンダーウォーターワールド”, and password as “アンダーウォーターワールド”

Creating a new user in Chinese, screen name as “海底世界” and password as “海底世界”

Creating a new user in Japanese, native email address as “アンダーウォーターワールド@abc.com”, and password as “アンダーウォーターワールド”

Creating a new user in Chinese, screen name as “海底世界@abc.com” and password as “海底世界”

Results

Use case A: set up user native screen name like “Underwater World” as “海底世界” in Chinese, “アンダーウォーターワールド” in Japanese

Set: How do users authenticate?  - by screen name

sign in (as screen name / password: “アンダーウォーターワールド”/“アンダーウォーターワールド”) in Japanese

sign in (as screen name / password: “海底世界”/“海底世界”) in Chinese

Use case B: set up friendly URLs like “liferay” as “生命之光” in Chinese, “生命の光” in Japanese

Check friendly URL of the group “生命の光” in Japanese, after signed in.

Check friendly URL of the group “生命之光” in Chinese, after signed in.

Use case C: set up user native email address  like “Underwater World@abc.com” as “海底世界@abc.com” in Chinese, “アンダーウォーターワールド@abc.com” in Japanese

Set: How do users authenticate?  - by email address

sign in (as email / password: “アンダーウォーターワールド@abc.com”/“アンダーウォーターワールド”) in Japanese

After logged in

sign in (as screen name / password: “海底世界@abc.com”/“海底世界”) in Chinese

Summary

As you can see, this feature supports three use cases:

  • Use case A: set up native user screen name like “underwaterworld” as “海底世界” in Chinese, “アンダーウォーターワールド” in Japanese.
  • Use case B: set up native friendly URLs like “liferay” as “生命之光” in Chinese, “生命の光” in Japanese.
  • Use case C: set up native user email address like “underwaterworld@abc.com” as “海底世界@abc.com” in Chinese, “アンダーウォーターワールド@abc.com” in Japanese.

That is, with this feature you would be able to set up users' native screen name, native email address and friendly URLs in your own languages (up to 36 languages). Refer to LPS-14436

Is this feature useful? Your comments / suggestions?

Threaded Replies Author Date
Nice but what about real multilanguage problem... Szymon Gołębiewski December 9, 2010 3:44 AM
Hi Szymon, Thanks. Similar implementation had... Jonas Yuan December 9, 2010 6:11 AM
Thank for tip. We will try that and see how it... Szymon Gołębiewski December 10, 2010 2:40 AM
a fix patch for revision 79978 is ready at... Jonas Yuan May 4, 2011 4:41 PM
[...] Setting up users’ screen name and... Anonymous July 15, 2011 5:00 PM
[...] How to Add a Screen Name in America... Anonymous July 15, 2011 5:00 PM

Nice but what about real multilanguage problem like http://issues.liferay.com/browse/LPS-5906 ?
Posted on 12/9/10 3:44 AM.
Hi Szymon, Thanks. Similar implementation had been added on Knowledge base articles' "Title" and "Summary" (description).

http://www.liferay.com/web/jonas.yuan/blog/-/blogs/multiple-langua­ge-support-for-knowledge-base-articles

Would it be helpful for localization of title and description of web content?

Do you agreed?
Posted on 12/9/10 6:11 AM in reply to Szymon Gołębiewski.
Thank for tip. We will try that and see how it work. I will post here what have we found emoticon
Posted on 12/10/10 2:40 AM in reply to Jonas X. Yuan.
a fix patch for revision 79978 is ready
at http://issues.liferay.com/browse/LPS-14436.

Thanks
Jonas
Posted on 5/4/11 4:41 PM.
[...] Setting up users’ screen name and friendly URLs in your own … Dec 8, 2010 … Use case A: set up native user screen name like “underwaterworld” as “海底世界” in Chinese, “アンダーウォーターワールド” in Japanese. … How... [...] Read More
Posted on 7/15/11 5:00 PM.
[...] How to Add a Screen Name in America Online | eHow.com You can also add a number at the end of the screen name if it’s already taken. Set up the preferences you want for each name. Print; Email; Share... [...] Read More
Posted on 7/15/11 5:00 PM.