J3 Issue ? ?
avatar Spudley
Spudley
2 Mar 2017

I would like to propose an additional feature for the language debugging mode.

Go to the Joomla admin panel, global configuration page and turn on the Language debugging mode.

Currently, turning language debugging on results in strings on the site being displayed either surrounded by asterisks (if they are translatable) or question marks (if they are not).

I would like to have an additional mode for the language debugging, so that it can show the language constants instead. These could be enclosed in an alternative notation rather than asterisks or question marks (maybe hash signs?).

This mode would be useful for cases where you want to find out what language constant is being used at a particular point on the page.

This can currently be found out by searching for the string in the search box on the language override page, but having it in the debug mode would be good as well because:

  • It would give more confidence that you're overriding the correct term, because you'd be able to see it in place on the site.
  • It would allow you to see all the relevant constants on a page at once. Currently you'd have to search for each term separately.
  • Being able to see it in place will help gives you context so you can be sure you're translating it correctly.
  • You currently have to click to create a new override in order to get to the search form. This isn't ideal if you're not doing overrides.
avatar Spudley Spudley - open - 2 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Mar 2017
avatar zero-24 zero-24 - change - 2 Mar 2017
Labels Added: ?
avatar zero-24 zero-24 - labeled - 2 Mar 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category com_languages Feature Request Language & Strings
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Priority Medium Low
Status New Needs Review
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

any comment @infograf768?


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

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 29 May 2018

Its a good idea and not hard to implement BUT because of the length of the constants etc it really becomes pretty ugly and actually quite hard to use

chrome_2018-05-29_09-28-44

avatar Quy
Quy - comment - 29 May 2018

I don't think it looks bad at all considering its usefulness.

avatar Spudley
Spudley - comment - 5 Jun 2018

It doesn't matter how ugly or pretty it is -- it's a tool for debugging purposes and testing purposes. Nobody is ever going to actively use the system with this switched on; you switch it on, find out what you need to know, and switch it back off again.

avatar dgrammatiko
dgrammatiko - comment - 5 Jun 2018

@brianteeman @Spudley we can wrap them in a hidden span. Thus you can still search or view them in the DOM but not mess up the layout too badly. just an idea...

avatar infograf768
infograf768 - comment - 6 Jun 2018

FYI, there is a system plugin that almost just exactly does that.
Can't remember right now who wrote it.

jtext.zip

avatar infograf768
infograf768 - comment - 6 Jun 2018

It gives

screen shot 2018-06-06 at 07 28 18

avatar Quy
Quy - comment - 25 Jun 2018

Since there is a plugin for this, can this be closed?

avatar brianteeman
brianteeman - comment - 25 Jun 2018

it is not a published plugin on the jed

avatar Bakual
Bakual - comment - 25 Jun 2018

FYI, there is a system plugin that almost just exactly does that.
Can't remember right now who wrote it.

It was me ?
I hacked this together a year ago or so. It overrides the JText class with the one in the plugin which then returns the key instead of the translated value.
It isn't published anywhere as it was a request from one translator and it was shared in the translator forum only.
I think you can't put it on JED since it overrides the core class, which imho isn't allowed on JED.

avatar Bakual
Bakual - comment - 25 Jun 2018

Btw: There is also a plugin which allows to translate to Crowdin directly from your Joomla installation. You can click the text you want to translate, change it inline where it appears and it sends the translation as suggestion to Crowdin.
That one would be on GitHub: https://github.com/Bakual/crowdinachug

avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Aug 2018
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 14:59:45
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 18 Aug 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 18 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 Aug 2018

closed as having Pull Request #21691

Add a Comment

Login with GitHub to post a comment