How we can remove "Set English (United States) as your preferred language"?

thumbnail
Jamie Sammons, modified 4 Years ago. Expert Posts: 350 Join Date: 7/3/05 Recent Posts

In the portal virtual instance the Default Language is  English (United States) or other language.

For example a User changes his preferred language to English (United Kingdom) or other language different from the portal instance Default Language.

From now on the bottom of every page he see the message "This page is displayed in English (United States). Set English (United States) as your preferred language."

Note that this message appears also in pages without Web Contents, for example seeing his Account Settings or other portlets.

How we can change the above settings without get the alert message?


​​​​​​​

 

thumbnail
Mohammed Yasin, modified 4 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts

Hi ,

You may need to override user_locale_options.jsp located inside tomcat under  "/webapps/ROOT/html/common/themes", it checks the current locale with user's locale and popup message if its different.

You can override using Custom JSP Bag Refer  

Refer the Example