diff --git a/components/com_config/src/View/Modules/HtmlView.php b/components/com_config/src/View/Modules/HtmlView.php index 832c8298aa28b..8b8345bbb06e1 100644 --- a/components/com_config/src/View/Modules/HtmlView.php +++ b/components/com_config/src/View/Modules/HtmlView.php @@ -97,6 +97,8 @@ public function display($tpl = null) protected function _prepareDocument() { // There is no menu item for this so we have to use the title from the component - $this->setDocumentTitle(Text::_('COM_CONFIG_MODULES_SETTINGS_TITLE')); + $this->setDocumentTitle( + Text::_('COM_CONFIG_MODULES_SETTINGS_TITLE') . ': ' . $this->item['title'] + ); } } diff --git a/components/com_config/tmpl/modules/default.php b/components/com_config/tmpl/modules/default.php index d8a81b6948eba..512b95087e371 100644 --- a/components/com_config/tmpl/modules/default.php +++ b/components/com_config/tmpl/modules/default.php @@ -45,7 +45,7 @@
- + item['title']; ?>
diff --git a/installation/template/index.php b/installation/template/index.php index b11dec7fee0fe..4b9ad57b821c2 100644 --- a/installation/template/index.php +++ b/installation/template/index.php @@ -57,6 +57,11 @@ Text::script('INSTL_FINISHED'); Text::script('INSTL_IN_PROGRESS'); Text::script('INSTL_PROCESS_BUSY'); +Text::script('INSTL_PAGE_TITLE'); +Text::script('INSTL_SETUP_SITE_NAME'); +Text::script('INSTL_LOGIN_DATA'); +Text::script('INSTL_DATABASE'); +Text::script('INSTL_PROGRESS'); // Load strings for translated messages (directory removal) Text::script('INSTL_REMOVE_INST_FOLDER'); @@ -86,7 +91,7 @@

- +

Joomla! getShortVersion(); ?> diff --git a/installation/template/js/remove.js b/installation/template/js/remove.js index 3e72ecec592e1..88af0a1b9a910 100644 --- a/installation/template/js/remove.js +++ b/installation/template/js/remove.js @@ -5,6 +5,7 @@ */ // 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) { diff --git a/installation/template/js/setup.js b/installation/template/js/setup.js index e52141385bdd4..034f575704d2c 100644 --- a/installation/template/js/setup.js +++ b/installation/template/js/setup.js @@ -88,6 +88,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", @@ -154,6 +156,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'); @@ -184,6 +188,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')) { @@ -202,6 +208,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(); diff --git a/installation/tmpl/remove/default.php b/installation/tmpl/remove/default.php index 99ff60cc1d3a3..47d133039b841 100644 --- a/installation/tmpl/remove/default.php +++ b/installation/tmpl/remove/default.php @@ -19,6 +19,8 @@ $direction = Factory::getLanguage()->isRtl() ? 'left' : 'right'; /** @var \Joomla\CMS\Installation\View\Remove\HtmlView $this */ +// Add string for title +Text::script('INSTL_COMPLETE_TITLE'); ?>