? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
28 Feb 2018

Pull Request to fix #19800

PR #13606 introduced translatable admin menu item creation but the code didnt check if the menu item was for the frontend or the admin before doing the translation

Test Instructions

  1. Install any additional language eg italian
  2. Create a menu item called "Sun"
  3. On the list of all the menu items you will see it is displayed as "Dom" - the italian translation
  4. Enable language debug
  5. On the list of all the menu items you will see all your menu item titles are surrounded by ?? - to indicate no translation found - except for "Dom" which has ** instead to show it has been translated
  6. Apply this PR
  7. Sun still says Sun
  8. There are NO ?? or ** when in language debug mode
  9. Bonus - check a custom admin menu item and you will see it can be translated
avatar brianteeman brianteeman - open - 28 Feb 2018
avatar brianteeman brianteeman - change - 28 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Feb 2018
Category Administration com_menus
avatar brianteeman brianteeman - change - 28 Feb 2018
Labels Added: ?
c4b967f 28 Feb 2018 avatar brianteeman cs
avatar simbus82
simbus82 - comment - 28 Feb 2018

I have tested this item successfully on c4b967f


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

image

avatar simbus82 simbus82 - test_item - 28 Feb 2018 - Tested successfully
avatar alikon alikon - test_item - 28 Feb 2018 - Tested successfully
avatar alikon
alikon - comment - 28 Feb 2018

I have tested this item successfully on c4b967f


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Feb 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 28 Feb 2018

RTC


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Feb 2018

Ready to Commit after two successful tests.

avatar infograf768
infograf768 - comment - 1 Mar 2018

@izharaazmi
As you were the one who introduced this, would be good to see your comment.
I believe personally that this PR is correct.

avatar izharaazmi
izharaazmi - comment - 1 Mar 2018

This PR solves the issue in question.


Additional comments beyond the scope of this PR

However, this is one of the heuristic approaches used in our core. I'd suggest having a flag translate_title in the menu item params to indicate whether it should be translated or not. Because not all the Admin Menu are required to be translated, some may be hardcoded text.

Another bonus I can see (though I have not given enough thought to this) that this will allow translation of frontend menu items as well if and when desired.

avatar infograf768
infograf768 - comment - 1 Mar 2018

Another bonus I can see (though I have not given enough thought to this) that this will allow translation of frontend menu items as well if and when desired.

Indeed, but it may have unwanted results as the original issue here demonstrates, i.e. when there is already a string constant which fits the title or alias.

avatar izharaazmi
izharaazmi - comment - 1 Mar 2018

Yes, alias would be a matter of concern in case of frontend.

avatar mbabker mbabker - change - 17 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-17 15:22:11
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 17 Mar 2018
avatar mbabker mbabker - merge - 17 Mar 2018

Add a Comment

Login with GitHub to post a comment