public/assets/js/custom_js/HaseLanguageDropDown.js
/**
 * Read cookie for get language name for set language for translator.
 * @param string languageCodeName
 * @returns string languageName
 */
Read cookie for get language name for set language for translator.
@param string languageCodeName
@returns string languageName
Read cookie for get language name for set language for translator . @param string languageCodeName @returns string languageName
function readLanguageNameCookie(languageCodeName) {
    var cookieNameValue = languageCodeName + userLanguageList.EQUAL_SEPARATOR;
    var cookieName = document.cookie.split(userLanguageList.SEMICOLON_SIGN);
    for (var cookieCounter = userLanguageList.COUNTER_VALUE; cookieCounter < cookieName.length; cookieCounter++) {
        var languageName = cookieName[cookieCounter];
        while (languageName.charAt(userLanguageList.COUNTER_VALUE) == userLanguageList.WHITESPACE_LANGUAGE_NAME) languageName = languageName.substring(userLanguageList.LANGUAGE_SUBSTRING_VALUE, languageName.length);
        if (languageName.indexOf(cookieNameValue) == userLanguageList.COUNTER_VALUE) {
            return languageName.substring(cookieNameValue.length, languageName.length);
        }
    }
}
function readLanguageNameCookie ( languageCodeName ) { var cookieNameValue = languageCodeName + userLanguageList . EQUAL_SEPARATOR ; var cookieName = document . cookie . split ( userLanguageList . SEMICOLON_SIGN ) ; for ( var cookieCounter = userLanguageList . COUNTER_VALUE ; cookieCounter < cookieName . length ; cookieCounter ++ ) { var languageName = cookieName [ cookieCounter ] ; while ( languageName . charAt ( userLanguageList . COUNTER_VALUE ) == userLanguageList . WHITESPACE_LANGUAGE_NAME ) languageName = languageName . substring ( userLanguageList . LANGUAGE_SUBSTRING_VALUE , languageName . length ) ; if ( languageName . indexOf ( cookieNameValue ) == userLanguageList . COUNTER_VALUE ) { return languageName . substring ( cookieNameValue . length , languageName . length ) ; } } }
Read cookie for get language name for set language for translator.
Read cookie for get language name for set language for translator .