internationalization add-on : changing flag image size

Permalink 1 user found helpful
Hi

I'm using the internationalization add-on, and I would like to change the css properties (size , position ...) of the flag icons in the template . where can i find the file that edits them?

thanks in advance
diana

DianaAyub
View Replies: View Best Answer
DianaAyub replied on at Permalink Reply
DianaAyub
anyone?
PatrickHeck replied on at Permalink Best Answer Reply
PatrickHeck
The flag images are in
multilingual/images/flags/
The size is controlled in
multilingual/helpers/interface/flag.php
CSS for the block is defined in
multilingual/blocks/switch_language/templates/flags/view.css

Hope that helps
Patrick
DianaAyub replied on at Permalink Reply
DianaAyub
Hi! thanks for answering... where exactly in multilingual/helpers/interface/flag.php should I place the size? because it's not already there:

defined('C5_EXECUTE') or die("Access Denied.");
Loader::model('section', 'multilingual');
class InterfaceFlagHelper {
   /** 
    * Returns a flag for a passed country/region
    */
   public function getFlagIcon($region, $filePathOnly = false) {
      if ($region) {
         $region = strtolower($region);
         if (file_exists(DIR_BASE . '/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png')) {
            $icon = REL_DIR_FILES_LANGUAGE_ICONS . '/' . $region . '.png';
         } else if (file_exists(DIR_PACKAGES_CORE . '/multilingual/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png')) {
            $icon = ASSETS_URL . '/' . DIRNAME_PACKAGES . '/multilingual/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png';
         } else {
            $icon = DIR_REL . '/' . DIRNAME_PACKAGES . '/multilingual/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png';
PatrickHeck replied on at Permalink Reply
PatrickHeck
Try to adjust this line
return '<img class="ccm-region-flag" id="ccm-region-flag-' . $region . '" width="16" height="16" src="' . $icon . '" alt="' . $region . '" />';

to the actual width and height you gave your new icon images.
DianaAyub replied on at Permalink Reply
DianaAyub
i can't believe i didn't see that! :D thankyou so much!