Hi all.
I have several sites (6 classic) with p.a.multilingual and the brazilian flag show up like these:
I’ve found the correct flag in staticresources:
But I can’t figure out why is wrong here. Any thoughts?
Hi all.
I have several sites (6 classic) with p.a.multilingual and the brazilian flag show up like these:
I’ve found the correct flag in staticresources:
But I can’t figure out why is wrong here. Any thoughts?
It looks like there’s something wrong in the SVG with the white ribbon “ordem e progresso” inside the blue circle. The original SVG is indeed correct https://classic.demo.plone.org/++plone++country-flag-icons/br.svg …
Currently all flags are loaded from GitHub - hampusborgos/country-flags: SVG and PNG renders of all countries' flags. and the registry files are generated here plone.staticresources/src/plone/staticresources/_scripts/register_flag_icons.py at master · plone/plone.staticresources · GitHub
Update: I’ve checked the SVG source and saw, that we have an “id stripper” method before delivering the source via @@iconresolver Products.CMFPlone/src/Products/CMFPlone/browser/icons.py at master · plone/Products.CMFPlone · GitHub
When deactivating this _strip_id SVG_MODIFIER the icon shows up correct.
@agitator @jensens do you eventually know why we added this id stripper to the icon resolver?
EDIT:
you could patch this global in your addon like this:
from Products.CMFPlone.browser import icons
if "strip_id" in icons.SVG_MODIFIER:
del icons.SVG_MODIFIER["strip_id"]
thanks for the patch @petschki, worked like a charm.