Skip to content

Commit 0fbd934

Browse files
authored
[4.1] com_content: hardcoded language string (#37666)
1 parent 79be804 commit 0fbd934

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/com_content/helpers/icon.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
defined('_JEXEC') or die;
1111

12+
use Joomla\CMS\Language\Text;
1213
use Joomla\Registry\Registry;
1314

1415
/**
@@ -72,7 +73,7 @@ public static function edit($article, $params, $attribs = array(), $legacy = fal
7273
*/
7374
public static function print_popup($article, $params, $attribs = array(), $legacy = false)
7475
{
75-
throw new \Exception('Sorry, Joomla 4 no longer supports print_popup');
76+
throw new \Exception(Text::_('COM_CONTENT_ERROR_PRINT_POPUP'));
7677
}
7778

7879
/**

language/en-GB/com_content.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ COM_CONTENT_EDIT_UNPUBLISHED_ARTICLE="Unpublished Article"
2525
COM_CONTENT_ERROR_ARTICLE_NOT_FOUND="Article not found"
2626
COM_CONTENT_ERROR_LOGIN_TO_VIEW_ARTICLE="Please login to view the article"
2727
COM_CONTENT_ERROR_PARENT_CATEGORY_NOT_FOUND="Parent category not found"
28+
COM_CONTENT_ERROR_PRINT_POPUP="Sorry, Joomla 4 no longer supports print_popup"
2829
COM_CONTENT_FEED_READMORE="Read More ..."
2930
COM_CONTENT_FIELD_ARTICLETEXT_LABEL="Article Text"
3031
COM_CONTENT_FIELD_FEATURED_DOWN_LABEL="Finish Featured"

0 commit comments

Comments
 (0)