My problem is how to add new language like thailand language in liferay 7
.
When I inspect the existing flag I see that the image is not png but it is svg, but
Assuming that you have followed all the steps in this Liferay blog, adding the flag in Liferay 7 requires:
Create a new theme, or modify existing theme to :
images\lexicon\flags-xx-YY.svg
(where xx-YY is your locale, case-sensitive)open the file icons.svg
in the same folder and add your flag SVG elements as a symbol
among the other symbol elements:
</symbol><symbol id="xx-yy" viewBox="0 0 512 512">
<rect y="64" fill="#B0BEC9" width="512" height="384"/>
<rect x="16" y="80" width="480" height="352" fill="#fff"/>
<rect ..... />
<circle .... />
</symbol><symbol id="zh-cn" viewBox="0 0 512 512">
Deploy, or re-deploy, the theme and choose it as the active theme for the pages you want.
Clear the browser cache if needed.