diff --git a/installation/template/index.php b/installation/template/index.php index 303a2152f1641..7e710f78f5d0c 100644 --- a/installation/template/index.php +++ b/installation/template/index.php @@ -54,9 +54,14 @@ // Add strings for installation progress Text::script('INSTL'); +Text::script('INSTL_DATABASE'); Text::script('INSTL_FINISHED'); Text::script('INSTL_IN_PROGRESS'); +Text::script('INSTL_LOGIN_DATA'); +Text::script('INSTL_PAGE_TITLE'); Text::script('INSTL_PROCESS_BUSY'); +Text::script('INSTL_PROGRESS'); +Text::script('INSTL_SETUP_SITE_NAME'); // Load strings for translated messages (directory removal) Text::script('INSTL_REMOVE_INST_FOLDER'); @@ -86,7 +91,7 @@

- +

Joomla! getShortVersion(); ?> diff --git a/installation/tmpl/remove/default.php b/installation/tmpl/remove/default.php index 7cf8182539ee5..f983bfdd43bcc 100644 --- a/installation/tmpl/remove/default.php +++ b/installation/tmpl/remove/default.php @@ -17,6 +17,9 @@ $direction = Factory::getLanguage()->isRtl() ? 'left' : 'right'; /** @var \Joomla\CMS\Installation\View\Remove\HtmlView $this */ +// Add string for title +Text::script('INSTL_COMPLETE_ADD_EXTRA_LANGUAGE'); +Text::script('INSTL_COMPLETE_TITLE'); ?>
diff --git a/media_source/installation/template/js/remove.js b/media_source/installation/template/js/remove.js index 9193841cdfdcd..52b8b5ba8f68c 100644 --- a/media_source/installation/template/js/remove.js +++ b/media_source/installation/template/js/remove.js @@ -5,10 +5,12 @@ */ // Init on dom content loaded event var url = Joomla.getOptions('system.installation').url ? Joomla.getOptions('system.installation').url.replace(/&/g, '&') : 'index.php'; +document.title = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_COMPLETE_TITLE'); if (document.getElementById('installAddFeatures')) { document.getElementById('installAddFeatures').addEventListener('click', function (e) { e.preventDefault(); + document.title = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_COMPLETE_ADD_EXTRA_LANGUAGE'); document.getElementById('installLanguages').classList.add('active'); document.getElementById('automatedUpdates')?.classList?.remove('active'); document.getElementById('installCongrat').classList.remove('active'); @@ -20,6 +22,7 @@ if (document.getElementById('installAddFeatures')) { if (document.getElementById('skipLanguages')) { document.getElementById('skipLanguages').addEventListener('click', function (e) { e.preventDefault(); + document.title = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_COMPLETE_TITLE'); document.getElementById('automatedUpdates')?.classList?.add('active'); document.getElementById('installCongrat').classList.add('active'); document.getElementById('installFinal').classList.add('active'); diff --git a/media_source/installation/template/js/setup.js b/media_source/installation/template/js/setup.js index 73ef5af756a11..669343d118145 100644 --- a/media_source/installation/template/js/setup.js +++ b/media_source/installation/template/js/setup.js @@ -95,6 +95,8 @@ Joomla.checkDbCredentials = function () { document.getElementById('installStep3').classList.remove('active'); document.getElementById('installStep4').classList.add('active'); progress_text.innerText = Joomla.Text._('INSTL_IN_PROGRESS'); + document.getElementById('page-title').innerText = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_PROGRESS'); + document.title = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_PROGRESS'); Joomla.request({ method: 'POST', @@ -170,6 +172,8 @@ Joomla.checkDbCredentials = function () { } Joomla.pageInit(); + document.title = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_SETUP_SITE_NAME'); + document.getElementById('page-title').innerText = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_SETUP_SITE_NAME'); var el = document.querySelector('.nav-steps.hidden'); if (el) { el.classList.remove('hidden'); @@ -220,6 +224,8 @@ Joomla.checkDbCredentials = function () { if (document.getElementById('installStep2')) { document.getElementById('installStep2').classList.add('active'); document.getElementById('installStep1').classList.remove('active'); + document.title = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_LOGIN_DATA'); + document.getElementById('page-title').innerText = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_LOGIN_DATA'); // Focus to the next field if (document.getElementById('jform_admin_user')) { @@ -238,6 +244,8 @@ Joomla.checkDbCredentials = function () { document.getElementById('installStep3').classList.add('active'); document.getElementById('installStep2').classList.remove('active'); document.getElementById('setupButton').classList.remove('hidden'); + document.title = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_DATABASE'); + document.getElementById('page-title').innerText = Joomla.Text._('INSTL_PAGE_TITLE') + ': ' + Joomla.Text._('INSTL_DATABASE'); Joomla.makeRandomDbPrefix();