Pending

User tests: Successful: Unsuccessful:

avatar elkuku
elkuku
24 Aug 2018

Summary of Changes

I was thinking on how to "sell" this to the "gate keepers" so I guess that I should start with

  • Remove hard coded string in language errors display
    The string error(s) in line(s) is hard coded and untranslatable.

On the other hand I believe that it should be the responsibility of the "caller" to format this message.

It will also be useful while refactoring the debug plugin in #20380

As a bonus the file links are now pointing to the error line if you have xdebug links set up.

Testing Instructions

Switch on language debug and produce some errors in language files

Expected result

bildschirmfoto_2018-08-24_17-06-34

Actual result

bildschirmfoto_2018-08-24_15-44-57

Documentation Changes Required

I believe that this is somewhat B/C breaking since the return values have changed - you might get an "array to string conversion" warning.

avatar elkuku elkuku - open - 24 Aug 2018
avatar elkuku elkuku - change - 24 Aug 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Aug 2018
Category Libraries Front End Plugins
avatar roland-d roland-d - test_item - 25 Aug 2018 - Tested successfully
avatar roland-d
roland-d - comment - 25 Aug 2018

I have tested this item successfully on 140198b

Before applying the patch the faulty language entries are plain text and after applying the patch the language entries are clickable and take me to the correct file and line.


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2018

produce some errors in language files

How to produce an Error in an Language File?

avatar infograf768
infograf768 - comment - 27 Aug 2018

How to produce an Error in an Language File?

Modify a file by for example taking off the first doublequote in
JSOMETHING="something"

avatar laoneo
laoneo - comment - 27 Aug 2018

Remove a " or an = on a line. That should be enough.

avatar joomla-cms-bot joomla-cms-bot - edited - 27 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Aug 2018
Title
Remove hard coded string in language errors display
[4.0] Remove hard coded string in language errors display
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2018

thanks for Info, will do.

Changed Title to show its about 4.0.


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2018

Changed a File in Languages:
screen shot 2018-08-27 at 10 53 17

but get no Error:

screen shot 2018-08-27 at 10 52 53

Same Result if change Language-File in /administrator:

screen shot 2018-08-27 at 11 01 29

avatar infograf768
infograf768 - comment - 27 Aug 2018

mod_breadcrumbs, after taking off the " edit the module in back-end (debug language on)
same for login

avatar infograf768
infograf768 - comment - 27 Aug 2018

btw, the errors also show in frontend
screen shot 2018-08-27 at 11 12 31

avatar infograf768
infograf768 - comment - 27 Aug 2018

I have tested this item successfully on 140198b


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

avatar infograf768 infograf768 - test_item - 27 Aug 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2018

I have tested this item successfully on 140198b


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 27 Aug 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Aug 2018
Status Pending Ready to Commit
avatar laoneo laoneo - change - 27 Aug 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-08-27 09:40:40
Closed_By laoneo
avatar laoneo laoneo - close - 27 Aug 2018
avatar laoneo laoneo - merge - 27 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2018

Ready to Commit after 3 successful tests.

avatar laoneo
laoneo - comment - 27 Aug 2018

Thanks.

avatar elkuku
elkuku - comment - 27 Aug 2018

?

Add a Comment

Login with GitHub to post a comment