Plugin Directory

Changeset 1884715


Ignore:
Timestamp:
05/31/2018 09:21:38 AM (8 years ago)
Author:
basticom
Message:

Final version - fixed multilanguage support

Location:
basticom-framework
Files:
4 edited
13 copied

Legend:

Unmodified
Added
Removed
  • basticom-framework/tags/1.5.0/admin/modules/bstcmfw-cookie.php

    r1884676 r1884715  
    99     $bstcmfw_cookie_lang = ICL_LANGUAGE_CODE;
    1010} else {
    11     $bstcmfw_cookie_lang = get_bloginfo('language');
     11    $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    1212}
    1313
     
    103103        $bstcmfw_cookie_lang = $_POST['cookie_lang'];
    104104    } else {
    105         $bstcmfw_cookie_lang = get_bloginfo('language');
     105        $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    106106    }
    107107
  • basticom-framework/tags/1.5.0/admin/modules/templates/bstcmfw-embed-consent.php

    r1884676 r1884715  
    1111            $bstcmfw_cookie_lang = ICL_LANGUAGE_CODE;
    1212        } else {
    13             $bstcmfw_cookie_lang = get_bloginfo('language');
     13            $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    1414        }
    1515    ?>
  • basticom-framework/tags/1.5.0/basticom-framework.php

    r1884676 r1884715  
    44Plugin URI: https://www.basticom.nl
    55Description: WordPress framework
    6 Version: 1.4.9
     6Version: 1.5.0
    77Author: Basticom
    88Author URI: http://www.basticom.nl
     
    5555
    5656// If WPML is found, use the WPML language setting.
    57 // Else use the default language: NL
     57// Else use the default site language
    5858global $bstcmfw_cookie_lang;
    5959
     
    6161     $bstcmfw_cookie_lang = ICL_LANGUAGE_CODE;
    6262} else {
    63     $bstcmfw_cookie_lang = 'nl';
     63    $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    6464}
    6565
  • basticom-framework/tags/1.5.0/readme.txt

    r1884676 r1884715  
    8383= 1.4.9 =
    8484* Small improvements
     85
     86= 1.5.0 =
     87* Improved multilingual support
  • basticom-framework/trunk/admin/modules/bstcmfw-cookie.php

    r1884676 r1884715  
    99     $bstcmfw_cookie_lang = ICL_LANGUAGE_CODE;
    1010} else {
    11     $bstcmfw_cookie_lang = get_bloginfo('language');
     11    $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    1212}
    1313
     
    103103        $bstcmfw_cookie_lang = $_POST['cookie_lang'];
    104104    } else {
    105         $bstcmfw_cookie_lang = get_bloginfo('language');
     105        $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    106106    }
    107107
  • basticom-framework/trunk/admin/modules/templates/bstcmfw-embed-consent.php

    r1884676 r1884715  
    1111            $bstcmfw_cookie_lang = ICL_LANGUAGE_CODE;
    1212        } else {
    13             $bstcmfw_cookie_lang = get_bloginfo('language');
     13            $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    1414        }
    1515    ?>
  • basticom-framework/trunk/basticom-framework.php

    r1884676 r1884715  
    44Plugin URI: https://www.basticom.nl
    55Description: WordPress framework
    6 Version: 1.4.9
     6Version: 1.5.0
    77Author: Basticom
    88Author URI: http://www.basticom.nl
     
    5555
    5656// If WPML is found, use the WPML language setting.
    57 // Else use the default language: NL
     57// Else use the default site language
    5858global $bstcmfw_cookie_lang;
    5959
     
    6161     $bstcmfw_cookie_lang = ICL_LANGUAGE_CODE;
    6262} else {
    63     $bstcmfw_cookie_lang = 'nl';
     63    $bstcmfw_cookie_lang = substr(get_locale(), 0, 2);
    6464}
    6565
  • basticom-framework/trunk/readme.txt

    r1884676 r1884715  
    8383= 1.4.9 =
    8484* Small improvements
     85
     86= 1.5.0 =
     87* Improved multilingual support
Note: See TracChangeset for help on using the changeset viewer.