留言板

Language Display Customization

thumbnail
Saikat Saha,修改在11 年前。

Language Display Customization

New Member 帖子: 23 加入日期: 11-11-16 最近的帖子
Hi,

I have requirement to customize the display of language options. It should show only the other available language options excluding the current language of the Portal.

For example if my portal is having the English, Hindi and Bengali language options and default language is English, then at first only Hindi & Bengali options should be displayed. Now if I select the Hindi language to display the Portal, then it should display only the English & Bengali options.

Please guide me, whether it requires a hook or not. If hooking is required where do I need to change to get the expected customization.

Regards,
thumbnail
Juhi Kumari,修改在11 年前。

RE: Language Display Customization

Expert 帖子: 347 加入日期: 11-12-12 最近的帖子
Hi,
Set locales value in your portal-ext.properties file acording to your requirement.
locales=en_US,de_DE,es_ES



Regards
Juhi
thumbnail
Saikat Saha,修改在11 年前。

RE: Language Display Customization

New Member 帖子: 23 加入日期: 11-11-16 最近的帖子
Hi Juhi,

This is okay for me. But I think you have not got my point exactly. I already have all of my required languages option in the portal. But I want exclude the current language (which is selected) from the display options. All others will be there. So I need help in this area.

Thanks.
thumbnail
Juhi Kumari,修改在11 年前。

RE: Language Display Customization

Expert 帖子: 347 加入日期: 11-12-12 最近的帖子
Hi Saikat,

For this you have to customize taglib/ui/language/page.jsp Using if condition you can select current language and display the rest.


Regards
Juhi
thumbnail
Vishal Panchal,修改在11 年前。

RE: Language Display Customization

Expert 帖子: 289 加入日期: 12-5-20 最近的帖子
Juhi Kumari:
Hi Saikat,

For this you have to customize taglib/ui/language/page.jsp Using if condition you can select current language and display the rest.


Regards
Juhi


Hi Juhi ,

I have the same requirement and I have made hook for two pages

language/view.jsp
and
taglib/ui/language/page.jsp

but page.jsp customization is not giving any effect.

can you please guide me..?

Thanks,
Vishal R. Panchal
thumbnail
Vishal Panchal,修改在11 年前。

RE: Language Display Customization

Expert 帖子: 289 加入日期: 12-5-20 最近的帖子
Juhi Kumari:
Hi Saikat,

For this you have to customize taglib/ui/language/page.jsp Using if condition you can select current language and display the rest.


Regards
Juhi


Hi Juhi,

It worked ..!
Thank you..!

Regards,
Vishal
thumbnail
sujay paul,修改在11 年前。

RE: Language Display Customization

Regular Member 帖子: 164 加入日期: 11-10-28 最近的帖子
Hi every body

Please tell me how to find the selected language

Thanks in advance
Hiral Barot,修改在11 年前。

RE: Language Display Customization

New Member 帖子: 17 加入日期: 12-1-3 最近的帖子
Hi Sujay,

You can get it from request :

renderRequest.getLocale();
thumbnail
Juhi Kumari,修改在11 年前。

RE: Language Display Customization (答复)

Expert 帖子: 347 加入日期: 11-12-12 最近的帖子
Hi Sujay,

Get the selected language using themeDisplay object, which is available in all jsp of portal.
themeDisplay.getLocale()


Regards
Juhi
thumbnail
Saikat Saha,修改在11 年前。

RE: Language Display Customization

New Member 帖子: 23 加入日期: 11-11-16 最近的帖子
Thanks to all of you. Its done.
thumbnail
sujay paul,修改在11 年前。

RE: Language Display Customization

Regular Member 帖子: 164 加入日期: 11-10-28 最近的帖子
Thanks Every one.
Its working.