joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.77k stars 3.65k forks source link

To have different names in admin contact menu #8200

Closed horus68 closed 9 years ago

horus68 commented 9 years ago

I need to have different translation for admin contact menu component: the main name and the sub-name need to be different. Joomla uses the same string for both names. The string that should be used for this is not in use even if is present in the language string.

com_contact.sys.ini https://github.com/joomla/joomla-cms/blob/master/administrator/language/en-GB/en-GB.com_contact.sys.ini

COM_CONTACT="Contacts" COM_CONTACT_CONTACTS="Contacts" (this one is not in use, only the first one - tested by changing values! ) 2015-10-29 13_19_27-000349-fotografias

Please follow the way it works for com_newsfeeds.sys.ini COM_NEWSFEEDS="News Feeds" COM_NEWSFEEDS_FEEDS="Feeds" 2015-10-29 13_19_44-000350-fotografias

teccrow commented 9 years ago

I confirm the issue.


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

infograf768 commented 9 years ago

Took some time to find out... The issue is in the database... The string com_contact_contacts (in the sys.ini) should be the title of the menu

I modified the db screen shot 2015-10-30 at 09 23 31

and obtained screen shot 2015-10-30 at 09 24 42

Therefore we have to change joomla.sql from

(8, 'menu', 'com_contact', 'Contacts', '', 'Contacts/Contacts', 'index.php?option=com_contact', 'component', 0, 7, 2, 8, 0, '0000-00-00 00:00:00', 0, 0, 'class:contact', 0, '', 12, 13, 0, '*', 1),

to

(8, 'menu', 'com_contact_contacts', 'Contacts', '', 'Contacts/Contacts', 'index.php?option=com_contact', 'component', 0, 7, 2, 8, 0, '0000-00-00 00:00:00', 0, 0, 'class:contact', 0, '', 12, 13, 0, '*', 1),

and update existing dbs for next release.

infograf768 commented 9 years ago

Patch is here: https://github.com/joomla/joomla-cms/pull/8212

zero-24 commented 9 years ago

Closing as we have a Patch by @infograf768