? ? Pending

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
20 Aug 2016

Pull Request porting joomla-framework/language@2da4017

Summary of Changes

This allows language files to be debugged without having to be loaded into JLanguage and parsed by moving the debug logic to its own method.

Testing Instructions

Triggering JFactory::getLanguage()->debugFile($file) should accurately report results if the file is good or bad.

Documentation Changes Required

N/A, the class' API is only documented by the automated API docs.

avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Category Libraries Unit Tests
avatar mbabker mbabker - open - 20 Aug 2016
avatar mbabker mbabker - change - 20 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Labels Added: ? ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Aug 2016

two questions:
1. Shouldn't debugFile method be moved to JLanguageHelper ?
2. The exception you added means that if a ini is not found and we are in debug mode we now get an exception, right? For instance if i delete a language folder now i get a lot of exceptions across the backend. So, the question is: is this part B/C?

Update: Forget part 2 i was with the test code still there.

avatar mbabker
mbabker - comment - 22 Aug 2016

It's a new method, there's no B/C involved. Unless you consider that it is
called from the parse method. The parse method is only called after
verifying the file exists, so there shouldn't be an issue there.

And no, I wouldn't move it to the helper.

On Sunday, August 21, 2016, andrepereiradasilva notifications@github.com
wrote:

two questions:
1. Shouldn't debugFile method be moved to JLanguageHelper ?
2. The exception you added means that if a ini is not found and we are in
debug mode we now get an exception, right? For instance if i delete a
language folder now i get a lot of exceptions across the backend. So, the
question is: is this part B/C?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#11699 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoZdpZePUTMkpPEzjqFqNMFIDSsP4ks5qiN_LgaJpZM4JpLOw
.

avatar bertmert bertmert - test_item - 22 Aug 2016 - Tested successfully
avatar bertmert
bertmert - comment - 22 Aug 2016

I have tested this item successfully on d5643d0

Works as described in language debug mode.

Works as described with calls like

$errorCount = JFactory::getLanguage()->debugFile(JPATH_ADMINISTRATOR . '/language/en-GB/en-GB.com_joomlaupdate.sys.ini');
echo $errorCount;


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

avatar andrepereiradasilva andrepereiradasilva - test_item - 22 Aug 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 22 Aug 2016

I have tested this item successfully on d5643d0

works as described


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

avatar zero-24 zero-24 - change - 22 Aug 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 22 Aug 2016

RTC. Thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 22 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-22 20:00:08
Closed_By rdeutz
avatar zero-24
zero-24 - comment - 22 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment