Foren

How to remove the language/flags in Brochure theme

joe a riel, geändert vor 15 Jahren.

How to remove the language/flags in Brochure theme

New Member Beiträge: 20 Beitrittsdatum: 18.11.08 Neueste Beiträge
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
joe a riel, geändert vor 15 Jahren.

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

New Member Beiträge: 20 Beitrittsdatum: 18.11.08 Neueste Beiträge
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
Tobias Amon, geändert vor 15 Jahren.

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

Liferay Master Beiträge: 546 Beitrittsdatum: 08.08.07 Neueste Beiträge
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
joe a riel, geändert vor 15 Jahren.

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

New Member Beiträge: 20 Beitrittsdatum: 18.11.08 Neueste Beiträge
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
Tobias Amon, geändert vor 15 Jahren.

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

Liferay Master Beiträge: 546 Beitrittsdatum: 08.08.07 Neueste Beiträge
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
Anne D C, geändert vor 14 Jahren.

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

Junior Member Beiträge: 32 Beitrittsdatum: 20.05.09 Neueste Beiträge
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
Ntissar el allali, geändert vor 14 Jahren.

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

New Member Beitrag: 1 Beitrittsdatum: 19.11.09 Neueste Beiträge
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
Victor Zorin, geändert vor 14 Jahren.

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

Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
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