? ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
17 Nov 2019

Pull Request for Issue #27072

Summary of Changes

As title says.
When a system or help preset is placed in the sidebar menu position, whether in an Administrator Menu Module (or an Administrator Dashboard Module which is not advised as we would have a bad display) , and the page loaded is Cpanel, no problem.
But when we switch page for example to Articles Manager, the titles of these presets are not loaded and therefore untranslated.

To solve the issue this PR changes the strings to mod_menu strings and corrects presets

Testing Instructions

Create system and help presets Administrator Menu modules and place them in menu position.

Before patch

COM_CPANEL_DASHBOARD_HELP_FIND_HELP="Find Help"
COM_CPANEL_DASHBOARD_HELP_GET_INVOLVED="Get Involved"
COM_CPANEL_DASHBOARD_HELP_MEET_JOOMLERS="Meet Joomlers"
COM_CPANEL_DASHBOARD_HELP_NEWS="News"
COM_CPANEL_DASHBOARD_HELP_RESOURCES="Resources"
COM_CPANEL_SYSTEM_SETUP="Setup"

are untranslated See #27072

After patch

All is fine
Screen Shot 2019-11-17 at 09 19 02

@Quy @brianteeman

avatar infograf768 infograf768 - open - 17 Nov 2019
avatar infograf768 infograf768 - change - 17 Nov 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2019
Category Modules Administration
avatar infograf768 infograf768 - change - 17 Nov 2019
The description was changed
avatar infograf768 infograf768 - edited - 17 Nov 2019
avatar Quy
Quy - comment - 18 Nov 2019

Still untranslated with Help.

27092

avatar infograf768
infograf768 - comment - 18 Nov 2019

You are correct. This happens when no default or alternate menu is also published in menu position.
Would be totally idiotic to do that but, nevertheless, looking into it

avatar infograf768 infograf768 - change - 18 Nov 2019
Labels Added: ?
avatar infograf768
infograf768 - comment - 18 Nov 2019

@Quy Found the reason. Please test again.

avatar Quy Quy - test_item - 19 Nov 2019 - Tested successfully
avatar Quy
Quy - comment - 19 Nov 2019

I have tested this item successfully on ac8d6b8


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27092.

avatar SharkyKZ
SharkyKZ - comment - 20 Nov 2019

Or maybe the preset should not be using com_cpanel strings?

avatar infograf768
infograf768 - comment - 20 Nov 2019

Or maybe the preset should not be using com_cpanel strings?

Only other way would be to add them to en-GB.ini
More confusing imho. Let's keep the load, but out of the loop. Just waiting for Michael response.

Note: I also found some issue with lang overrides for dashboard.

avatar SharkyKZ
SharkyKZ - comment - 20 Nov 2019

Or add them to mod_menu language file so it uses its own strings like it should.

avatar infograf768
infograf768 - comment - 21 Nov 2019

Or add them to mod_menu language file so it uses its own strings like it should.

I guess this is the best solution. On it.

avatar joomla-cms-bot joomla-cms-bot - change - 21 Nov 2019
Category Modules Administration Administration com_menus Language & Strings
avatar infograf768
infograf768 - comment - 21 Nov 2019

@Quy @SharkyKZ @mbabker
Please test again. Deleted the cpanel strings concerned and created mod_menu strings with same value but with mod_menu_ constants. Modified both presets to fit.

avatar SharkyKZ SharkyKZ - test_item - 21 Nov 2019 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 21 Nov 2019

I have tested this item successfully on 438c4a7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27092.

avatar infograf768 infograf768 - change - 21 Nov 2019
Labels Added: ?
avatar Quy Quy - test_item - 21 Nov 2019 - Tested successfully
avatar Quy
Quy - comment - 21 Nov 2019

I have tested this item successfully on 0be34ed


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27092.

avatar Quy Quy - change - 21 Nov 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 21 Nov 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27092.

avatar infograf768 infograf768 - change - 21 Nov 2019
Labels Added: ?
avatar brianteeman
brianteeman - comment - 24 Nov 2019

As the PR has changed since the first post could you please update the title and description

avatar infograf768 infograf768 - change - 24 Nov 2019
Title
[4.0] Always load cpanel strings when system or help presets are in menu position
[4.0] Deletes some specific cpanel strings for help and system presets and creates mod_menu strings with same value
avatar infograf768 infograf768 - edited - 24 Nov 2019
avatar infograf768 infograf768 - change - 24 Nov 2019
The description was changed
avatar infograf768 infograf768 - edited - 24 Nov 2019
avatar brianteeman
brianteeman - comment - 24 Nov 2019

Thank

avatar wilsonge
wilsonge - comment - 24 Nov 2019

@infograf768 can you fix conflicts here please

avatar infograf768
infograf768 - comment - 25 Nov 2019

Sorry, can't fix conflicts on this branch.
I have to make a new PR.

avatar joomla-cms-bot joomla-cms-bot - change - 25 Nov 2019
Category Administration com_menus Language & Strings Unit Tests Repository Administration com_config com_content com_csp com_fields com_finder com_joomlaupdate com_languages com_media com_menus com_messages com_modules com_redirect com_templates
avatar infograf768
infograf768 - comment - 25 Nov 2019

Closing

avatar infograf768 infograf768 - change - 25 Nov 2019
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2019-11-25 08:56:39
Closed_By infograf768
Labels Added: ?
Removed: ?
avatar infograf768 infograf768 - close - 25 Nov 2019
avatar infograf768
infograf768 - comment - 25 Nov 2019

Please see #27146

Add a Comment

Login with GitHub to post a comment