? ? Pending

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
4 Jun 2017

Pull Request for Issue #16506.

Summary of Changes

Sin 3.7.0 admin template does not load language specific css.
This PR intends to solve that.

Testing Instructions

  1. Use latest staging
  2. Add a en-GB.css file in /administrator/language/en-GB/en-GB.css
  3. Load the admin in isis and hathor and confirm the css file is loaded.

Expected result

Language specific CSS file is loaded.

Actual result

Language specific CSS file is not loaded.

Documentation Changes Required

None.

avatar andrepereiradasilva andrepereiradasilva - open - 4 Jun 2017
avatar andrepereiradasilva andrepereiradasilva - change - 4 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2017
Category Administration Templates (admin)
avatar C-Lodder
C-Lodder - comment - 4 Jun 2017

I have tested this item successfully on 4780f21
All good. Will do the same for 4.0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16513.
avatar C-Lodder C-Lodder - test_item - 4 Jun 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 4 Jun 2017

I had solved it here with
JHtml::_('stylesheet', 'administrator/language/' . $lang->getTag() . '/' . $lang->getTag() . '.css', array('version' => 'auto'));

because the case is not taken care of in the includeRelativeFiles method
.../libraries/cms/html/html.php

where it defaults to $path = JPATH_ROOT . "/$file";

Will now test this PR

avatar infograf768
infograf768 - comment - 4 Jun 2017

Sorry, this patch does not work for me.

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jun 2017

@infograf768 ltrim($this->baseurl, '/') in administrator tempaltes is administrator so is the same as you have done but without hardcoding administrator.

It worked in my case can you explain better where it doesn't work?

avatar infograf768
infograf768 - comment - 4 Jun 2017

I have no idea why it does not work here on Firefox. It works OK on Safari.

I know that with my solution I do get the correct href in source in both browsers

<link href="/testnew/trunkgitnew/administrator/language/fa-IR/fa-IR.css?1558dc3b794518a5caee794b66aaf3f0" rel="stylesheet" />

for info $this->baseurl here gives
/testnew/trunkgitnew/administrator

avatar infograf768
infograf768 - comment - 4 Jun 2017

Hmm, maybe a session issue. After quit and reload Firefox, it is OK

avatar infograf768
infograf768 - comment - 4 Jun 2017

I have tested this item successfully on 4780f21


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

avatar infograf768 infograf768 - test_item - 4 Jun 2017 - Tested successfully
avatar infograf768 infograf768 - change - 4 Jun 2017
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 4 Jun 2017

RTC. Thanks


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

avatar Quy
Quy - comment - 4 Jun 2017

On my local install, where Joomla is in joomla-cms directory:

Not working with PR: joomla-cms/administrator/language/en-GB/en-GB.css
I think it is looking for joomla-cms inside joomla-cms.

Working with manual change and no relative: administrator/language/en-GB/en-GB.css

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jun 2017

ok @Quy thanks.
yeah forgot subdir joomla installs ...

avatar infograf768 infograf768 - change - 4 Jun 2017
Status Ready to Commit Pending
avatar infograf768
infograf768 - comment - 4 Jun 2017

i take of the rtc for now


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

avatar andrepereiradasilva andrepereiradasilva - change - 4 Jun 2017
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jun 2017

should work now

avatar Quy
Quy - comment - 4 Jun 2017

I have tested this item successfully on 96e00bd


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

avatar Quy Quy - test_item - 4 Jun 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 4 Jun 2017

I have tested this item successfully on 96e00bd


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

avatar infograf768 infograf768 - test_item - 4 Jun 2017 - Tested successfully
avatar infograf768 infograf768 - change - 4 Jun 2017
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 4 Jun 2017

RTC for good now. :)

@C-Lodder
Please use this code in 4.0


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

avatar C-Lodder
C-Lodder - comment - 4 Jun 2017

Cheers. Will update tomorrow

avatar rdeutz rdeutz - change - 6 Jun 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-06 19:36:13
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 6 Jun 2017
avatar rdeutz rdeutz - merge - 6 Jun 2017

Add a Comment

Login with GitHub to post a comment