diff --git a/administrator/components/com_menus/views/item/tmpl/edit.php b/administrator/components/com_menus/views/item/tmpl/edit.php index b2c70eeb600f2..789b0d38e9879 100644 --- a/administrator/components/com_menus/views/item/tmpl/edit.php +++ b/administrator/components/com_menus/views/item/tmpl/edit.php @@ -46,7 +46,7 @@ $('#jform_parent_id').trigger('liszt:updated'); }); }); - + // Menu type Login Form specific $('#item-form').on('submit', function() { if ($('#jform_params_login_redirect_url') && $('#jform_params_logout_redirect_url')) { @@ -114,13 +114,33 @@ $layout = $isModal ? 'modal' : 'edit'; $tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=component' : ''; $clientId = $this->state->get('item.client_id', 0); +$lang = JFactory::getLanguage()->getTag(); + +// Load mod_menu.ini file when client is administrator +if ($clientId === 1) +{ + JFactory::getLanguage()->load('mod_menu', JPATH_ADMINISTRATOR, null, false, true); +} ?>
-
+ + item->id != 0) : ?> +
+
+
+ +
+
+ +
+
+
+ +
'details')); ?> diff --git a/administrator/language/en-GB/en-GB.com_menus.ini b/administrator/language/en-GB/en-GB.com_menus.ini index 3f4f886c4daef..c1cdd452e045a 100644 --- a/administrator/language/en-GB/en-GB.com_menus.ini +++ b/administrator/language/en-GB/en-GB.com_menus.ini @@ -213,6 +213,7 @@ COM_MENUS_SUCCESS_REORDERED="Menu item reordered." COM_MENUS_TIP_ALIAS_LABEL="Warning!
Leave the alias field empty if the menu item alias and the menu item linked to by the alias have the same parent." COM_MENUS_TIP_ASSOCIATION="Associated menu items" COM_MENUS_TITLE_EDIT_ITEM="Menu Manager: Title Edit Item" +COM_MENUS_TITLE_TRANSLATION="Title (%s)" COM_MENUS_TOOLBAR_SET_HOME="Home" COM_MENUS_TYPE_ALIAS="Menu Item Alias" COM_MENUS_TYPE_ALIAS_DESC="Create an alias to another menu item."