掲示板

adding a flag into liferay 7

thumbnail
7年前 に Miroslav Ligas によって更新されました。

adding a flag into liferay 7

New Member 投稿: 17 参加年月日: 12/02/23 最新の投稿
Hi I'm trying to add a new flag to Liferay 7.

I configured to add a new language with a new language code that was not present yet. Now I need to fix the flags to appear.

I could add a section into icons.svg and drop in a new flag png but I'm looking into a nicer way so I can get the flag everywhere.

I'm thinking about hooking this and pushing the flag into the core but when I look at the source code. I can't find the lexicon folder with the flag svg files anywhere.
Also if I put just a svg flag file into my custom theme it does not get pulled in into the icons.svg

Any ideas?
thumbnail
7年前 に Miroslav Ligas によって更新されました。

RE: adding a flag into liferay 7 (回答)

New Member 投稿: 17 参加年月日: 12/02/23 最新の投稿
I solved it by creating a custom theme builder that uses code from the lexicon to build the svg icons.

The code can be found here https://github.com/mir333/liferay-theme-tasks/commit/a3908498c5698a71ba5ca25dd9b994a1565c6879

I created also an admin theme to get these changes to the control panel