diff --git a/src/administrator/components/com_weblinks/script.php b/src/administrator/components/com_weblinks/script.php index 8e8e121..3a1f692 100644 --- a/src/administrator/components/com_weblinks/script.php +++ b/src/administrator/components/com_weblinks/script.php @@ -9,6 +9,8 @@ defined('_JEXEC') or die; +use Joomla\CMS\Language\Text; + /** * Installation class to perform additional changes during install/uninstall/update * @@ -56,7 +58,7 @@ class Com_WeblinksInstallerScript // Check to make sure our data is valid if (!$category->check()) { - JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_WEBLINKS_ERROR_INSTALL_CATEGORY', $category->getError())); + JFactory::getApplication()->enqueueMessage(Text::sprintf('COM_WEBLINKS_ERROR_INSTALL_CATEGORY', $category->getError())); return; } @@ -64,7 +66,7 @@ class Com_WeblinksInstallerScript // Now store the category if (!$category->store(true)) { - JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_WEBLINKS_ERROR_INSTALL_CATEGORY', $category->getError())); + JFactory::getApplication()->enqueueMessage(Text::sprintf('COM_WEBLINKS_ERROR_INSTALL_CATEGORY', $category->getError())); return; } diff --git a/src/administrator/components/com_weblinks/tmpl/weblink/edit.php b/src/administrator/components/com_weblinks/tmpl/weblink/edit.php index 8e850f9..206a79d 100644 --- a/src/administrator/components/com_weblinks/tmpl/weblink/edit.php +++ b/src/administrator/components/com_weblinks/tmpl/weblink/edit.php @@ -10,6 +10,7 @@ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Language\Text; HTMLHelper::_('behavior.formvalidator'); @@ -35,7 +36,7 @@ $tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=c
'details')); ?> - item->id) ? JText::_('COM_WEBLINKS_NEW_WEBLINK', true) : JText::_('COM_WEBLINKS_EDIT_WEBLINK', true)); ?> + item->id) ? Text::_('COM_WEBLINKS_NEW_WEBLINK', true) : Text::_('COM_WEBLINKS_EDIT_WEBLINK', true)); ?>
@@ -49,7 +50,7 @@ $tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=c
- +
form->renderField('images'); ?> @@ -61,7 +62,7 @@ $tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=c - +
@@ -75,7 +76,7 @@ $tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=c - + loadTemplate('associations'); ?> diff --git a/src/administrator/components/com_weblinks/tmpl/weblink/edit_params.php b/src/administrator/components/com_weblinks/tmpl/weblink/edit_params.php index e4d69a3..26698db 100644 --- a/src/administrator/components/com_weblinks/tmpl/weblink/edit_params.php +++ b/src/administrator/components/com_weblinks/tmpl/weblink/edit_params.php @@ -9,11 +9,13 @@ defined('_JEXEC') or die; +use Joomla\CMS\Language\Text; + $fieldSets = $this->form->getFieldsets('params'); ?> $fieldSet) : ?>
description) && trim($fieldSet->description)) : ?> - ' . $this->escape(JText::_($fieldSet->description)) . '

'; ?> + ' . $this->escape(Text::_($fieldSet->description)) . '

'; ?> form->getFieldset($name) as $field) : ?>
diff --git a/src/administrator/components/com_weblinks/tmpl/weblink/modal_params.php b/src/administrator/components/com_weblinks/tmpl/weblink/modal_params.php index 1fa84b6..ce43ba5 100644 --- a/src/administrator/components/com_weblinks/tmpl/weblink/modal_params.php +++ b/src/administrator/components/com_weblinks/tmpl/weblink/modal_params.php @@ -9,11 +9,13 @@ defined('_JEXEC') or die; +use Joomla\CMS\Language\Text; + $fieldSets = $this->form->getFieldsets('params'); ?> $fieldSet) : ?>
description) && trim($fieldSet->description)) : ?> - ' . $this->escape(JText::_($fieldSet->description)) . '

'; ?> + ' . $this->escape(Text::_($fieldSet->description)) . '

'; ?> form->getFieldset($name) as $field) : ?>
diff --git a/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php b/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php index fb0c758..631cd6c 100644 --- a/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php +++ b/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_footer.php @@ -8,10 +8,12 @@ */ defined('_JEXEC') or die; +use Joomla\CMS\Language\Text; + ?> - + \ No newline at end of file diff --git a/src/components/com_weblinks/tmpl/category/default_children.php b/src/components/com_weblinks/tmpl/category/default_children.php index 81fab0f..e5f920c 100644 --- a/src/components/com_weblinks/tmpl/category/default_children.php +++ b/src/components/com_weblinks/tmpl/category/default_children.php @@ -10,6 +10,7 @@ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Language\Text; use Joomla\Component\Weblinks\Site\Helper\RouteHelper; $class = ' class="first"'; @@ -40,7 +41,7 @@ if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) : params->get('show_cat_num_links') == 1) :?> diff --git a/src/components/com_weblinks/tmpl/category/default_items.php b/src/components/com_weblinks/tmpl/category/default_items.php index a4321de..4ce00f3 100644 --- a/src/components/com_weblinks/tmpl/category/default_items.php +++ b/src/components/com_weblinks/tmpl/category/default_items.php @@ -10,6 +10,7 @@ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Language\Text; // HTMLHelper::_('behavior.framework'); @@ -30,7 +31,7 @@ $listDirn = $this->escape($this->state->get('list.direction')); ?> items)) : ?> -

+

@@ -38,15 +39,15 @@ $listDirn = $this->escape($this->state->get('list.direction'));
params->get('filter_field') != 'hide') : ?>
- - + +
params->get('show_pagination_limit')) : ?>
pagination->getLimitBox(); ?>
@@ -63,7 +64,7 @@ $listDirn = $this->escape($this->state->get('list.direction')); params->get('show_link_hits', 1)) : ?> - hits); ?> + hits); ?> @@ -75,12 +76,12 @@ $listDirn = $this->escape($this->state->get('list.direction'));
params->get('icons', 1) == 0) : ?> - + params->get('icons', 1) == 1) : ?> params->get('link_icons')) : ?> - + - params->get('link_icons') . '" alt="' . JText::_('COM_WEBLINKS_LINK') . '" />'; ?> + params->get('link_icons') . '" alt="' . Text::_('COM_WEBLINKS_LINK') . '" />'; ?> @@ -93,7 +94,7 @@ $listDirn = $this->escape($this->state->get('list.direction')); items[$i]->state == 0) : ?> - + state->get('params');
get('save_history', 0)) : ?> diff --git a/src/modules/mod_weblinks/tmpl/default.php b/src/modules/mod_weblinks/tmpl/default.php index 58c095d..ac05ff0 100644 --- a/src/modules/mod_weblinks/tmpl/default.php +++ b/src/modules/mod_weblinks/tmpl/default.php @@ -8,6 +8,9 @@ */ defined('_JEXEC') or die; + +use Joomla\CMS\Language\Text; + ?> get('groupby', 0)) : ?> @@ -64,7 +67,7 @@ defined('_JEXEC') or die; get('hits', 0)) : ?> - hits . ' ' . JText::_('MOD_WEBLINKS_HITS') . ')'; ?> + hits . ' ' . Text::_('MOD_WEBLINKS_HITS') . ')'; ?> @@ -109,7 +112,7 @@ defined('_JEXEC') or die; get('hits', 0)) : ?> - hits . ' ' . JText::_('MOD_WEBLINKS_HITS') . ')'; ?> + hits . ' ' . Text::_('MOD_WEBLINKS_HITS') . ')'; ?>