? ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
15 Mar 2018

Following up on #19900 (comment)

Summary of Changes

Adds a readonly fake field to display the translation of the Title when that one has been saved as a MOD_MENU_ variant after using the presets.
Translating the menu items concerned in the Ordering and Parent Item dropdowns

Testing Instructions

Same as #19900
Go to Menu Manager
Add a new Menu, type administrator, select one of the options predefined Joomla / predefined modern
Store the new menu.

Open the menu Manager and edit one of the menu items of this custom admin menu.

Before patch

Only the language constants are displayed.

After patch

screen shot 2018-03-15 at 10 34 40

screen-shot-title-translation

@Quy @chmst @izharaazmi

avatar infograf768 infograf768 - open - 15 Mar 2018
avatar infograf768 infograf768 - change - 15 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2018
Category Administration com_menus Language & Strings
avatar infograf768 infograf768 - change - 15 Mar 2018
Title
Admin menu item edit: Display Title, Parent Item and Ordering translations
Custom Admin menu item edit: Display Title, Parent Item and Ordering translations
avatar infograf768 infograf768 - edited - 15 Mar 2018
avatar infograf768 infograf768 - change - 15 Mar 2018
Labels Added: ? ?
avatar infograf768
infograf768 - comment - 15 Mar 2018

@izharaazmi
done. Nicer indeed. Here when using French:

screen shot 2018-03-15 at 16 13 11

Note: Title is in English above as we have no French string yet.

61cc7b2 15 Mar 2018 avatar infograf768 cs
avatar izharaazmi
izharaazmi - comment - 15 Mar 2018

If we really want to go into the detail, I would recommend this to go into joomla.edit.title_alias layout and wherever the title is all UPPERCASE and comprises of valid characters for a joomla language key, then we show this.

avatar brianteeman
brianteeman - comment - 15 Mar 2018

If we really want to go into the detail, I would recommend this to go into joomla.edit.title_alias layout and wherever the title is all UPPERCASE and comprises of valid characters for a joomla language key, then we show this.

That's no good and is similar to why I had to create #19802

If you have a menu item in capitals that matches a key it will be translated even if its just a conincidence

avatar infograf768
infograf768 - comment - 15 Mar 2018

If we really want to go into the detail, I would recommend this to go into joomla.edit.title_alias layout and wherever the title is all UPPERCASE and comprises of valid characters for a joomla language key, then we show this.

The issue is only present in this special case i.e. for custom admin menus. Would'nt that be overkill?

avatar izharaazmi
izharaazmi - comment - 15 Mar 2018

Yes, my bad.

avatar izharaazmi
izharaazmi - comment - 15 Mar 2018

Shouldn't we hide this for New menu items?

avatar infograf768
infograf768 - comment - 15 Mar 2018

Shouldn't we hide this for New menu items?

You mean by changing line 130 to something like
<?php if ($clientId === 1 && !empty($this->item->id)) : ?>
(Maybe !empty is not even necessary)

avatar izharaazmi
izharaazmi - comment - 15 Mar 2018

Yes $this->item->id == 0 should be fine.

avatar infograf768
infograf768 - comment - 15 Mar 2018

Done

avatar Quy
Quy - comment - 15 Mar 2018

The vertical alignment of the Title label is lower than the value in the input field. See Link field to compare. The markup is not quite right.

avatar izharaazmi
izharaazmi - comment - 15 Mar 2018

Now the only issue that stays, is that we are limited to the language keys in mod_menu, com_menus. If we need to and can, we should think for a solution. Loading all languages are certainly NOT a solution 😄

avatar izharaazmi
izharaazmi - comment - 15 Mar 2018

I have tested this item ✅ successfully on b1eb953


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

avatar izharaazmi izharaazmi - test_item - 15 Mar 2018 - Tested successfully
avatar chmst
chmst - comment - 15 Mar 2018

I have tested this item ✅ successfully on b1eb953


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

avatar chmst chmst - test_item - 15 Mar 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Mar 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Mar 2018

Ready to Commit after two successful tests.

avatar infograf768 infograf768 - change - 16 Mar 2018
Labels Added: ?
avatar infograf768
infograf768 - comment - 16 Mar 2018

@Quy
Corrected label alignment.
screen shot 2018-03-16 at 09 04 55

No need to test again. Let's keep it RTC.

avatar infograf768 infograf768 - alter_testresult - 16 Mar 2018 - izharaazmi: Tested successfully
avatar infograf768 infograf768 - alter_testresult - 16 Mar 2018 - chmst: Tested successfully
avatar infograf768
infograf768 - comment - 16 Mar 2018

@Quy Cosmetic changes done.

avatar infograf768
infograf768 - comment - 17 Mar 2018

why to 3.9.0 ?

avatar infograf768
infograf768 - comment - 17 Mar 2018

@mbabker
although this contains a new string, this should go imho into 3.8.7 as it is the logical suite of #19900

avatar brianteeman
brianteeman - comment - 17 Mar 2018

its a new feature not a bug fix

avatar infograf768
infograf768 - comment - 17 Mar 2018

It is not really a hew feature. It helps users who are lost with these constants

avatar infograf768
infograf768 - comment - 17 Mar 2018

Thanks

avatar mbabker
mbabker - comment - 17 Mar 2018

Although technically it is a feature, we've already merged minor feature additions to 3.8 that are bigger in scope than this (session metadata manager, update site mirrors). So, I'm OK with this one.

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:39:03
Closed_By mbabker
avatar mbabker mbabker - close - 17 Mar 2018
avatar mbabker mbabker - merge - 17 Mar 2018
avatar brianteeman
brianteeman - comment - 17 Mar 2018

and they shouldnt have been

avatar mbabker
mbabker - comment - 17 Mar 2018

Not exactly in disagreement there, but the other option is every other release turns into a minor and we've already seen what kind of problems it causes when you add more minor releases and push merged things for a given minor branch back to another release. Sometimes you just have to make a gut call on what's best for everyone.

Add a Comment

Login with GitHub to post a comment