Multi-Language
To use multi-language Header Image files and to allow the module automatic selection of these files based on the current displayed site language, following preparation is required:
- Set the ISO-Code for your sites default language in your Administration-Backend through “Site → Global Configuration”
We now assume the ISO-Code for your site is “en_EN” for English and that we use the full 4-letter ISO-Code.
- Install and prepare JoomFish to have your site in multiple languages, also use the ISO-Codes for the additional languages. We now assume that you have a second language, “ge_DE” for German and that we use the full 4-letter ISO-Code.
- Create in the folders where your header files and random files are located one additional subfolder for each of the language codes you have now.
- Localize your header and random files and store them in the respective localized subfolders, use the same filename according to Header Image naming convention (described here in General overview and Guide). Now the module is able to select localized versions of you header files based on the language settings of the browser or the current selected site language through Joom-Fish.
Example:
For your header files:
/images/headers/ /images/headers/en_en/ /images/headers/ge_de/
For your random header files:
/images/randoms/ /images/randoms/en_en/ /images/randoms/ge_de/
ALWAYS make sure that you have a localized version of your DEFAULT IMAGE FILE in the localized folders. If the module does not find a localized version of your default image file, localization is not performed by default. If the module does not find a localized subfolder for the header files or the random files, the respective localization is turned off as well and the files from the defined folders are used.