﻿function scwSetLanguage() {
    switch (LANGUAGE_FLAG) {
        case 2:
            scwToday = 'Today:';
            scwClear = 'Clear';
            scwDrag = 'click here to drag';
            scwArrMonthNames = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun',
                                           'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'];
            scwArrWeekInits = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
            scwInvalidDateMsg = 'The entered date is invalid.\n';
            scwOutOfRangeMsg = 'The entered date is out of range.';
            scwDoesNotExistMsg = 'The entered date does not exist.';
            scwInvalidAlert = ['Invalid date (', ') ignored.'];
            scwDateDisablingError = ['Error ', ' is not a Date object.'];
            scwRangeDisablingError = ['Error ', ' should consist of two elements.'];
            break;
        default:
            scwToday = 'Today:';
            scwClear = 'Clear';
            scwDrag = 'click here to drag';
            scwArrMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                                       'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
            scwArrWeekInits = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
            scwInvalidDateMsg = 'The entered date is invalid.\n';
            scwOutOfRangeMsg = 'The entered date is out of range.';
            scwDoesNotExistMsg = 'The entered date does not exist.';
            scwInvalidAlert = ['Invalid date (', ') ignored.'];
            scwDateDisablingError = ['Error ', ' is not a Date object.'];
            scwRangeDisablingError = ['Error ',
                                       ' should consist of two elements.'];
    }
}
