RE: How to remove the language/flags in Brochure theme

1596655, modified 17 Years ago. New Member Posts: 20 Join Date: 11/18/08 Recent Posts
Hi Everyone,

May I know who has idea on how to removing the Flags/Language sle in brocure theme? I need to remove these buttons because we don't need that.

Thanks,

Joe
1596655, modified 17 Years ago. New Member Posts: 20 Join Date: 11/18/08 Recent Posts
Any idea??? badly needed...

Thanks.

joe a riel:
Hi Everyone,

May I know who has idea on how to removing the Flags/Language sle in brocure theme? I need to remove these buttons because we don't need that.

Thanks,

Joe
thumbnail
34461, modified 17 Years ago. Liferay Master Posts: 546 Join Date: 8/8/07 Recent Posts
Hi,

do you want to remove the images only, or do you want to remove the unneccessary languages?

You can set the allowed languages in portal-ext.properties:
locales=en_US


kind regards
Tobias
1596655, modified 17 Years ago. New Member Posts: 20 Join Date: 11/18/08 Recent Posts
Hi Tobias,

Thanks for your reply. I just need to remove the images.

I'm using CentOS and I tried to find the portal-ext.properties but no luck. Do you know where it resides?

Thanks,

Joe
thumbnail
34461, modified 17 Years ago. Liferay Master Posts: 546 Join Date: 8/8/07 Recent Posts
Hi,

the portal-ext.properties file is used to override settings which are made (by default) in portal-impl.jar/portal.properties. If you want to override settings, you need to create that (text)-file on your own. You can put it in ROOT/WEB-INF/classes.

If you want to remove the images... search them and delete them.

kind regards
Tobias
thumbnail
3145097, modified 16 Years ago. Junior Member Posts: 32 Join Date: 5/20/09 Recent Posts
Hi there! I'm using Liferay 5.2 and I wanna know if there is some other way than to remove all the flag images. Anything more professional and smart?

Thanks!
thumbnail
4295910, modified 16 Years ago. New Member Post: 1 Join Date: 11/19/09 Recent Posts
hi
actually you should do both to remove the flags first you need to go to
"liferayhome\tomcat-6.0.18\webapps\ROOT\WEB-INF\classes\portal-ext.properties"
if you don t have it yet create a regular document text and name it portal-ext.properties
and put this text on it
1locales=en_US(change the en_US according to what language you want to keep on your portal)
then go to
"liferayhome\tomcat-6.0.18\webapps\liferay-jedi-theme\images\language"
and delete all the images from it

and you need to restart your server
i hope its helpeful
thumbnail
682861, modified 16 Years ago. Liferay Legend Posts: 1228 Join Date: 4/14/08 Recent Posts
If you just delete images, browsers will start giving you a headache, a proper way is to modify a theme:

- inside war file, find file templates/portal-normal.vm
- substitute the following piece of code:

	<div id="footer">
		<div class="language">$theme.language()</div>
	</div>

with our own code, make sure that your footer text is properly styled to be visible on dark background:

	<div id="footer">
		this is my footer
	</div>

- save portal-normal.vm back into war file
- deploy updated theme to your portal
- no portal restart will be required