No Code Attached Yet
avatar obuisard
obuisard
6 Jun 2021

Steps to reproduce the issue

I cannot find an example in the core, it happens when developing a third-party extension.

Whenever a field's value is JDEFAULT in the context of a menu item (while setting up a view), the translation is 'Home' (in English) rather than 'Default'.

Expected result

Translation of JDEFAULT should be 'Default' (in English)

Actual result

Translation of JDEFAULT is 'Home' (in English)

System information (as much as possible)

Any system supporting Joomla 4

Additional comments

joomla.ini and com_menus.ini have a conflicting language key JDEFAULT.
Shouldn't JDEFAULT be translated the same way throughout Joomla core?

avatar obuisard obuisard - open - 6 Jun 2021
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Jun 2021
avatar brianteeman
brianteeman - comment - 6 Jun 2021

Shouldn't JDEFAULT be translated the same way throughout Joomla core?

No. There are many examples of this - usually relating to permissions.

I cannot find an example in the core, it happens when developing a third-party extension.

image

avatar obuisard
obuisard - comment - 6 Jun 2021

Thanks Brian.

What I tried to convey is that I could not find an example of a menu item containing a field with value 'default' and translated with JDEFAULT where I could demonstrate the issue.

image

JDEFAULT has been added to com_menus.ini in Joomla 4.
It is such a global and general key, that any time JDEFAULT needs to be translated on a page where com_menus.ini is loaded, the translation will be 'Home' and not 'Default'.

avatar brianteeman
brianteeman - comment - 24 Jun 2021

It is such a global and general key, that any time JDEFAULT needs to be translated on a page where com_menus.ini is loaded, the translation will be 'Home' and not 'Default'.

The only time that com_menus.ini should be loaded is when in the menu component where it is the intended behaviour.

avatar brianteeman
brianteeman - comment - 23 Sep 2022

Please test #3882

avatar alikon alikon - change - 23 Sep 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-09-23 18:41:38
Closed_By alikon
Labels Added: No Code Attached Yet
Removed: ?
avatar alikon alikon - close - 23 Sep 2022
avatar alikon
alikon - comment - 23 Sep 2022

Please test #38825

Add a Comment

Login with GitHub to post a comment