/// <reference path="Mediasite.Core.js"/>
/*global Mediasite*/
if (typeof Mediasite === "undefined" || !Mediasite) {
    var Mediasite = {};    
    Mediasite.namespace = function () {
        var a = arguments, o = null, i, j, d;
        for (i = 0; i < a.length; i = i + 1) {
            d = (a[i].toString()).split(".");
            o = Mediasite;

            for (j = (d[0] === "Mediasite") ? 1 : 0; j < d.length; j = j + 1) {
                o[d[j]] = o[d[j]] || {};
                o = o[d[j]];
            }
        }
        return o;
    };
}

Mediasite.namespace('Player.Localization');

Mediasite.Player.Localization.Common = {
    Slide: 'Slide',
    OK: 'OK',
    Of: 'of',
    Send: 'Send',
    Search: 'Search',
    PreviousSlide: 'Previous Slide',
    NextSlide: 'Next Slide',
    Language: 'Language',
    AudioTrack: 'Audio Track',
    Expand: 'Expand',
    Collapse: 'Collapse',
    SlideShow: 'Slide Show',
    SlideList: 'Slide List',
    Close: 'Close',
    Chapter: 'Chapter',
    Volume: 'Volume',
    Position: 'Position',
    PlaybackRate: 'Playback Rate',
    Hour: 'Hour',
    Hours: 'Hours',
    Minute: 'Minute',
    Minutes: 'Minutes',
    Second: 'Second',
    Seconds: 'Seconds',
    GeneralErrorTitle: 'Mediasite Player Error',
    AsyncCommunicationError: 'An error occurred communicating with the server',
    ManifestLoadErrorTitle: 'Manifest Load Error',
    ManifestLoadErrorDetail: 'The manifest for this presentation failed to load',
    PopupsBlocked: 'Your browser appears to be blocking pop-up windows. Please enable pop-ups and reload this page.'
};

Mediasite.Player.Localization.Buttons = {
    ShowPolls: 'Show Polls',
    Ask: 'Ask a Question',
    Email: 'Share Presentation',
    Chapters: 'Chapters',
    Links: 'Presentation Links',
    PreviousSlide: 'Previous Slide',
    NextSlide: 'Next Slide',
    FirstSlide: 'First Slide',
	LastSlide: 'Last Slide',
    Close: 'Close this Window',
    FullScreen: 'Full Screen',
    Help: 'Help',
    MaxSlide: 'Show Original Size Slideshow',
    Polls: 'View Polls',
    Skipback: 'Skip Back',
    Stop: 'Stop',
    Mute: 'Mute',
    UnMute: 'Mute Off',
    Play: 'Play',
    Pause: 'Pause',
    CurrentSlide: 'Slide Image',
    Navigate: 'Navigate',    
    PlayFaster: 'Play Faster',
    PlaySlower: 'Play Slower',
	PlaybackRate: 'Adjust Playback Rate',
    ShowCaptioning: 'Show Captioning',
    HideCaptioning: 'Hide Captioning',
    ShowCaptionSearch: 'Search Slides and Closed Captioning',
    HideCaptionSearch: 'Hide Slides and Closed Caption Search',
    Info: 'Info',
	PopOut: 'Pop Out',
    ScreenReaderPrompt: 'To view this presentation using the screen reader-compatible player, please press ctrl + z.'
};

Mediasite.Player.Localization.CurrentSlide = {
    SlideImage: 'Slide Image',
    ShowFullSize: 'Show Original Size Slide Show',
    ShowSlideMagnifier: 'Show Slide Magnifier',
    HideSlideMagnifier: 'Hide Slide Magnifier',
    PresentationHasEnded: 'This presentation has ended',
    SlideNumber: 'Slide %%0%%',
    SlideNumberOfTotal: 'Slide %%0%% of %%1%%'
};

Mediasite.Player.Localization.AskQuestion = {
    AskButton: 'Ask Question',
    Subject: 'Subject:',
    Question: 'Question:',
    Name: 'Name:',
    Email: 'Email:',
    Time: 'Time:',
    TimeFormat: 'HH:MM:SS',
    SendSuccessTitle: 'Question Sent',
    SendSuccessDetail: 'Your question has been sent.',
    SendFailureTitle: 'Send Error',
    SendFailureDetail: 'There was a problem sending your question.  Please try again.',
    EmailInvalid: 'The email addresses you entered appears to be invalid',
    ValidationError: 'Please correct the following errors:',
    NameRequired: 'Enter your name',
    QuestionRequired: 'Enter a question for the presenter',
    QuestionTimeError: 'Enter a valid time in the presentation',
    TimeFormatError: 'Enter a start time in HH:MM:SS format',
    SubjectRequired: 'Enter a subject for your question'
};

Mediasite.Player.Localization.ccSearch = {
    Header: "Search Slides and Closed Captions",
    Search: "Search this presentation's slides and closed caption text",
	SearchButton: "Search",
	SearchTotal: "results for",
	CurrentlySearching: 'Searching for',
    CaptionResult: "Closed caption",
    OcrTextResult: "Slide",
    SearchHitsInItem: "results",
    SlideSearchResult: "[Search result in slide text.]"
};

Mediasite.Player.Localization.Email = {
    From: 'From:',
    To: 'To:',
    ToSeparator: 'Separate addresses with a semi-colon.',
    Subject: 'Subject:',
    Message: 'Message:',
    ReturnTitle: 'Share Presentation Message',
    Time: 'Start Time:',
    TimeFormat: 'HH:MM:SS',
    UseClient: 'Use Email Client',
    ValidationError: 'Please correct the following errors:',
    SubjectRequired: 'Enter a subject for your invite',
    MessageRequired: 'Enter a message for your invite',
    SendErrorTitle: 'Email Error',
    SendSuccessTitle: 'Email Sent',
    InviteInvalid: 'One of the email addresses you entered appears to be invalid.  Please check them and try again.',
    TimeInvalid: 'Enter a valid time in the presentation',
    TimeFormatError: 'Enter a start time in HH:MM:SS format'
};

Mediasite.Player.Localization.FullSize = {
    AutoRefresh: 'AutoRefresh',
    PlayFromSlide: 'Play From This Slide',
    RefreshNow: 'Refresh Now'
};

Mediasite.Player.Localization.LiveIndicator = {
    WaitingTooltip: 'Waiting for Presentation to Begin',
    LiveTooltip: 'Live Broadcast',
    EndedTooltip: 'Broadcast has Ended',
    OnDemandTooltip: 'Previously Recorded',
    PausedTooltip: 'Recording is Paused'
};

Mediasite.Player.Localization.MediaPlayer = {
    ErrorTitle: 'Media Error',
    GeneralError: 'An error occurred while attempting to play the media for this presentation.',
    FileNotFoundError: 'The media file for this presentation could not be found.',
    NoCompatibleMediaError: 'No compatible media was found for this presentation.',
    ServerConnectionError: 'Unable to connect to the media server. Reloading the presentation may resolve this problem.',
    SilverlightLoadErrorNonAsciiPath: 'The presentation could not be loaded because of non-Latin characters in the file or folder names. Loading the presentation in a different browser, such as Internet Explorer, may resolve this problem.',
    ServerNotAvailable: 'Unable to play the presentation due to a media server error.  Reloading the presentation may resolve this problem.',
    SilverlightNetworkError: 'Unable to play the presentation. The media server may not be available or the media stream format may not be supported.',
    SilverlightSetValueError: 'Unable to set the following value for this presentation: ',
    SilverlightFullScreenPrompt: 'Click for full-screen mode',
    ClipEnded: '(Clip Ended)',

    State: {
        Undefined: 'Undefined State',
        Stopped: 'Stopped',    
        Paused: 'Paused',
        Playing: 'Playing',
        ScanForward: 'Fast Forward',
        ScanReverse: 'Rewind',
        Buffering: 'Buffering',
        Waiting: 'Waiting',
        MediaEnded: 'Media Ended',
        Transitioning: 'Transitioning',
        Ready: 'Ready',
        Reconnecting: 'Reconnecting',
        Closed: 'Closed',
        Error: 'Error',
        Opening: 'Opening',
        Unknown: 'Unknown State'
    }
};

Mediasite.Player.Localization.PlayerLayout = {
    AudioOnly: 'Audio-only Presentation',
    NotStarted: 'The presentation has not started'
};


Mediasite.Player.Localization.PresentationCard = { 
    Presenters: 'Presenters:',
    Description: 'Description:',
    AirDate: 'Date:',
    AirTime: 'Time:',
    Duration: 'Length:',
    DefaultTitle: 'Mediasite Presentation',
    DefaultDescription: 'Presentation Description',
    More: 'More...'
};


Mediasite.Player.Localization.Thumbnails = {
    SlideList: 'Slide List',
    SmallThumbnails: 'Small Thumbnails',
    StandardThumbnails: 'Thumbnails',
    LargeThumbnails: 'Large Thumbnails',
    Chapters: 'Chapters',
    PreviewSlide: 'Preview this slide',
    PreviewSlidePopout: 'Preview this slide in another window',
    PlayFromSlide: 'Play from this slide',
    ExpandSlides: 'Click to Expand Slide Group',
    CollapseSlides: 'Click to Collapse Slide Group',
    Page: 'Page',
    Of: 'of',
    Previous: 'Previous',
    Next: 'Next'
};


Mediasite.Player.Localization.ScreenReader = {   
    MediaControls: 'Media Controls',
    PlaybackRate: 'Playback Rate',
    VolumeIncrease: 'Increase Volume',
    VolumeDecrease: 'Decrease Volume',
    UseCurrentTime: 'Use current time',
    SendQuestion: 'Send Question',
    SendEmail: 'Send Email',
    ShareUsingEmailClient: 'Share this presentation using your preferred email application',
    StandardPlayerPrompt: 'To view this presentation using the standard player, please press ctrl + z.'
};

Mediasite.Player.Localization.MiniPlayer = {
    ShowVideo: 'Show Video',
    ShowSlide: 'Show Slide'
};

Mediasite.Player.Localization.PipPlayer = {
	SwapMediaElements: 'Swap Media Elements'
};

Mediasite.Player.Localization.SlidePlayer = {
    NoSlides: 'No Slides'
};

Mediasite.Player.Localization.NewStandardPlayer = {
    DefaultSlideTitleFormat: 'Slide %%0%%'
};

Mediasite.Player.Localization.ClassicPlayer = {
    CloseSlideZoom: "(close)"
};

Mediasite.Player.Localization.SlideNav = {
    ExpandStack: 'Click to Expand Slide Group',
    CollapseStack: 'Click to Collapse Slide Group'
};
