I want to display my custom flags images at the language switcher module. How can I replace the default flags of the module?
Actually the language siwtcher module gets the flags images from the directory
We can define which image should be used for each language, when creating/editing the Content Languages in Language Manager, through the Image Prefix selection.
According to the instructions that appear when hovering the field:
Prefix of the image file for this language when using the "Use image flags" Language Switcher basic option. Example: if 'en' is chosen, then the image shall be en.gif. Images and CSS for this module are in media/mod_languages/
What does this say?
That the Flags images should be in .gif format and uploaded in the mentioned directory.
There is no need to replace existing images as we can use any prefix we like for our flags.
The custom flags would be available in the Edit Content Language layout, and we can search for them by typing the prefix we gave them.