Forums de discussion
Change default language flag icon
Pierre-Olivier Kaplan, modifié il y a 9 années.
Change default language flag icon
New Member Publications: 10 Date d'inscription: 06/10/14 Publications récentes
Hello dear developpers.
I'm trying to change the default english from the Language portlet.
Actually, I want to replace the US flag by the british flag for the english language.
Is there a simple way to proceed ?
Thank you, best regards !
Pierre-Olivier
I'm trying to change the default english from the Language portlet.
Actually, I want to replace the US flag by the british flag for the english language.
Is there a simple way to proceed ?
Thank you, best regards !
Pierre-Olivier
Pankaj Kathiriya, modifié il y a 9 années.
RE: Change default language flag icon
Liferay Master Publications: 722 Date d'inscription: 05/08/10 Publications récentes
This language flag images are coming from path portal-web\docroot\html\themes\_unstyled\images\language.
So in your theme you can replace this image keeping british flag by name as en_US.png under your custom theme's images\language folder.
HTH
So in your theme you can replace this image keeping british flag by name as en_US.png under your custom theme's images\language folder.
HTH
Sven Werlen, modifié il y a 9 années.
RE: Change default language flag icon
Regular Member Publications: 117 Date d'inscription: 25/02/09 Publications récentes
en_GB flag is already included in Liferay (at least in 6.2)!
If you get US flag, it's because you configured Liferay to use en_US language by default.
Make sure that your portal-ext.properties contains the following lines:
See documentation.
WARNING: languages should be set from the beginning when you first create your portal! If your database has already been initialized with en_US, you cannot easily switch to en_GB without impacts.
If you get US flag, it's because you configured Liferay to use en_US language by default.
Make sure that your portal-ext.properties contains the following lines:
- locales=en_GB, ...
- locales.enabled=en_GB, ...
See documentation.
WARNING: languages should be set from the beginning when you first create your portal! If your database has already been initialized with en_US, you cannot easily switch to en_GB without impacts.
Pierre-Olivier Kaplan, modifié il y a 9 années.
RE: Change default language flag icon
New Member Publications: 10 Date d'inscription: 06/10/14 Publications récentes
Thank both of you,
Yes I already initialized my database, so the only solution was to custom the sprites.
But I'll know for the next time
Yes I already initialized my database, so the only solution was to custom the sprites.
But I'll know for the next time