留言板

How to change the language of page

thumbnail
Bikash Ghibila,修改在12 年前。

How to change the language of page

Junior Member 帖子: 60 加入日期: 11-3-31 最近的帖子
Hi
How to change the language of page(which is added by selecting add->page)
Thank You
thumbnail
Mani kandan,修改在12 年前。

RE: How to change the language of page

Expert 帖子: 492 加入日期: 10-9-15 最近的帖子
You should add the page name in Language.properties file.

Take a look this wiki

or try to hook it like this link
thumbnail
Hajri Mohamed,修改在12 年前。

RE: How to change the language of page

Junior Member 帖子: 71 加入日期: 11-3-2 最近的帖子
hi,
when you add a new page, you can define many languages as you want, choose the language and new inputs will appears , edit your page and you will have your Internalisation managed by liferay emoticon
regards
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: How to change the language of page

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Do you want to "change" the language of the current page or do you want to "create" a page in a different language.
If you want to create a page in a different language, follow Hajri's suggestion.

Go to Manage -> Page to see the current default language and localized language.
thumbnail
Bikash Ghibila,修改在12 年前。

RE: How to change the language of page

Junior Member 帖子: 60 加入日期: 11-3-31 最近的帖子
Thanks Hitoshi

It worked bt i v another issue remaining i.e

i changed my portlet title by using following method:

1- created a properties file in my /WEB-INF/src
/WEB-INF/src/com/message_ar_SA.properties


2-contents of message_ar_SA.properties

javax.portlet.title=بلدي الاشتراك
javax.portlet.short-title=بلدي الاشتراك
javax.portlet.keywords=بلدي الاشتراك

3- in portlet.xml file i v written

<supported-locale>ar_SA</supported-locale>
<resource-bundle>com.atyaf.message</resource-bundle>



issue is that when i click on arbic language my portlet title becomes بلدي الاشتراك rather than بلدي الاشتراك
means automatically it get converted to vietnamic

but
when i give anything in english like


javax.portlet.title=my portlet
javax.portlet.short-title=my portlet
javax.portlet.keywords=my portlet

then it works fine.


one more thing my charset is UTF-8



plzzzz help me.
i think this one is my final issue in implementing language in my project



Thanks