Feature No Code Attached Yet
avatar Stuartemk
Stuartemk
24 Aug 2023

Is your feature request related to a problem? Please describe.

Please introduce the possibility of debugging the language for super admin logged in the frontend while users can navigate the site normally

Describe the solution you'd like

Additional context

avatar Stuartemk Stuartemk - open - 24 Aug 2023
avatar joomla-cms-bot joomla-cms-bot - change - 24 Aug 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Aug 2023
avatar brianteeman
brianteeman - comment - 24 Aug 2023

Is this not already possible ?

image

avatar Stuartemk
Stuartemk - comment - 24 Aug 2023

Is this not already possible ?

image

If the debbug plugin is enabled with the super user group selected and debugging language is enabled in the global configuration, when displaying the frontend of the site without logging in, the constants and value strings should not be displayed since default users are invited (they are not super user) but the value strings or constants are displayed. This is especially important on live or online sites as it is very useful to be able to debug the language without displaying the values ​​or constants to guests, and only displaying the values ​​or string constants to super user. In addition, it would also be very useful to be able to access the .ini files from the Backend within Joomla to be able to search and modify from within Joomla without an IDE or external text editor and, if necessary, make use of language override. Without these features it is very time consuming to have to access the language .ini files from outside of Joomla and switch to the Backend within Joomla to modify the .ini or override it.
Screenshot_20230824_123809
Screenshot_20230824_123205

avatar brianteeman
brianteeman - comment - 24 Aug 2023

the value strings or constants are displayed.

That is a bug

avatar brianteeman brianteeman - change - 24 Aug 2023
Labels Added: bug
avatar brianteeman brianteeman - labeled - 24 Aug 2023
avatar Fedik
Fedik - comment - 25 Aug 2023

The language debuging is a Global option, the same as Debug, and does not depend from plugin.
And ideally it should not be used on live site.

The Debug plugin works as expected.

It more like feature request.

avatar Fedik Fedik - change - 25 Aug 2023
Labels Added: Feature
Removed: bug
avatar Fedik Fedik - change - 25 Aug 2023
Labels Added: Feature
Removed: bug
avatar Fedik Fedik - labeled - 25 Aug 2023
avatar Fedik Fedik - unlabeled - 25 Aug 2023
avatar Fedik
Fedik - comment - 25 Aug 2023

I would sugest to crate a global permission core.debug, similar to core.admin, core.manage.
Then it can be applied to global parameters: debug (partially), debug_lang.

hm, no it will not work with debug.

avatar brianteeman
brianteeman - comment - 25 Aug 2023

@Fedik it seems odd to me that no debug functionality occurs if the user does not have the permissions for the debug plugin but when it comes to wrapping the text strings with ** that occurs based on the global setting only

avatar Fedik
Fedik - comment - 25 Aug 2023

no debug functionality occurs if the user does not have the permissions for the debug plugin

Debuggin still runnig independently from plugin. Example when you get a fatal error, you will see a page with detailed error trace. It also affects some other app stuff.

The plugin only for display collected information. It's permission only to display or not the "debug bar" .

With a language it is a bit tricky, because it is part of Language class.
Curently we cannot controll what to display from the plugin.

avatar Fedik
Fedik - comment - 25 Aug 2023

Hm, we probably can try to disable lang_debug, onAfterInitialise event with $language->setDebug(false), from plugin.
Hovewer it still may have a diferent behavior for public users.
Need to test some time.

avatar brianteeman
brianteeman - comment - 25 Aug 2023

With a language it is a bit tricky, because it is part of Language class.

yes I saw that

avatar rdeutz rdeutz - change - 27 Apr 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-04-27 13:32:48
Closed_By rdeutz
avatar rdeutz rdeutz - close - 27 Apr 2024
avatar rdeutz
rdeutz - comment - 27 Apr 2024

I don't see the use case. Debugging shouldn't be regulary done on live sites.

avatar brianteeman
brianteeman - comment - 27 Apr 2024

I don't see the use case. Debugging shouldn't be regulary done on live sites.

That's not a valid reason to kill this feature request.

Add a Comment

Login with GitHub to post a comment