joomlagerman / joomla

The J!German translation team provides German translation for Joomla!
https://www.jgerman.de
GNU General Public License v2.0
25 stars 46 forks source link

[5.2] Admin Module Latest #3174

Closed jgerman-bot closed 6 months ago

jgerman-bot commented 6 months ago

New language relevant PR in upstream repo: https://github.com/joomla/joomla-cms/pull/43216 Here are the upstream changes:

Click to expand the diff! ```diff diff --git a/administrator/language/en-GB/mod_latest.ini b/administrator/language/en-GB/mod_latest.ini index 4ed7b52f030c0..20bb62ff8cd67 100644 --- a/administrator/language/en-GB/mod_latest.ini +++ b/administrator/language/en-GB/mod_latest.ini @@ -14,6 +14,8 @@ MOD_LATEST_FIELD_VALUE_AUTHORS_BY_ME="Added or modified by me" MOD_LATEST_FIELD_VALUE_AUTHORS_NOT_BY_ME="Not added or modified by me" MOD_LATEST_FIELD_VALUE_ORDERING_ADDED="Recently Added First" MOD_LATEST_FIELD_VALUE_ORDERING_MODIFIED="Recently Modified First" +MOD_LATEST_HEADING_DATE_CREATED="Date Created" +MOD_LATEST_HEADING_DATE_MODIFIED="Date Modified" MOD_LATEST_LATEST_ITEMS="Latest Items" MOD_LATEST_NO_MATCHING_RESULTS="No Matching Results" MOD_LATEST_TITLE="Recently Created Articles" diff --git a/administrator/modules/mod_latest/src/Helper/LatestHelper.php b/administrator/modules/mod_latest/src/Helper/LatestHelper.php index 617d70fd8dd50..afab1bb8a8a20 100644 --- a/administrator/modules/mod_latest/src/Helper/LatestHelper.php +++ b/administrator/modules/mod_latest/src/Helper/LatestHelper.php @@ -41,7 +41,7 @@ public static function getList(Registry $params, ArticlesModel $model) $user = Factory::getUser(); // Set List SELECT - $model->setState('list.select', 'a.id, a.title, a.checked_out, a.checked_out_time, ' . + $model->setState('list.select', 'a.id, a.title, a.checked_out, a.checked_out_time, a.modified,' . ' a.access, a.created, a.created_by, a.created_by_alias, a.featured, a.state, a.publish_up, a.publish_down'); // Set Ordering filter diff --git a/administrator/modules/mod_latest/tmpl/default.php b/administrator/modules/mod_latest/tmpl/default.php index f77973ade2cd1..572dd93e4a9c6 100644 --- a/administrator/modules/mod_latest/tmpl/default.php +++ b/administrator/modules/mod_latest/tmpl/default.php @@ -25,7 +25,9 @@ - + + get('ordering', 'c_dsc') == 'm_dsc') ? Text::_('MOD_LATEST_HEADING_DATE_MODIFIED') : Text::_('MOD_LATEST_HEADING_DATE_CREATED'); ?> + @@ -53,7 +55,7 @@ author_name; ?> - created, Text::_('DATE_FORMAT_LC4')); ?> + get('ordering', 'c_dsc') == 'm_dsc') ? HTMLHelper::_('date', $item->modified, Text::_('DATE_FORMAT_LC4')) : HTMLHelper::_('date', $item->created, Text::_('DATE_FORMAT_LC4')); ?> ```