Foren
Add flag icons
Patricia Hevia, geändert vor 6 Jahren.
Add flag icons
Junior Member Beiträge: 69 Beitrittsdatum: 24.03.11 Neueste Beiträge
Hello,
I am working with Liferay DXP. I would like to add some flag icons to some languages. In Liferay 6.2 I know that I can do it with a hook which adds the flags icons in the control-panel theme and/or classic-theme.
Someone know how to do it in Liferay DXP?.
Thank you very much.
Regards,
Patricia
I am working with Liferay DXP. I would like to add some flag icons to some languages. In Liferay 6.2 I know that I can do it with a hook which adds the flags icons in the control-panel theme and/or classic-theme.
Someone know how to do it in Liferay DXP?.
Thank you very much.
Regards,
Patricia
Samuel Kong, geändert vor 6 Jahren.
RE: Add flag icons
Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Patricia Hevia, geändert vor 6 Jahren.
RE: Add flag icons
Junior Member Beiträge: 69 Beitrittsdatum: 24.03.11 Neueste Beiträge
Thank you for your reply!
However, I cannot create a new theme because the control panel uses the admin-theme and I want to show the flag icons in the control panel. For instance, I would like using the flag icon in web content localization.
How could I do this? Is it possible to do it in Liferay DXP?
Thank you very much.
However, I cannot create a new theme because the control panel uses the admin-theme and I want to show the flag icons in the control panel. For instance, I would like using the flag icon in web content localization.
How could I do this? Is it possible to do it in Liferay DXP?
Thank you very much.
Massimo Bevilacqua, geändert vor 6 Jahren.
RE: Add flag icons
Regular Member Beiträge: 210 Beitrittsdatum: 27.12.16 Neueste Beiträge
HI,
it seems Liferay 7 uses lexicon flag icons instead images(as liferay 6 do):
Unfortunately Swiss flag doesn't exist (here you can find the available flag icons): icons-lexicon
it seems Liferay 7 uses lexicon flag icons instead images(as liferay 6 do):
<svg class="lexicon-icon lexicon-icon-de-de" focusable="false" role="img" title="" message="Deutsch" viewbox="0 0 512 512"></svg>
Unfortunately Swiss flag doesn't exist (here you can find the available flag icons): icons-lexicon
Patricia Hevia, geändert vor 6 Jahren.
RE: Add flag icons
Junior Member Beiträge: 69 Beitrittsdatum: 24.03.11 Neueste Beiträge
Thank you for your answer!
Do you know how to add a new language to Liferay DXP?.
Thanks!.
Regards
Do you know how to add a new language to Liferay DXP?.
Thanks!.
Regards
Massimo Bevilacqua, geändert vor 6 Jahren.
RE: Add flag icons
Regular Member Beiträge: 210 Beitrittsdatum: 27.12.16 Neueste Beiträge
I never did it, I searched on google but I didn't find nothing...sorry
Patricia Hevia, geändert vor 6 Jahren.
RE: Add flag icons
Junior Member Beiträge: 69 Beitrittsdatum: 24.03.11 Neueste Beiträge
Thank you very much!
Eduardo P. García, geändert vor 3 Jahren.
RE: Add flag icons
Regular Member Beiträge: 157 Beitrittsdatum: 16.03.12 Neueste Beiträge
Hi Patricia,
Here you have an answer by Miroslav Ligas to a similar question. In this answer, he includes an example to customize the Admin Theme to add the Welsh flag.
So the steps to add a custom language and flag are:
1. Add the ISO 639-1 language code to the locales.enabled list in portal-ext.properties (in your case, de_CH)
2. Customize the admin-theme (and any other where you want your flag to be visible) as explained by Miroslav, adding the right icons: src/images/lexicon/flags-de-CH.svg and src/images/language/de_CH.png
Let me know if this works!
Regards
Here you have an answer by Miroslav Ligas to a similar question. In this answer, he includes an example to customize the Admin Theme to add the Welsh flag.
So the steps to add a custom language and flag are:
1. Add the ISO 639-1 language code to the locales.enabled list in portal-ext.properties (in your case, de_CH)
2. Customize the admin-theme (and any other where you want your flag to be visible) as explained by Miroslav, adding the right icons: src/images/lexicon/flags-de-CH.svg and src/images/language/de_CH.png
Let me know if this works!
Regards
Palak Chordiya, geändert vor 3 Jahren.
RE: Add flag icons
New Member Beiträge: 6 Beitrittsdatum: 06.04.20 Neueste Beiträge
Hi,Eduardo P. Garcia
i have added the new language, however i am unable to add image along with new language.i did all step which you have shared, but still not able to see the image.please help me on this.
i have added the new language, however i am unable to add image along with new language.i did all step which you have shared, but still not able to see the image.please help me on this.