? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
19 Aug 2016

Summary of Changes

Depending on where in the order of operations things are at, it's possible to hit the error page before anything loads the template's language files. And JDocumentError isn't loading them either, which can cause untranslated strings to appear. So, load the files if we are able to do so (i.e. a JLanguage object is set to the factory; we won't try to load JLanguage into the factory in case that's the cause of the error).

Testing Instructions

Find a template with language strings in its error page; the core templates have this. For the frontend app, add a throw new RuntimeException('Testing language PR'); line in to JApplicationSite::doExecute() after it's called the initialiseApp() method. Pre-patch, it may or may not have translated strings (I couldn't duplicate this consistently locally but we hit it on the volunteers portal). Post-patch, it should most likely be translated (it only wouldn't if the error triggering the error page came from instantiating JLanguage basically).

Documentation Changes Required

N/A

avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2016
Category Libraries
avatar mbabker mbabker - open - 19 Aug 2016
avatar mbabker mbabker - change - 19 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2016
Labels Added: ?
avatar ggppdk ggppdk - test_item - 19 Aug 2016 - Tested successfully
avatar ggppdk
ggppdk - comment - 19 Aug 2016

I have tested this item successfully on e9b7dc1

Tested with protostar and isis templates

e.g. adding to file:
administrator/templates/isis/error.php

a template language string fron: administrator/templates/isis/language/en-GB/en-GB.tpl_isis.ini

echo JText::_('TPL_ISIS_LOGO_DESC');

it gets translated after applying the PR


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

avatar jeckodevelopment jeckodevelopment - test_item - 19 Aug 2016 - Tested successfully
avatar jeckodevelopment
jeckodevelopment - comment - 19 Aug 2016

I have tested this item successfully on e9b7dc1


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

avatar jeckodevelopment jeckodevelopment - change - 19 Aug 2016
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 19 Aug 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2016
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 19 Aug 2016

good progress! ... one can only hope one day the JDocumentError will also be able to load the css and js scripts/files ... :)

avatar wilsonge wilsonge - change - 20 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-20 12:13:33
Closed_By wilsonge
avatar wilsonge wilsonge - close - 20 Aug 2016
avatar wilsonge wilsonge - merge - 20 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 20 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment