<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.

$this->passVariablesToJavaScript([
    'URL_SWITCH_DNS_SUBSCRIPTIONS' => $this->urlSwitchDnsSubscriptions,
    'MESSAGE_POPUP_SWITCH_DNS_TITLE_MULTIPLE' => $this->lmsg('popupSwitchDnsTitleMultiple'),
    'MESSAGE_POPUP_SWITCH_DNS_TITLE_SINGLE' => $this->lmsg('popupSwitchDnsTitleSingle'),
    'MESSAGE_POPUP_SWITCH_DNS_BEFORE' => $this->lmsg('popupSwitchDnsBefore'),
    'MESSAGE_POPUP_SWITCH_DNS_RESYNC_BUSINESS_OBJECTS' => $this->lmsg('popupSwitchDnsResyncBusinessObjects'),
    'MESSAGE_POPUP_SWITCH_DNS_RESYNC_FILES' => $this->lmsg('popupSwitchDnsResyncFiles'),
    'MESSAGE_POPUP_SWITCH_DNS_RESYNC_DATABASES' => $this->lmsg('popupSwitchDnsResyncDatabases'),
    'MESSAGE_POPUP_SWITCH_DNS_RESYNC_MAIL' => $this->lmsg('popupSwitchDnsResyncMail'),
    'MESSAGE_POPUP_SWITCH_DNS_BUTTON_OK' => $this->lmsg('popupSwitchDnsButtonOk'),
    'MESSAGE_POPUP_SWITCH_DNS_BUTTON_CANCEL' => $this->lmsg('popupSwitchDnsButtonCancel'),
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
    'dnsSwitchDescription',
    'schedulingButtonTitle',
]);
$this->includeMigratorJavaScript('popup/switch-dns.js');