? ? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
24 Jan 2019

Summary of Changes

This PR removes the language file libraries/cms/html/language/en-GB/en-GB.jhtmldate.ini.
The file isn't in a regular language folder where it could be loaded, and the strings in it are also present in the lib_joomla.ini one.

Testing Instructions

Check the Users -> Users Action Logs view
The column "Date" uses the strings in that file.

Expected result

image

Actual result

Same as expected

Documentation Changes Required

None

avatar Bakual Bakual - open - 24 Jan 2019
avatar Bakual Bakual - change - 24 Jan 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jan 2019
Category Administration com_admin Libraries
avatar alikon
alikon - comment - 24 Jan 2019

I have tested this item successfully on a97ca73


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

avatar alikon alikon - test_item - 24 Jan 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 24 Jan 2019

I have tested this item successfully on a97ca73

Weird. Wonder why we had the same situation (strings in both files) in 2.5...


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

avatar infograf768 infograf768 - test_item - 24 Jan 2019 - Tested successfully
avatar infograf768 infograf768 - change - 24 Jan 2019
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 24 Jan 2019

RTC.


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

avatar brianteeman
brianteeman - comment - 24 Jan 2019

It could be being used by an extension.
This should not be in a patch update as it would not be in accordance with semver.
Even if the logger wont pick it up it should be deprecated before removal

avatar Bakual
Bakual - comment - 24 Jan 2019

It could be being used by an extension.

How? You can't load this file as it is not in a supported folder. And even if that worked, the file just wouldn't be loaded but the strings are still there.
But then I don't mind if this goes into 3.x or 4.0. Just let me know when I have to rebase the PR.

avatar brianteeman
brianteeman - comment - 24 Jan 2019

If the file exists then someone can use it (even if they shouldn't or have to jump through hoops)

avatar Bakual Bakual - change - 24 Jan 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jan 2019
Category Administration com_admin Libraries Unit Tests Repository Administration com_admin
avatar Bakual
Bakual - comment - 24 Jan 2019

Redone against 4.0 branch.

avatar Bakual Bakual - edited - 24 Jan 2019
avatar Bakual Bakual - change - 24 Jan 2019
Title
Remove libraries/cms/html/language/en-GB/en-GB.jhtmldate.ini
[4.0] Remove libraries/cms/html/language/en-GB/en-GB.jhtmldate.ini
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jan 2019
Category Administration com_admin Unit Tests Repository Libraries
avatar mbabker
mbabker - comment - 24 Jan 2019

How? You can't load this file as it is not in a supported folder.

$language->load('jhtmldate', JPATH_LIBRARIES . '/cms/html');

The only restriction in the language API (which I never liked but ¯\_(ツ)_/¯) is that there must be a directory named "language" within the path you specify. Other than that, you can put language files anywhere in the filesystem. Whether the CMS UI supports those locations is another story.

Wonder why we had the same situation (strings in both files) in 2.5...

When the Platform was a standalone thing it was decided to put language files into the library packages.

avatar Bakual
Bakual - comment - 24 Jan 2019

Other than that, you can put language files anywhere in the filesystem.

Thanks. I wasn't even aware you can do that.

avatar infograf768
infograf768 - comment - 25 Jan 2019

Restarted drone.

avatar wilsonge wilsonge - change - 2 Feb 2019
Labels Added: ?
avatar wilsonge wilsonge - change - 2 Feb 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-02-02 17:40:46
Closed_By wilsonge
avatar wilsonge wilsonge - close - 2 Feb 2019
avatar wilsonge wilsonge - merge - 2 Feb 2019
avatar wilsonge
wilsonge - comment - 2 Feb 2019

Thanks!

Add a Comment

Login with GitHub to post a comment